LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

analog input problem

Problems with analog input

We want to measure an analog input signal. Therefore we use an example project from labview: “Analog input”.

Everything works fine but when we generate a sine wave at 50Hz on the analog input channel of the NI9215, we get strange results.

The sine wave doesn’t look at all like a sine wave.

Different configuration of the parameters in the Analog Input VI (sample rate, software loop time) never shows the sine wave we expect. 

It looks like the sample rate is to low…

 Hardware configuration:

-          compactRIO NI9012

-          analog input device: NI9215

-       connection between compactRIO and PC: UTP (Ethernet connection)

thanks

 

 

0 Kudos
Message 1 of 8
(3,782 Views)

And how does the measured signal look like? maybe you can post a screenshot.

 

Thanks,

Christian

0 Kudos
Message 2 of 8
(3,760 Views)
In attachments you will find a sine wave at 20 Hz frequency with a sample rate of 10kHz.
0 Kudos
Message 3 of 8
(3,748 Views)

Hey,

 

It seems that you changed a bit of the examples code, it looks different to the one I know.

However you have a control which says AI Sample Rate = 20Hz, what rate is that? you said you sample the signal with 10kHz?

 

When you just open the origin Analog Input project, configure it for your hardware and run it, can you see a sine wave?

 

Christian

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

On the figure we have a sample rate of 20Hz, but when we increase the sample rate to 10kHz we just get the same waveform...nothing changes

 

We work with the original example as found in the LabView library.

0 Kudos
Message 5 of 8
(3,738 Views)

My origin example looks like that:

 

 


Analog Input Host VI
0 Kudos
Message 6 of 8
(3,735 Views)
Can you attach this example to a reply?
0 Kudos
Message 7 of 8
(3,730 Views)

Just open the Example Finder in LabVIEW (Help>Find Examples) and search for "analog" then you find a project called "Analog Input-cRIO.lvproj".

 

Christian

0 Kudos
Message 8 of 8
(3,724 Views)