Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a TTL pulse with USB 6008

I have a USB-6008 DAQ Multifunction board.  All I want to do is create a simple .vi that will allow me to send out a train of TTL pulses (0V - 5V) at a set frequency for a set amount of time.  I'm not sure if I should use the analog out or the DIO pinouts?  But I'm having problems finding a reliable way to get the USB-6008 to generate pulses at anything greater than 10Hz, I need to get up to 50Hz.
Thanks,
 
0 Kudos
Message 1 of 2
(3,531 Views)

Hi thc23,

 

 

What are the errors that you are running into? (Number and description) You can use either the AO or DIO lines. The code will be nearly identical, except for the type of task you are running. Do initialization, and then inside a while or for loop, put the line to high for a period of time and then low for a period. After the loop, stop and clear the task. This will work because of the slow rate you are wanting. Please keep in mind the limitations of the USB-6008, mainly that the analog output is software timed and has a max rate of 150S/s.

 

 

 
David L.
Systems Engineering
National Instruments
0 Kudos
Message 2 of 2
(3,520 Views)