Hi!
My assignment for school is to build a 2 channel oscilloscope, with generators too. Initially, I tried using a waveform chart, that actually showed a very "ugly" image. Just for testing, I left the chart there with hidden indicator.
The student teacher suggested I use a graph, which is ok, as far as the shape of the signal. The "time" axis however doesn't really show the time.
Thinking that it might show the samples, I put at the "nr.of samples" the reciprocal of the sampling rate multiplied with 1000,000 and the result was the same. The really strange part is that if I'd put two different frequencies for each channel it showed as is the signals had the same frequency.
And that's not the only problem... The while loop everything is in doesn't look like it's executing more than once. Now, I know the vi is pretty large but is that what makes it behave like that?
I also put cursors (like in the example from Fundamentals> Graphs and Charts > Programatically Control Cursors) that should be in the middle of the graph. Since I didn't use a chart, are the values at "Style" or "Pointer Style" different? (I wanted the cursors to be multi-plot).
Can you help me with any of that?
Thank you very much!
Patricia