NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

XML File reading

Hi to all,
I have a test stand application with a number steps (around 50).
I need to select few tests from this depending on a XML  file (in XSD format) input details and set the limits for these steps.
Whether .XSD file can be directly read using TestStand?What is the function to be used?
I am using TestStand 3.1.
Can anybody help me?
 
 
 
0 Kudos
Message 1 of 5
(5,575 Views)
SajK,

There are no native functions in TestStand that will read XSD or XML file formats.  The property loader tool (Tools -> Import/Export Properties) and the property loader step type can be used to load data such as step limits and variables.  The property loader is able to read tab delimited text, comma delimited text, and Excel spreadsheets files (xls).  For more information on the property loader check Appendix D of the TestStand Reference Manual (starts on page D-5).  If you are able to convert XSD to the property loader format then you can use the property loader step type to load in the data.

Otherwise, you would have to implement your own XSD reader in a code module of your choice (LabVIEW, CVI, C, .NET, etc).  Then you would have to manually apply the data that you read to the proper locations in TestStand.  For instance, reading the limits for a step then setting the Step.Limits container to the appropriate data.

Either way, you will have to implement your own code in order to get the information into TestStand.  The advantage of the property loader is not having to write code to apply the limits and other data to the proper locations within TestStand.  The property loader is also capable of reading and applying multiple step properties from one execution step.

Let me know if you have any questions.

Thanks,

Tyler Tigue
Applications Engineer
National Instruments
Message 2 of 5
(5,547 Views)
Tyler,
I will try it.
Thanks for your reply.
 
SajK
 
0 Kudos
Message 3 of 5
(5,538 Views)
SajK,

    I am looking for the exact same functionality of an xml property loader as you. Do have any solution for this yet? I want to create my own dialog for XML Property loader (in .net) and populate the controls in this dialog with Teststand specific context. I am not sure about what kind of project i need to create for this. It would be great if you could share any pointers you have on this.

Thanks!
0 Kudos
Message 4 of 5
(5,358 Views)

daffodil,

I am sorry..

That project requiremnets were changed.

In later stage of that project XML report was not required. So I did not look munch into it..

0 Kudos
Message 5 of 5
(5,340 Views)