LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

wave chart

I created a sin signal inside a case structure and put a wave chart inside the same case structure and another wave chart outside it

the one inside draw the right signal but the one outside draws strange signal

Untitled.png

here is the VI file

https://www.dropbox.com/sh/lkxqc1oz1w4rq3u/AAAINojgnggfXwtclCXnkMlLa?dl=0

0 Kudos
Message 1 of 4
(2,776 Views)

Can't access your VI. Can you post it here?  If the VI file is blocked, put it in a zip file and post that.

 

What is happening in the FALSE case?  I'm guessing it is just a single scaler value going to the output tunnel.  That would cause your Dynamic Data Type coerce to the single value, likely the first or last value in the data stream for that iteration.  Therefore, you only get a single value out of the case structure each loop iteration and it is just hitting at the peaks.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(2,764 Views)

I think the most obvious point here is that the second plot is using an I32 datatype, if you change the format to a DBL or convert the data into a DBL inside the case structure and then pass out the DBL data into the graph you should not have any problems. 

 

(I32 is an integer number representative so can only show whole numbers i.e. 0, 1, 2, ... but when you are passing numbers less then 1 it is scaling your outputs to integer numbers.)

0 Kudos
Message 3 of 4
(2,748 Views)
Whether the data type is an integer or float, the second chart will not display a sine wave since the indicator is for a scalar as already mentioned.
0 Kudos
Message 4 of 4
(2,741 Views)