11-30-2021 08:59 PM
Hi, i am trying to read a set of arbitrary waveform data from an csv file and converting the data to boolean type before it to USB6509 for signal generation. The generated arbitrary signal looks ok but the frequency is only about 40-120Hz. The original signal is an almost periodic digital waveform of 1000Hz. How do i make 6509 generate the signal faster?
12-01-2021 07:02 AM
Probably still won't get up to your 1kHz, but a few things to try:
1. Autoindex on your array instead of using a Local Variable.
2. Use a NOT instead of your Case Structure. Actual, even better would be to use a Less Or Equal for your comparison instead of the Greater.
3. Do not use the DAQ Assistant. Use the actual DAQmx API to create your task before your loop, close the task after the loop, and then you can write all you want inside of the loop.
4. Eliminate the wait.
In the end, I would get a DIO board with waveform capability. Then you can just load up all the values, set the clock rate, and tell it to play.