LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data acquisition with control references

I'm a new LabView user and I would like to acquire data in a subVI and display that data in the main VI. I think that I need to use control references and refnums, but I just haven't been able to figure it out. I would GREATLY appreciate any help I could get.

Thank you!
0 Kudos
Message 1 of 5
(2,599 Views)
Is there a reason why you can't just bring the data out through a terminal and wire it to an indicator on the main VI's front panel?

What exactly are you trying to do?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 5
(2,599 Views)
Here is an example showing how to use sub-vi's
0 Kudos
Message 3 of 5
(2,599 Views)
Hi Mike,

Thanks for your comment. The problem I'm having is that when I bring the data out through a terminal and wire it to an indicator in the main VI, the indicators on the main VI don't do anything. When I have both the main and sub VI front panel open and I press "run", I can see that data is being collected in the sub VI, but still the indicators in the main VI don't move. I don't know what I'm doing wrong! I think I have the connector panel wired correctly. If it makes a difference, I'm using a Fieldpoint system to collect data.

Thanks for your help.

Tami
0 Kudos
Message 4 of 5
(2,599 Views)
From your description I would guess that the "subVI" has a loop in it that repeatedly reads the FP hardware, and the indicator is inside the loop. Right?

The thing to do is move a lot of the logic in the subVI up to the Main VI--or add the Main's added logic to the subVI, whichever is easier. In the first case, the subVI would go away, in the second, the subVI would become the Main VI.

If you're confused, post your code in V6.0 format and I'll show you what I mean.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 5
(2,599 Views)