Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Using USB-6509 digital IO as Arbitray Waveform Gen but output signal too slow.

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?

0 Kudos
Message 1 of 2
(961 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(938 Views)