Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

simulated sinus != circle?!

Solved!
Go to solution

hi,

i use a simulated signal for working on my application without a physical device. i am getting the attached picture as a signal and i wonder if this is correct? if the simulated signal is using a sinus algorithm, isn´t there supposed to be a circle on my screen?

thanx!

0 Kudos
Message 1 of 8
(4,278 Views)

ok, i just figured the signal does not have to be a circle. question still is if the the attached image is correct?

0 Kudos
Message 2 of 8
(4,266 Views)

Who knows. If you are simulating a sine wave, I would expect to see a sine wave.  Your image says nothing about how you are simulating a signal, how you are displaying it. Actually, it says nothing at all about what you are doing.

0 Kudos
Message 3 of 8
(4,255 Views)

thanx,

well, you cannot really change a lot about the simulated signal, so it is not my choice to use a sinus signal. i do not produce it, the national instruments driver does.

so, what information can i give you?

this is the task:

DAQmxCreateAIVoltageChan(getHandle(), cstring, channelName[k], DAQmx_Val_RSE, -10, 10, DAQmx_Val_VoltsNULL)
0 Kudos
Message 4 of 8
(4,251 Views)
I am perfectly aware of what the DAQmx driver does for a simulated signal. What you have not provided is what programming language you are using, what function in that language you are using to display the data, etc. If you are using LabVIEW, then you would typically view the data with a waveform graph.
0 Kudos
Message 5 of 8
(4,246 Views)

ok, i understand. i do not use labview but c++ and the algorithm for displaying is rather complicated and distributed among many files. i know it would be best to show you my algorith, but this is very complicated in my case.

i interpret the first input channel as x and the second as y. if one would only scale down the samples from a x/y voltage input to fit them in a x-y-diagramme, would the signal look like my image? i am trying to figure out if i have some sort of distortion im my algorithm.

in the measurement and automation explorer i can only see one part, so i cannot see how an undistorted image would look like.

 

 

0 Kudos
Message 6 of 8
(4,241 Views)
Solution
Accepted by mael15
That's a little bit more information. An xy plot will appear as a circle if the two signals are equal in frequency and phase. The two simulated channels are not equal in phase as explained in the help.
Message 7 of 8
(4,236 Views)

so i guess it should look like it does. thank you for you help!

0 Kudos
Message 8 of 8
(4,234 Views)