LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The same signal produces two different waveforms?

I have two waveform charts that are reading signals from the exact same source, but they look drastically different. The only thing that was fixed for both charts was unchecking the Autoscale Y option. I keep comparing their properties back and forth, but I can't find anything different. I'm near my wit's end! In my attached pictures, I am referring to Wavecharts 2 and 3. Wavechart 3 is supposed to look exactly like Wavechart 2. Ignore the third wavechart.

 

This vi is modified from the solution for Exercise 3.2, Track B of NI's "Learn Labview in 6 hours" zip file. I was supposed to recreate it myself, which I did, except that my graph was nearly all white while the example and directions show a clearer sine graph shape. The given solution ran just fine, so I added in a new Waveform chart and only unchecked the Autoscale Y option and renumbered the Y axis as the directions said to. It ended up looking like my previous, incorrect attempt. If anyone has any suggestions as to what could be different between the two wavecharts, I would highly appreciate it.

Download All
0 Kudos
Message 1 of 4
(2,490 Views)

What about your X range?

 

Waveform chart 2 is .1 seconds long and shows 2 cycles.  Waveform chart 3 is an unknown number of seconds long.  You can see the resemblance of a sine wave in there.  But it might be a large number of sine waves that just can't fit within the pixels available for that chart.

0 Kudos
Message 2 of 4
(2,485 Views)

I checked that, though none of the directions said to mess with the X axis. I don't know why the image cut off the first number of the X axis of Waveform chart 3, but it's very very close to the first number of Waveform 2's first number. I've attached the .vi in case someone wants to take a further look.

 

Took a closer look at it, and you're right, it has something to do with the X axis. I love it when the problem was right there in the open the whole time. I changed Waveform 3's X axis numbers to match Waveform 2's numbers exactly, and the correct graph showed up. When I run the vi howeve, all the axis change, and Waveform 3's X axis change back to so it's showing that big mass of white again. Any ideas?

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

Never mind, I changed the X axis from 0 to .1 and problem solved. Thanks for the quick reply. I must be having one of those slow days =P.

0 Kudos
Message 4 of 4
(2,473 Views)