Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing the main VI while a subVI is still running

Hi,
I am trying to write a program to communicate with a device through its ActiveX properties. I have a main VI with button controls that calls other VIs that perform tasks or monitor the state of the device. These buttons is used with event structure to decide which subVI to execute.

Some of the VIs that I wrote just monitors the device so need not be finished. I want to be able to do other tasks on my main VI (or call other VIs using my main VI controls buttons) without having to wait my monitoring VI finish its job or close that windows. In other words some subVI will keep running on separate windows communicating with ActiveX server (my device) and I can still use my main VI for other tasks.

Any ideas how I could do this?

Thanks.
0 Kudos
Message 1 of 2
(3,107 Views)

The easiest way is to have multiple parallel loops in the main vi. each loop can control a device.

The best way to control the loops is via a que from one eventstructure, that is rtunning in its own loop.

 

succes

greetings from the Netherlands
0 Kudos
Message 2 of 2
(3,102 Views)