02-03-2015 12:17 PM
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
here is the VI file
https://www.dropbox.com/sh/lkxqc1oz1w4rq3u/AAAINojgnggfXwtclCXnkMlLa?dl=0
02-03-2015 01:02 PM
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.
02-03-2015 01:56 PM
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.)
02-03-2015 02:07 PM