LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display real time data on a plot in a sub VI and main VI

Solved!
Go to solution

 

I am building a program to measure and plot real time data. Program has several steps so I build few Sub VIs to make it simple. My problem is I am plotting real time data in my SUB VI(it works fine), but in my main program when I try to get the same plot its not real time data plot. Plots appear at the end of the program.  All tips and help would be greatly appreciated. Thanks
I have attached my main VI and Sub VI
 
 
 
 
Download All
0 Kudos
Message 1 of 8
(4,812 Views)
Solution
Accepted by topic author srms

LabVIEW program is based on DATA FLOW, now, until the subVI will finish execution (while loop will be stopped), the execution in Main VI will not proceed any further.

 

If you can pass the reference of 'XY Graph' inside the subVI, you'll be able to update the plot (placed on MAIN VI) from within subVI.

 

Find attached example for your reference.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


Message 2 of 8
(4,807 Views)

thanks for the reply. I tried to find some help online. but I dod not know where to start. Can you tell me how do I do that? or send me a link which I can use

 

Thanks

0 Kudos
Message 3 of 8
(4,791 Views)

@moderator1983 wrote:

If you can pass the reference of 'XY Graph' inside the subVI, you'll be able to update the plot (placed on MAIN VI) from within subVI.

 

Find attached example for your reference.


WOW that's freekin' magic!

 

In over a decade of programming LV I have never been able to do anything like this.

 

Where can I find a good detailed explanition on using References?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 8
(4,787 Views)

@RTSLVU wrote:
Where can I find a good detailed explanition on using References?


You can search of 'Explicit' and 'Implicit' property nodes.

Well here is one link I found for you


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 5 of 8
(4,780 Views)

@RTSLVU wrote:
Where can I find a good detailed explanition on using References?

Control References: Overview


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


Message 6 of 8
(4,778 Views)

srms,

 

You need to mark Moderator's message as the solution to your question.  Not your own thank you message.  First you need to go to the options menu to the upper right of your message to unmark it as the solution.

Message 7 of 8
(4,751 Views)

@moderator1983 wrote:

@RTSLVU wrote:
Where can I find a good detailed explanition on using References?

Control References: Overview


Its my bad, in my previous reply I included wrong hyperlink, below is the correct one:

 

Control References: Overview


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


Message 8 of 8
(4,710 Views)