LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Writing baudrate for USB-6211

My question is how (if possible) to write a signal to the digital output line of my USB-6211 at 1200 baud using software timing.  By using DAQmx and a while loop I can write at ~1000S/s, but am limited with how fast the loop executes.  I tried writing an array of data, but it is treated as 8 channels with 1 bit of data and not 8 bits of data.

I have also tried using the Express DAQ assistant, but I am only allowed to write using "On Demand" Generation mode, which doesn't allow for setting a bit rate.

 

Any tips or pointing in the right direction would be appreciated

 

-W

0 Kudos
Message 1 of 3
(2,743 Views)

Another note is that I know the digital out is capable of writing that fast because using a counter I can send a pulse train at 50+ MHz so I know it is not hardware limited.  The reason I would prefer to do it this way instead of say using the serial port is because I need to be taking other digital measurements and making logic transitions as well.

 

I also now understand there is no way to reliably have a loop execute faster than 1ms per loop.  This can work, as it will work to send an 8-bit packet at 1200 baud once per millisecond, but I don't know how to implement this.

 

Thanks

-w

0 Kudos
Message 2 of 3
(2,728 Views)

The 6211's 4 digital outputs are strictly software timed as you can see from the spec. It is NOT capable of doing 1200 baud for doing serial communication. Software timing means you are totally dependent on the OS and the pc and you would have considerable jitter. You cannot even reliably execute a loop at 1ms.

 

The counter is a completely different function on the DAQ board and what it can or cannot do does not relate to what the digital can or cannot do.

Message 3 of 3
(2,721 Views)