LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmaticaly Opening a Sequence file in Labview

I am creating a custom operator interface in Labview to execute a sequence file. How can I programmaticaly open a sequence file with a constant path in the background without needing to connect it to a control ? then how can I close that file when the labview operator interface closes ? Any help on this is appreciated.
 
Regards,
Ayman
0 Kudos
Message 1 of 4
(3,523 Views)
Hi Ayman,

The ApplicationMgr Control has a method called OpenSequenceFile. The only input is a string indicating the path to the file. This will programmatically load the sequence file and make it the active file.  Similarly, use the CloseSequenceFile method to close the file.

Have a great day,

Ecleamus Ricks, Jr.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(3,503 Views)

Ecleaumus,

I used open sequence file and close sequence file, but there is a small problem. It looks like the sequence file is opening right but not closing correctly, because if I exit from the Operator interface then start it again, I get this error saying that the sequence file was not released when the test stand engine was destroyed. Any idea what might cause that?

Regards,

Ayman

0 Kudos
Message 3 of 4
(3,475 Views)
Hi Ayman,

You need to make sure that the sequence file is not still running in an execution and there are no other references to the sequence file that exist before calling the CloseSequenceFile method otherwise the sequence may not be immediately unloaded from memory.  The method returns a boolean value that tells whether the sequence file was cancelled.  Make sure you check this value to ensure the sequence file was closed before exiting your application.

Have a great day,

Ecleamus R.
0 Kudos
Message 4 of 4
(3,455 Views)