01-25-2021 12:35 AM
I am completely new in Labview and started working on real time Labview with Crio 9039 and cards 9269 and 9209.
I want to do some signal processing on signal. For basic learning, I am trying to generate sine wave in labview and giving it as a input to analog output 9269. In front panel, I am able to see generated signal but when I am checking on analog ports of 9269 of crio 9039 with oscilloscope, I am not able to see any signal.
When I am simply giving numeric voltage at analog port, I am able to see on oscilloscope.
I tried with 3 different generators but not able to see results on oscilloscope.
Can somebody help me out where I am going wrong? how to get sine wave on analog out port?
I have attached the code herewith.
01-25-2021 01:05 AM
You are generating a waveform of data in one loop, and a dynamic data type of data in other loop. Both of those essentially create arrays of data.
You are sending them to an analog output that can only accept a scalar value. So that waveform or DDT data is getting coerced to a scalar and most of the data is thrown away. It is probably taking the first element, so if the frequencies in your generator VI's are just so, it is outputing the same scalar value all the time.
You need to get them to generate just one data point, and put some timing in your loop to match your sample rate in those generators.