Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel Receive vs. Serial Receive

Can calls to Receive(...) be executed in parallel for speed improvement? Tests I have done show minimal speed increase for parallel Receive calls and I was wondering if I should rewrite as parallel ibrd's instead. It seems to me that one should be able to speed up Receives by calling them in parallel rather than in series, but there may be a problem because it is a multi-device call.
0 Kudos
Message 1 of 2
(3,046 Views)
Hello-

The Receive call must be executed synchronously:
"Receive addresses the device described by address to talk and the interface to listen. Then up to count bytes are read and placed into the buffer. Data bytes are read until either count bytes have been read or the termination condition is detected. If the termination condition is STOPend, the read is stopped when a byte is received with the EOI line asserted. Otherwise, the read is stopped when an 8-bit EOS character is detected. The actual number of bytes transferred is returned in the global variable, ibcntl."

It could probably be used in parallel for multiple interfaces. Otherwise, a series of Receives is necessary.

Randy Solomonson
Application Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,046 Views)