LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel graph display

Hello everybody.

I am currently working on a program on wich I want to display some graph information on a parallel VI. I have a subVI that receives the X Y data and on its front panel I have the graph I want to show. There is no need that this subVI returns any data because I only want to plot. I have tried to methods so far. The first one is to send the data via an Invoke Node. The second one is to send the data to a global variable and that my subVI reads these values and plot them. However, I can only do it once and I need this graph to update constantly. But... when I put a while cycle on the algorithm to plot my data points inside the subVI, I get locked out of the main VI program, each time I click on it a sound is heard to indicate that another instance is running. How can I solve this?

Thanks for your help.

Luis.

0 Kudos
Message 1 of 4
(2,454 Views)

Try a master-slave or producer-consumer architecture. They sound like what you want.

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
Message 2 of 4
(2,440 Views)

Hello Luisgepeto,

As Camerond said, you could use a producer consumer design. I just want to share you a link with basic information about how to implement this desing in your program.

 

http://www.ni.com/white-paper/3023/en

 

hope this could help

 

Omar I. 

Omar I.
Applications Engineer
National Instruments
Message 3 of 4
(2,414 Views)

Thank you for your answers, I will look into it. 

 

0 Kudos
Message 4 of 4
(2,410 Views)