04-09-2008 09:08 AM
04-10-2008 10:35 AM
Hi sabaawy,
Since XML files can have custom tags in them you would have to build your own custom data plugin to tell DIAdem how to deal with the XML data.
Take a look at the following Developer Zone articles:
Developer Zone Example: XML Example DataPlugin
Developer Zone Example: XML - General Example
Please note that the Data Plugins path has changed to:
C:\Documents and Settings\All Users\Application Data\National Instruments\Shared\USI\Plugins\DataPlugins
04-11-2008 08:35 AM - edited 04-11-2008 08:44 AM
04-14-2008 09:57 AM
Hi sabaawy,
Assuming you have created a DataPlugin, as Jervin suggested and as the linked examples show, then here is what you do to create a new DataPlugin that uses your code. Typically you would do this before you started composing a DataPlugin, so that you could test its behavior from time to time as you progressed through the programming.
1) Go to either NAVIGATOR or SCRIPT in DIAdem
2) Select the menu "Settings>>Options>>Extensions>>DataPlugins..."
3) Click on the "Create DataPlugin..." icon at the top of the dialog
4) Name your DataPlugin and provide a default file extension (list)
5) Click "OK" to close the "New DataPlugin" dialog
6) Double-Click on your new DataPlugin in the list of DataPlugins
7) Click on the (now active) "Edit Script" button at the right of the "Properties" dialog
😎 You will now see default DataPlugin code in SCRIPT for this new DataPlugin
9) Replace the default code with your VBScript
10) Select the menu "File>>Save"
11) Now your DataPlugin should be used when you drag your file into the Data Portal
Brad Turpin
DIAdem Product Support Engineer
National Instruments