LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot name errors on mixed signal graph

Brian,

 

I've done a bit of testing with a modified version of the idea in the VI you posted. Basically what I am trying to do is to load the names withing a ring control with the channel names for the task to select the plot to change the color of.

 

I have it working but there is one thing I would like to know how to improve:

 

The way I have the plot property nodes connected to the ring and color control makes the color update timing dependant on the data acquisition rate of my task meaning that if new data is acquired every 10s then the color change on a plot will not take effect until that 10s is up.

 

I've noticed that in your example, your property settings and controls were in a while loop with a wait command. One thing I am unsure about in implementing this in my program is that I am already running data acqusition in the main while loop.

 

This leads me to believe that I would need to put the controls and property nodes in a parallel while loop. At this point, I'm curious how I can communicate the channel name data between the two loops.

 

I have attached my code so that you can see the program as a whole and maybe give me some ideas for implementation. In the attachment, the controls and property nodes are in the main while loop which is why there is the 10s delay for updates. I also have two mixed signal graphs in this VI but the plot color change functionality is only implemented on Plot B at the moment.
0 Kudos
Message 11 of 12
(745 Views)

The standard way to send some small bit of data between parallel loops would be to use a local variable.  However, you should be very careful with this to avoid race conditions.  Really, if you need to be actively changing the presentation, reporting, etc.. of data, while acquisition is going on in the background, the Prodocer/Consumer architecture is the best design.  If this is something you have the time and interest for, I would recommend it.

Message Edited by Brian_A on 09-16-2008 11:12 AM
Brian A.
National Instruments
Applications Engineer
0 Kudos
Message 12 of 12
(729 Views)