02-20-2018 12:02 PM
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
Solved! Go to Solution.
02-20-2018 03:44 PM
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.
02-21-2018 04:21 AM
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…)