07-17-2014 09:30 AM
So I have multiple while loops, all performing the same task but for specific reason I am unable to merge them into one while loop. Each loop outputs data that needs to be plotted onto one waveform chart in real time, but the waveform chart only does that if its located in the while loop, which does not work here. Any ideas?
07-17-2014 09:41 AM
Hi Punsach,
well, using a producer-consumer scheme could simplify the solution…
You need to transport your data to a parallel loop feeding your chart. The PCS would be an option (local variables might be a quick&dirty solution too)!
07-17-2014 09:44 AM
@GerdW wrote:
Hi Punsach,
well, using a producer-consumer scheme could simplify the solution…
You need to transport your data to a parallel loop feeding your chart. The PCS would be an option (local variables might be a quick&dirty solution too)!
I am using a consumer/producer structure
Here, I will post my code
07-17-2014 10:31 AM
This is the same program just with one signal. I need to have the pause feature in it as well, but am having trouble having multiple signals works together
07-17-2014 11:22 AM - edited 07-17-2014 11:23 AM
Hi Punsach,
missing subVIs…
- Even when you need that PauseContinue button: why do you need a while loop in a case structure and a local variable for that feature? Why not put a case structure around your signal generation - or merge your Pause condition with the "New queue" wire (which is silly anyway!)?
- Why do you need 4 NIScope ExpressVIs to generate the datatype wire for those CreateQueue functions?
07-17-2014 12:10 PM
@GerdW wrote:
Hi Punsach,
missing subVIs…
- Even when you need that PauseContinue button: why do you need a while loop in a case structure and a local variable for that feature? Why not put a case structure around your signal generation - or merge your Pause condition with the "New queue" wire (which is silly anyway!)?
- Why do you need 4 NIScope ExpressVIs to generate the datatype wire for those CreateQueue functions?
Frankly, I am not sure how to work with the PauseContinue button, but this is the design i have been working with so far. And I need hte 4 NISCOPEs because each one takes in data from a difference device/channel
07-21-2014 01:11 PM
Is there anything you can tell me about the solution?
07-21-2014 01:33 PM
And what is PCS?
07-21-2014 01:49 PM