NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass Text From .csv File

 I am using an IVI step type for CAN. This is very stable. I need to get these 12 values into separate variables from the saved .csv file on the local drive. My belief (without knowing DOS batch file operations to much) is that I can open the .csv file, match a variable name and then pass the contents of the next variable to a FileGlobal or local variable. Having done this, my problem would be solved. Is it possible to read a .csv file using a DOS batch file and sending its contents to the screen?   

0 Kudos
Message 11 of 12
(576 Views)

You can add the content of a text file to Teststand local, step or file variables using a "Property Loader" step. You would need a template though, in the following gifs you can see how such template is created and how the variables are imported.

 

In the attached text file you can notice that there are specific fields where you can write the content to be imported (in this case what is being imported are the numbers 1, 2 and 3). Is not exactly what you are looking for since it is not directly taken from the file you already have but with some scripting you could automatize the process of giving the files you have the necessary format to be imported.

 

 

 

 

CreatingTemplate.gifImportingData.gif

0 Kudos
Message 12 of 12
(568 Views)