10-07-2013 12:59 PM
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.
10-07-2013 01:49 PM
Try a master-slave or producer-consumer architecture. They sound like what you want.
Cameron
10-08-2013 10:20 AM
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.
10-08-2013 10:36 AM
Thank you for your answers, I will look into it.