Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

sampling frequency for sinusoidal analog input using

Hello everybody 

could you help me please  ... 

I'm using cRIO-9063 along with NI-9225 (3-CH +/-300V Analog Input ) to simply show sinusoidal waveform directly from the network , I made a project for this purpose but it dosn't work properly, so I used a signal generator to reduce the frequency so it's work properly on 10 Hz but not 50 Hz
I got this waveform, any one can help please, I'll be thankful  !

60383854_2122356901146967_4652236647209893888_n.jpg60480031_184147029147410_453170615105355776_n.jpg

0 Kudos
Message 1 of 5
(2,737 Views)

Mohammed86,

If you post your whole code, that would help people on the forums know what you're doing. There is no indication here of what the rate your loop is running at, also what your scan engine period is. Also, what the time scale is on your graph. Please post your code so that we can help you more fully.

 

Also, what are you doing to generate this signal, is it just a signal generator on the benchtop?

C. Weeks
Product Support Engineer
NI
Message 2 of 5
(2,710 Views)

many thanks for the reply 

this is very simple project to show the sinusoidal waveform of the network using analog voltage slot connecting with transformer 

I used Waveform Chart as real time presentation connected with analog input using while loop and wait function with numeric control to control the count (Ticks), I tried 90 and 70 ... many cases . but it doesn't work .

if you can help me with simple code to show the signal I'll be thankful 

 

regards

 

0 Kudos
Message 3 of 5
(2,703 Views)

Mohammed,

There is an example in the example finder for LabVIEW called "Analog Input - Getting Started - Scan Mode.lvproj" This is an example of how to use the scan interface with analog input. It also has notes on the block diagram of the vi to explain what everything does. You may have to change the module and the scan interface variables to your module, but that should work for you as a starting point.

C. Weeks
Product Support Engineer
NI
Message 4 of 5
(2,698 Views)

thank you very much 
I hope this work properly I'll try it and let you know 

 

regards 

Mohammed 

 

0 Kudos
Message 5 of 5
(2,692 Views)