LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying progress of Vi while Vi is running

Solved!
Go to solution

I have a subvi that is periodically measureing data at output and runs for 1000 measuremtn cycles.  I have on the front panle a cluster of measurements that when the subvi is running is updating correctly.  I want to pull this information to the calling vi so the operator can see what is occuring.

 

I searched help and the knowledge base and I do not find the answer.  

 

Is there an example that shows how to to do thia or do I have to pull the entire vi up to the main level. 

 

 

0 Kudos
Message 1 of 16
(3,752 Views)

are you trying to get a boolean of some sort to turn on when you stop this program or have an led turn on if you stop this program?

 

LED just being an example.

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 2 of 16
(3,749 Views)

      No the sub vi is measuring voltage and current and causing the load to be periodically changed to a UUT.

 

     Similar to generating an IV curve for a solar cell.

     

      While the Vi is working correctly but it takes a while to collect the points. The main panel is unchanging and looks frozen.

 

      I can open and close the subvi front panel.  I though the data socket would work but so far no success.

 

 

      I see plenty of ways to allow a subvi to see controls from the main panel but not the other way around.

 

 

 

Bill

 

 

 

0 Kudos
Message 3 of 16
(3,740 Views)

I don't know if this will help you, but I will post it here for you

 

it seems like you are trying to send information from a subvi to your main vi.

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 4 of 16
(3,732 Views)

I hope this will be usefull for you.

http://forums.ni.com/ni/board/message?board.id=170&message.id=425555#M425555

Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
0 Kudos
Message 5 of 16
(3,721 Views)

baji,

 

 

I think this is on the right track,  but I think I am a little dense, just can't seem to make the reference work for an cluster of two doubles.

 

 

Is there a working example of this process that you can point me to.  

 

 

 

 

Bill

 

 

0 Kudos
Message 6 of 16
(3,702 Views)

HI LXI bill,

 

I am a little confused about your ultimate goal. You said you are taking voltage and current measurements in the SubVI. Is this data then being bundled into a cluster and then displayed on the front panel of the SubVI? Are you then trying to pass this data to the calling VI? If so, you should be able to simply set the front panel cluster as a output using the connector pane and then display it on the calling VI's front panel using an indicator. Please let me know if I have misunderstood your question.

 

Thank you for choosing National Instruments.

 

Aaron Pena

National Instruments

Applications Engineer

http://www.ni.com/support

0 Kudos
Message 7 of 16
(3,686 Views)

Hello Aaron,

 

 

When the subvi completes its series of measurements ( 3 - 1000), an array is sent with the pairs of measruements.  This is bundled with other sets and plotted in an xy graph.    I also have the actual measurement pair as they occur ,on the subvi's front panel as an indicator.

 

I created a global variable for these same measurements and the global variable panel shows these measurement pairs in real time.

 

I want the same behaviour on the calling VI, so my user ( sales types) uses one panel with the measurements occuring in real time.   

 

If this is not clear enough, I will create a pair of Vis that are similair in function.

 

 

Bill   

 

0 Kudos
Message 8 of 16
(3,667 Views)

I have no idea why you would create a global variable but if you already did, you can simply put a read of that in your main VI.

 

Without using a global or reference, you could also just show the front panel of the subVI as it runs. 

 

If you want to use the reference and are having a problem, you should post the main VI and the subVI so someone can see what you have done.

0 Kudos
Message 9 of 16
(3,644 Views)
Or if using LabVIEW 8.x and LabVIEW Project, write your data in the sub-VI to a network shared variable(s) and then bind your calling VI indicator(s) to the shared variable(s). I use this quite a bit to display a ton of telemetry values and it works like a champ (high performance). Difference is that my "data collector" is an independent thread and not a sub-VI.
Message 10 of 16
(3,634 Views)