LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get command values from a VI executed by reference ? NEWBIE

Hi,

I'm running a sub-vi in a "Secondary Front Face" (excuse for the
translation if not correct, I'm working on a French version). In order
to run this VI, I pass a reference. All is working fine but I don't
know how can I get the values entered by the user in this VI ?

Actually I run a main VI wich contains a "Secondary Front Face" (this
SFF is contained in a tabbed pane). In my diagramm, I pass a reference
to another VI (by the name of the file *.vi). If my user enter a word
in a text field, I would like to be able to get it in my main app.

Thanks for your help.
0 Kudos
Message 1 of 4
(2,703 Views)
If you have access (can open and edit the subvi called by reference), you can use either global variable, or pass the value as output (use strict VI ref when calling the subVI).

-Joe
0 Kudos
Message 2 of 4
(2,703 Views)

Hello,

You might take a look at the following tutorial for more information about calling a VI by reference. It's got some great visuals and examples.

Tutorial: Calling a VI by Reference

You might also consider just calling the secondary VI as a simple subVI, if you can spare the memory space when loading the main application, as this is the easiest way to input and output VI values.

I hope this helps! Please let me know if I can be of any further assistance.

Liz F
National Instruments

Message 3 of 4
(2,703 Views)
YYEEESSSS !!

This is exactly what I wanna do.

Thanks for all.

Take care.
0 Kudos
Message 4 of 4
(2,703 Views)