07-29-2009 08:45 PM
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.
Solved! Go to Solution.
07-29-2009 08:52 PM
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.
07-29-2009 09:04 PM
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
07-29-2009 09:30 PM
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.
07-29-2009 10:48 PM
I hope this will be usefull for you.
http://forums.ni.com/ni/board/message?board.id=170&message.id=425555#M425555
07-30-2009 08:36 AM
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
07-30-2009 10:45 AM
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
07-30-2009 07:06 PM
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
07-30-2009 11:18 PM
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.
07-31-2009 01:11 AM