NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Script to sequence conversion

Hi,

I would like to know if it would be possible to convert a text based test script to a TestStand sequence? The conversion program would be developen with LabVIEW.

The test script would have a syntax similar to Perl. We would like to be able to declare variables, include for, if-then-else and while statements.

For example a non TestStand programmer could write this script:

$count = 10;
$instrumentAnswer
instrumentAnswer = ReadInstrument(0,1)
while ($instrumentAnswer >= 0 and count >= 0) {
WriteInstrument(0,1)
instrumentAnswer = ReadInstrument(0,1)
WriteInstrument(2,10)
instrumentAnswer = ReadInstrument(6,0)
$count--;
}

Do you think it is possible and do you have any hints on how to do this?

Thanks!
-M
0 Kudos
Message 1 of 2
(2,942 Views)
Hi M,

It sounds like the hint that you're looking for is most likely a Sequence File Translator. This tool allows you to load sequence files with your own custom file formats. There's a good 16 pages of information about how to implement these that can be found in Chapter 15 of the TestStand Reference Manual. You can find this manual by going to: Start»Programs»National Instruments»TestStand 4.0»Online Help»Manuals»TestStand Reference Manual.

Here's also another long thread on this issue that you might find useful:

http://forums.ni.com/ni/board/message?board.id=330&message.id=17873&requireLogin=False

Have a good day!

Lars
0 Kudos
Message 2 of 2
(2,901 Views)