LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

threshold chart data

I am reading in DAQ data into my program and would like to plot real time the remaining signal once the data stream value triggers above a set threshold value. Using a case structure before a waveform chart with the true condition wiring the data directly to the chart. When the data goes above the threshold the data is passed on to the chart just fine. When the data is below the threhold in the false structure, where the data is not wired to the chart, the data still passes to the chart. What property on the chart do Ineed to set, or is there a better way to accomplish thistask? Thank you.
0 Kudos
Message 1 of 4
(2,827 Views)

Hello,

I didn't understood all that you post. But see if my example can help you

Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 2 of 4
(2,806 Views)

Jorge,

Thank you for your quick response. From your example, I know what went wrong with my code. I put the Chart icon on the outside of the case structure. See attached. The results are very different. I guess data wires to charts can't be discontinuous.

Thanks

Ben

0 Kudos
Message 3 of 4
(2,801 Views)


Benadam wrote:

Jorge,

Thank you for your quick response. From your example, I know what went wrong with my code. I put the Chart icon on the outside of the case structure. See attached. The results are very different. I guess data wires to charts can't be discontinuous.

Thanks

Ben



It's not a matter of continuous or discontinuous.  In your version, the chart has something written to it on every iteration of the loop coming from the output tunnel of the case structure.  If the case structure is true, then it is the data passing through on the wire.  If it is false, then the chart gets its value from the default value of the tunnel which is 0 for the I32 datatype.
 
In Jorge's version, the chart only gets a value in the True condition because the chart is inside the true case of the structure.
0 Kudos
Message 4 of 4
(2,788 Views)