LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

monitoring other vi

Hi, I'm working with several vi, all of them link with Datasocket and VISA and with a front panel with buttons, graphs, leds...
I have been thinking to create a main vi that the user can see all vi. The user would choose which vi to see. In the example (picture )the use choose C.vi. The user now takes the control of this vi.
It's possible? Do you can give me some link related to this?
 
Vicen
WinXP / LV7.1
0 Kudos
Message 1 of 8
(3,877 Views)

You can create subvis and call them from the main vi.

You have a very good example in Find Examples in LV 7.1 called Dialog Box demo.vi.

Hope this help.

Message 2 of 8
(3,832 Views)
Hello.

Take a look at the subpanel. It might be what your looking for.

Cheers!

//Beckman
Message 3 of 8
(3,822 Views)

Thanks to both.

 

 

vicen

0 Kudos
Message 4 of 8
(3,811 Views)

Really, it was a good example.

Another question:
I have a vi that checks a machine. This machine have 3 (or 10, or 100, it's an example) tanks. I don't know how many tanks are ON. The user control the vi and when he push a button this vi receives one message for each tank ON. If there are 2 tanks ON, the vi will receive 2 messages.

Now, I want create X dialogs box, one of them for each message received. In this example I would see 2 dialogs boxs. I have created a subvi that show this message (as the example Dialog Box Demo.vi). There are some method to show this 2 messages box with one subvi? (An easy solution would be to use a copy of the subvi and to send each message to each subvi, but if I receive 20 messages? I cannot create 20 copies!)

 

Thanks

Vicen

WinXP / LV7.1

0 Kudos
Message 5 of 8
(3,793 Views)

If you need to generate a different message depending on the tank, you could use a case structure in which the case selector is an array of booleans, and each element of this array corresponds to a tank in your example. Inside each case execute the subvi you created for showing the corresponding message.

Regards.

0 Kudos
Message 6 of 8
(3,776 Views)

Hi, AitzbertH

I've tried to use a case structure but I cannot to create two front panels of two differents messages at the same time.  When I read the first message it opens a front panel (of this message). The second message appears when I push the button "close" (and close the FP).

0 Kudos
Message 7 of 8
(3,764 Views)

This vi is not the real VI, it's only a summary and it doesn't work.

 

Vicen

0 Kudos
Message 8 of 8
(3,759 Views)