DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

data from xml files

I installed the evaluation version of the DIAdem. The data I am trying to analyze is in xml files. I tired different things to read the data from mny files but i coudn't get it to work.  The only documentation I was able to find is document "30BACSEV" which did not help me in my issue. Remeber, I am new to this, so please don't assume that I know anything about DIAdem. I need some help before my evaluation version expires.

Thanks

0 Kudos
Message 1 of 4
(4,433 Views)

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

Jervin Justin
NI TestStand Product Manager
0 Kudos
Message 2 of 4
(4,412 Views)
Thanks Jervin,

question: once I have my VBScript ready, how do I use it to load data from my file to DIAdem ?

Thanks again!




Message Edited by sabaawy on 04-11-2008 08:44 AM
0 Kudos
Message 3 of 4
(4,396 Views)

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

0 Kudos
Message 4 of 4
(4,368 Views)