NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Teststand from LabView

Can you use a Case Statement w LV 7.x to call the Simple OI ?? The user will select a particular seq ( 1 of say 6 selections)they want to run from a top level menu ( already written in LV). This will take them to a sub menu until they get to the actual seq they wish to run. I want to "hard code" this final seq and run it when called in the OI. Two ther requirements. 1) There will be a STOP Button that takes them to the previous menu when pushed and 2) I want to make an executable out of all of this.

Make My Day, Clint E.
0 Kudos
Message 1 of 5
(3,484 Views)
Hello Clint,

From what I understand from your application, you want to go through a set of options and then finally execute a sequence depending on those options.

Like you said you can call the simple OI in case structure but it will make your application lot more complicated. Thus best thing is get the file name and provide that name to the simple OI. I can think of two different ways to do this:
1) Create a VI that gets the options and finally gets the name of the sequence file, which can then be sent to the simple OI for execution.
2) Create a flat sequence structure in LV, and in the first sequence get the name of the seq file after providing the options and in the second structure run the simple OI after providing the name of the file.

I hope it helps..

Rajiv
0 Kudos
Message 2 of 5
(3,454 Views)
Rajiv,
I'm stuck on 3 things. How do you pass the seq that I want to run into the OI ? How do you get it to execute automatically and suggestions on the logic? I have over a dozen seq's I've written in TS 3.1. I assume I will have over a dozen OI's with the final seq hard coded in them. I hoped to have nested ( "statemachine") Case Statements and one OI. The Case Statements would get the proper seq and then pass it to the single OI. I know what I want to do just not how to do it.

Thanks
0 Kudos
Message 3 of 5
(3,440 Views)
Hello Clint,

I would have three suggestions (I have attached a zip file containing a snapshot of all 3 of them)

Case 1) Simplest and easiest: Call the Simple OI Executable on command line with the sequence file name as a parameter

Case 2) Call the OI VI by reference and execute the VI from your application. Then pass the sequence file name via a global variable to the simple OI.

Case 3) Call the simple OI as a subVI and pass the sequence file path to it.

I hope it helps,
Rajiv
0 Kudos
Message 4 of 5
(3,412 Views)
"A picture is worth a thousand words". Because of time and money constraints I am going to try and incorporate Case 1. I hope this works out the way I need it to. Thanks in advance.

Clint
0 Kudos
Message 5 of 5
(3,400 Views)