LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

writing to front panel indicators from sub-VI

Hi,

I'm writing my first VI program for the HP4193a impedance analyzer (If
someone knows of one already, let me know).

The front panel has three indicators for frequency, impedance magnitude
and phase.

For the various modes of operation (spot measurement, two kinds of
sweeps), I want to update the three indicators. However, all the
measurements are in their sub-VI's, where the sweeps have their loops.

It is from inside these loops that I want to send the info to the front
panel indicators. How do I do that?

Thanks,

Mirko


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 1 of 2
(2,446 Views)
Mirko Vukovic wrote:

> Hi,
>
> I'm writing my first VI program for the HP4193a impedance analyzer (If
> someone knows of one already, let me know).
>
> The front panel has three indicators for frequency, impedance magnitude
> and phase.
>
> For the various modes of operation (spot measurement, two kinds of
> sweeps), I want to update the three indicators. However, all the
> measurements are in their sub-VI's, where the sweeps have their loops.
>
> It is from inside these loops that I want to send the info to the front
> panel indicators. How do I do that?
>
> Thanks,
>
> Mirko
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.

First go to zone.ni.com and look for the instrument driver link
There are drivers for the 4192 and 4194, they may or may not
work
for the 4193 but should be a good starting point.

As far as how to get the data from a subVI to a main VI that is a task that
is quite frequent, so you need to know how.

If the SubVI does something in a loop, you can not get the data out till the
loop finishes,
unless you use a global (which is not recommended). A better approach would
be to
have the subVI run and get its data, report it to the Main VI and have the
Main VI restart the
SubVI for another data collection.

Let me know if you have any more questions
Kevin Kent
0 Kudos
Message 2 of 2
(2,446 Views)