PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to skip a TesStand step in Labwindows/CVI?

I am reading data from an Excel file and using the data in my TestStand steps. Some of the information I read may contain "n/a" instead of a double (for example), if this is the case, I would like to skip the step that uses this data (since the data contains "n/a" and is not useful). Is there a routine in Labwindows/CVI that will allow me to skip a specified step in my TestStand sequence?


Thanks!
0 Kudos
Message 1 of 2
(3,196 Views)
Sir,

I'm guessing that you have a TestStand sequence that calls some CVI steps, in which you read in the excel data. Since you have access to the data values, you can use a TestStand precondition on the step in question. Once you have the data in LabWindows/CVI, you can use the TestStand API to write those values or a flag back to TestStand. Then in TestStand, simply check the contents of the variable or flag to see if it equals a certain value. If it does, then that step will be executed. If not, the step will be skipped.

Also, there is a step type in TestStand called the Property Loader which will allow you to programmatically load variables, properties, and step limits from either an excel file, a text file, or a database. It may be easier to read the
values in TestStand and then pass the values to your LabWindows/CVI code module.

For more information on preconditions and the property loader, I would look at the TestStand User Manual.

If you have other questions, let us know!

Regards,
Shannon R.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,197 Views)