LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie question on XY graph.

Good day.

 

I'm a newbie in LabVIEW (first program, to be honest) and I find behaviour of my program unexpected, to say the least.

 

The pictures ilustrate my problems pretty well, but I will describe them anyway. First of all, my timebase knob only adjusts sawtooth sweeping function's frequency at the moment, it doesn't actually represent the exact time base (but that would be easy to calibrate, so that's not my problem I guess). I would expect XY graph's X scale to "detect" only the amplitude of the sawtooth wave, but with changing frequency two problems arise:

 

Problem #1: when the time base goes below 100ms/div (frequency of sawtooth function above 10Hz), graph starts to show continuation of a signal at the begining of the XY graph, therefore it starts to overlap the original function and looks messy. Question is: Why does that happen? Would somekind of graph "clearing" after reaching the peak clear the problem?

 

Problem  #2: this is even more unexpected, why when frequency of sawtooth is less than 10Hz, it doesn't seem to be able to reach it's peak? Or maybe it does, but the graph doesn't show that.

 

As far as I can tell, It has something to do with .1 of a second. If more than one sawtooth wave fits in that, the graph starts to overlap and if the period of sawtooth is more than that, not whole XY graph is filled.

 

Thank you in advance and sorry if similar question was answered in the past - I tried looking for it (it's hard not to when search is offered before posting ;)) but to no avail.

Download All
0 Kudos
Message 1 of 8
(3,066 Views)
  1. Your x is the sawtooth wave. When the sawtooth wave goes back to zero, your points will follow there too.
  2. I don't see that problem.

 

Maybe you want to graph both signals vs time. In this case use s wavform graph instead.

0 Kudos
Message 2 of 8
(3,049 Views)

Yup, makes sense about the first one. I think I would be able to fix that in one way or another. Screenshot ilustrates the second problem. It's hard to explain in a way that makes sense since English is not my first language. 🙂 but basically the sawtooth doesn't sweep to the end of X axis for some reason when its frequency is < 10Hz.

 

P.S. We're specifically instructed to use XY graph for this problem.

0 Kudos
Message 3 of 8
(3,043 Views)
I don' see aother screenshot. To use an xy graph make a graph with two traces: sine vs time and saw vs time.
0 Kudos
Message 4 of 8
(3,030 Views)

It does have those two traces. The problem is with sawtooth, which controls the x axis. The graph doesn't look the way I would expect it to and I have no idea what is wrong.

0 Kudos
Message 5 of 8
(2,994 Views)

It's because your Express VI's are set up to only output 100 samples.

0 Kudos
Message 6 of 8
(2,974 Views)

@K4rolis wrote:

It does have those two traces. The problem is with sawtooth, which controls the x axis. The graph doesn't look the way I would expect it to and I have no idea what is wrong.


No, it has only one trace labeled V(t), which is clearly not what you are graphing because your x-axis is not time.

 

If it does no look the way you expect it to look, maybe you should tell how you expect it to look! 😄

Message 7 of 8
(2,968 Views)

Sorry, I should've started with what I actually want to do. 😄

 

Basically, my asignment is to make a simple oscilloscope which displays signal from signal generator on XY graph (everything's virtual - using LabVIEW's functions. No real equipment involved!). My LabVIEW program shows how I actually understand it, even though it doesn't work. Waveform to be displayed controls Y axis and sawtooth (sweeping) function controls X axis. At least that is what I'm trying to do. 🙂

 

To be honest, I don't quite understand all the stuff about samples and sample frequencies, so that might be my problem. Attached is a picture which shows what I would like to see. But that is only possible when sweeping function's frequency is 10Hz.

 

Thank you in advance.

0 Kudos
Message 8 of 8
(2,946 Views)