LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

an example to pass a number from one vi to another

hi

i want simple example to transfer numbers from one vi to another.

and what to do if i want to change it to transfer for example string or boolean character?

Thank you.

0 Kudos
Message 1 of 5
(2,230 Views)

To pass values into or out of a VI, add controls and indicators to the Connector Pane (top right of front panel window).

 

Add controls and indicators of the appropriate type for the data you want to pass. 

 

See Building the Connector Pane for more details.

 

To pass values whilst a VI is running, you'll need to use something like a Queue, Notifier or Channel Wire. These provide a method to pass data into or out of a VI without the VI needing to finish (or after it starts, when passing data in).


GCentral
0 Kudos
Message 2 of 5
(2,204 Views)

i found this example using queue function to do it do you have a simple example like this using queue function and transfer numbers from a vi to another?

0 Kudos
Message 3 of 5
(2,192 Views)

Producer/Consumer, you just need to have controls on the VIs to input the reference into the VI(s).  Or, you could store the queue reference in an Action Engine.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(2,187 Views)

All NI courses are free at this time. I suggest you start with Core 1:

https://learn.ni.com/training?cid=Direct_Marketing-a243q000004k8S0AAI-No%20Funnel%20Stage-em128733&e...

 

Certified LabVIEW Architect
0 Kudos
Message 5 of 5
(2,119 Views)