Python and NI

Highlighted

Sine wave output

Hi,

Newbie to Python for NI.

I want to generate a continuous sine wave with frequency=60 Hz and amplitude = 4V .

I want to use Python NIDAQMX for this(have NI 9269 module ,if that matters)

What is the best way to do this?

0 Kudos
Message 1 of 3
(57 Views)
2 REPLIES 2
Highlighted

Re: Sine wave output

Hello

 

I can recommend the documentation of the nifgen module. I do not use it myself, but the example explains your use case.

https://nimi-python.readthedocs.io/en/master/nifgen.html#usage

 

Please also have a look at the documentation of the nidaqmx module.

https://nidaqmx-python.readthedocs.io/en/latest/index.html#usage

 

Hope it helps...

 

Christian

Drivetek AG

0 Kudos
Message 2 of 3
(40 Views)
Highlighted

Re: Sine wave output

Thanks Drivetekag,

I tried Nifgen but somehow it does not recognize my module NI 9269. Does NIFGEN support NI9269? I want to use  cDAQ2Mod2  device and port 2 . I hope I am using right syntax.Tried too many different syntaxes but failed.

Regards

0 Kudos
Message 3 of 3
(26 Views)
Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.