LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI control

To all,

I am a fairly new LabView programmer with the task of controlling one VI
with another. Both VI's are data acquisition systems, one newer and simple,
the much more complex. The latter also controls most of the data acquisition
hardware. I want to control the simple system with the older system. The
simple system has a start/stop button on the front panel that starts/stops
the data collection. I simply want to 'push' that button from the other VI.

I am looking for suggestion on how to best accomplish this task. I have
tried replacing the start/stop button with a global variable but have had
little success. There seems to be a timing problem.

I'd appreciate any and all comments and suggestions. Let me know if I should
give any more info.


Please post replies to the newsgroup.

Thanks in advance,
Dave M
0 Kudos
Message 1 of 2
(3,301 Views)
If you use 'VI refnum' and 'Invoke node' in one of VI's (VI1), you can
control the other VI (VI2) in memory. There are some menus in 'Invoke
node' such as 'set control value'. For example,

(1) create 'VI refnum' from the pannel and browse the target VI (which
will be located in the memory later)
(2) open 'Open VI refnum' in diagram and assign correct path and type
specifier
(3) open 'Invoke node' and assign reference
(4) From 'Invoke node', choose 'set control value' from 'method'and
assign control name (case sensitive) and values (it should be
flattend, i.e. should be converted to binary string, which can be done by
'advanced' -> 'data manipulation' ->'flatten to string'). You should
assign type descriptor also, which is gen
erated from 'flatten to
string'

If you run VI1, VI2 will be loaded into memory and you can control it from
VI1.

This is the way that I am doing. I tried to be correct and appropriate but
there will be a better way. Any suggestions and corrections will be
welcomed.


On Sun, 3 Oct 1999, David and Sonya Miller wrote:

> To all,
>
> I am a fairly new LabView programmer with the task of controlling one VI
> with another. Both VI's are data acquisition systems, one newer and simple,
> the much more complex. The latter also controls most of the data acquisition
> hardware. I want to control the simple system with the older system. The
> simple system has a start/stop button on the front panel that starts/stops
> the data collection. I simply want to 'push' that button from the other VI.
>
> I am looking for suggestion on how to best accomplish this task. I have
> tried replacing the start/stop button with a global variable but have had
> little success. There seems to be a timing
problem.
>
> I'd appreciate any and all comments and suggestions. Let me know if I should
> give any more info.
>
> Please post replies to the newsgroup.
>
> Thanks in advance,
> Dave M
>
>
>
>
>
0 Kudos
Message 2 of 2
(3,301 Views)