LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Function generator - set frequency to AO

Solved!
Go to solution

Hello.

 

I am trying to use attached example to add function generator to my AO. 

My goal is to switch on/off AO with max 5Hz frequency - should I look for different solution for my problem (connect AO to DI, but I will still need generate function to add frequency to the signal).

 

I am using NI USB - 6009. I am receiving error 200077 (see attachment)

 

Thanks for any help.

 

Thanks,

gregorian7

 

 

Download All
0 Kudos
Message 1 of 3
(3,757 Views)

Sadly, if you scroll to the AO on the spec sheet, you will see that the maximum update rate is only 150 Hz. Worse yet, it is software timed which is probably why you get the error. This device is not well suited for your application.

 

http://www.ni.com/pdf/manuals/375296c.pdf

 

Depending on your application, some of the other cheap usb devices might be able to work for you, such as the 6001.

0 Kudos
Message 2 of 3
(3,726 Views)
Solution
Accepted by topic author gregorian7

Hi gregorian,

 

My goal is to switch on/off AO with max 5Hz frequency

Then strip off all things related to set a sample rate from your VI.

Use DAQmxWrite with "1 sample" mode. Use wait function to time your loop…

As said before: the USB6009 doesn't support a sample rate setting for AO channels.

 

(Btw. don't name your VI as "lv86" when it is actually saved with LV2016…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(3,705 Views)