DADiSP and Excel
DADiSP, the graphic spreadsheet for scientific data analysis, now works with Microsoft Excel to offer seamless integration and data exchange, affording scientists and engineers the capability to transfer collected data from their Excel spreadsheets into DADiSP to take advantage of its powerful and superior analysis and graphic features.
|From DADiSP, you can:||From Excel, you can:|
|Initialise Excel.||Retrieve analysed results from DADiSP.|
|Retrieve data from Excel.||Send data to DADiSP.|
|Send data to Excel.||Activate DADiSP commands.|
|Transfer data automatically as cell update.|
Using DADiSP and DDE
Dynamic Data Exchange (DDE) is a method of exchanging data between multiple applications. One application sends data to a memory location that other applications access. A DDE application can function as a “client” that requests data or a “server” that provides data. DADiSP operates as both a DDE client and server. Advanced DDE applications can be constructed using DADiSP’s built-in DDE functions.
|DDEINITIATE||Start a DDE Conversation, returns a channel number.|
|DDEREQUEST||Get a data item as text from another application.|
|DDEPOKE||Send a data item as text to an application.|
|DDEGETDATA||Get a series from another application.|
|DDEEXECUTE||Execute a command in another application.|
|DDEADVISE||Automatically retrieve a series from an application whenever the data changes.|
|DDEUNADVISE||Cancel a DDEADVISE operation.|
|DDELINK||Automatically retrieve a series from an application whenever the data changes. The channel number is managed internally.|
|DDEUNLINK||Cancel a DDEUNLINK operation.|
|DDEGETLINK||Get the link name from the Clipboard.|
|DDESTATUS||Get the status of the last DDE operation.|
|DDETERMINATE||End a DDE conversation.|
The steps outlined below demonstrate the basic command method of exchanging data between DADiSP and Excel.
The DDEINIT function opens a channel to a specific application and topic. The topic is often a document open in the application. DDEINIT can also start the application if it is not already running. For example,
ddeinit(“Excel”, “Sheet1”, “”, “c:\excel\excel”,1)
starts Excel and establishes a DDE link. The fourth string C:\excel\excel is the executable name of the application. The last argument of 1 tells DADiSP to automatically start the application if it is not already running.
The DDEGETDATA function allows an entire data series to be retrieved. For example,
ddegetdata (chan, “R1C1:R100C1”)
retrieves all the data from row 1 column 1 to row 100 column 1 in a series and places the series in the current DADiSP Window.
After analysing the data in DADiSP, the resultant information may be returned to Excel.
DDEPOKE sends a data item from DADiSP to an application as a string. For example, to send a 100 point series to Excel;
ddepoke (chan, “R1C1:R100C1”, Gsin (100,.01,1))
creates a 100 point sine wave and sends the data to row 1 column 1 through row 100 column 1 in Excel.
Automatic data transfer – DDE advise loops
DDE also supports a powerful feature called advise loops or hot links that automatically transfer data whenever the data changes. For example, to transfer the first 100 rows of an Excel worksheet into the current Window of DADiSP :
chan = ddeinit (“Excel”, “Sheet”)
ddeadvise (chan, “R1C1:R100C1”)
Whenever data in any cell within the first 100 rows of the first column changes, the entire column of data is transferred into the DADiSP Window where the DDEADVISE function was first executed. New data is automatically appended to past advise data.
Using DADiSP as a DDE server
Although DADiSP most often functions as a DDE client application, requesting data from other applications, DADiSP also acts as a DDE server. As a server DADiSP supports the following DDE topics: Commands and Systems. With the Commands topic, applications can retrieve information on almost any valid DADiSP expression. For example, using Visual Basic from within Excel (i.e. using Excel commands):
chn = DDEInitiate (“DADiSP”, “Commands”)
var = DDERequest (chn, “10*max(w1)”)
retrieves from DADiSP the maximum of W1 multiplied by 10 and assigns it to the Visual Basic variable var.
DDE management library
DADiSP’s DDE capability is built upon the DDEML or DDE management library. This support insures that DADiSP’s DDE capability will be compatible with, and take advantage of, DDE performance enhancements in subsequent releases of MS Windows. The DDEML also enforces strict adherence to the underlying DDE message protocol.
Excel is a registered trademark of Microsoft Corporation.
The Next Steps
Ready To Buy?
What do our Customers say about us?
Our Account Manager, Stephanie, was fantastic in dealing with our questions and my colleague’s concerns (many thanks Stephanie!) and your colleague Joe has provided invaluable assistance to my colleagues and myself during our initial and extended testing phases of Reference Manager.JH, Birmingham, UK
It was about as perfect as a teaching seminar could be. Moved at the correct pace and encompasses a good amount of information
Adept are continuing to be the most reliable and effective of all the technical helpline staff that I encounter.MD, Worcs, UK
Tutor was very knowledgeable and taught in a way that was easy to followKH, Uxbridge, UK
For the time being we are unable to offer the following product ranges although we are currently working hard to increase the number of products we can offer in the future. Please contact us to talk about alternative products that we may be able to offer you.