04-30-2014 12:07 PM
I'm super new to LabView and programming in general.
I am creating a VI that displays a plot (plot 1) with a constant value as green until the Sine wave input (displayed as plot 0) equals a certain y-value range and then the color changes to black. After this color change of that particular plot (plot 1), I want a different plot (plot 2) to display a different constant value and the same requirements to be met, just at a different y-value for the Sine wave input.
I've managed to complete the first part of my sequence with a while conditional loop but I am unable to get the second part to execute - it just stops with the next plot displayed but the data doesn't continue streaming through. Since I am relatively new to LabView, I'm unsure as to why this second part will not execute. Any help would be appreciated - I have attached a current version of my VI.
04-30-2014 12:17 PM
Combine everything into a single loop. YOu might need a shift register to keep track of your state, but it all needs to be in a single loop.
05-01-2014 10:35 PM
There is a function called In Range and Coerce you can use instead of those express VIs. It is much lighter in weight than an Express VI.
No need to duplcate the Express VI. You have two in each loop doing the same comparison. Use one and split the wire after it.
05-01-2014 11:36 PM - edited 05-01-2014 11:39 PM