07-16-2010 12:15 PM
I need to send a serial stream from a cRIO chassis, the problem I am having is that I need to send all 38,400 bits of the 38,400 bps stream but the VISA write vi seems to take a fraction longer than the required loop speed. I have a 10Hz loop and am sending 384 bytes per loop, obviously the loop has to happen in precisely 100ms to maintain the proper serial stream but the VISA write command takes between 100 and 103ms.
I came up with the 384 bytes number based off an 8 bit value plus 1 stop bit and 1 start bit so 10 bits per byte sent?
Any help would be appreciated.
07-19-2010 06:13 PM
Hello, are you using a C series Serial module or the serial port on the cRIO controller?
07-20-2010 12:43 AM
07-21-2010 11:12 AM
Yup, the VISA command only directs the hardware of what it needs to execute, the overhead is associated with allowing that handling to occur.