05-28-2009 04:04 PM - edited 05-28-2009 04:07 PM
Solved! Go to Solution.
05-28-2009 04:22 PM
Wiring from one loop to the other does not work because of the basic dataflow principle of LabVIEW. Nothing is passed out of a loop until the loop finishes and the other loop will not start until it's data is present.
If possible, move all of the data acquisition into a single loop. Otherwise, you can write to a queue in one loop and read it in the other. There are examples and design templates (i.e. Producer/Consumer) that demonstrate how queues can be used.
06-03-2009 12:41 PM
06-03-2009 01:06 PM
BTW the only way I could get this to work is to just wire the data directly (no waveform), but then I lose the waveform name, which is important since the number of plots varies, and the legend needs an entry for this one.
06-04-2009 03:19 PM
Screenshots of your code which documents the behavior you are seeing would he helpful in trying to find a solution. Can you post those so that we can try and figure something out?
-Zach
06-05-2009 11:49 AM
Sure, here is the code of interest. The loop on the left is the DAQ loop (about 0.5s period) which charts data from several channels. On the right is the loop (0.25s) that gets data from the other intrument which I'd like on the same chart. As I say, it now works, but I need the name showing up in the plot legend.
06-08-2009 03:36 PM
Hello,
From looking at your screen shot, it seems that you have a double data type wired into your Obtain Queue located in the middle of your attached screen shot. I would recommend wiring a waveform constant to the Obtain Queue instead of the double constant. This will define your data type as waveform and will porbably allow you to get the waveform names.
The waveform constant is located on Functions Pallette under Waveform>>Analog Waveform>>Waveform Constant.
Please see the attached screen shot for clarification.
Hope this helps!
06-16-2009 02:20 PM