LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronous block with subVI

Hello !

I want to do in my program something like this:

 

I create the next subVI:

 

Untitled1.jpg

 

 

 

I create a variable called Numeric Synchronous display which actualice it every 500msec, it is shown in front panel, and at the same time create an array.

 

Then I create a mainVI as follow:

 

Untitled2.jpg

 

 

How can I see the Synchronous values in mainVI???? Can I visualize it???

0 Kudos
Message 1 of 3
(2,689 Views)

Dataflow says that every node waits for all of its inputs until it executes.

 

So your "How to have a numeric synchonous display here" indicator waits until the SubVI finished it's execution.

The simplest way would be to create a global variable or a property node reading the value of the indicator in the SubVI.

 

 

Hope this helps,

Christian

0 Kudos
Message 2 of 3
(2,685 Views)

@Christian_M wrote:

Dataflow says that every node waits for all of its inputs until it executes.

 

So your "How to have a numeric synchonous display here" indicator waits until the SubVI finished it's execution.

The simplest way would be to create a global variable or a property node reading the value of the indicator in the SubVI.

 

 

Hope this helps,

Christian


This would be the simplest solution but generally not the recommended one. Passing data to a UI task to update the display is generally accomplished using queues, notifiers or user events. Global variables and property nodes couples the code too much and can make maintenace difficult as the application grows and becomes more complex.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 3 of 3
(2,682 Views)