Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6584

Can I use the API 'Write' Method to write multiple variables to a single text file?

$
0
0

Hi All,

 

I am new to TestStand, I have used the write method to write values in my local variable (Locals.Parameters) to a text file address specified in my local variable (Locals.FilePath):

Locals.Parameters.Write (Locals.FilePath, "MY_GLOBALS", 0)

 

I have set the RWoptions = 0 (indicating default behaviour). 

 

I now want to write more than one variable (Locals.Parameters and Locals.Parameters2) to my text file which Locals.FilePath points to. I tried setting RWoptions = OR (bitwise-OR as described in TestStand help:

Locals.Parameters.Write + Locals.Parameters2.Write (Locals.FilePath, "MY_GLOBALS", OR)

 

This doesn't work so I tried to individually write them but this only writes the last variable (Locals.Parameters2):

Locals.Parameters.Write (Locals.FilePath, "MY_GLOBALS", 0),

Locals.Parameters2.Write (Locals.FilePath, "MY_GLOBALS", 0)

 

Is it possible to write multiple variables to a text file and could you please enlighten me on how to implement this in TestStand code? (BTW I am using TS 2014)

Any help is much appreciated, thanks

 

 


Viewing all articles
Browse latest Browse all 6584

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>