Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How can we configure the reading cycles of the serial port ?

Hi all,

 

Refer to my previous post "Continuous read and save date in a specified time with serial port" now my problem becomes how can I configure the reading cycles of the VISA Read ?

 

My sensor device has a sampling cycles is 100 usec (10kHz) (a measurement data has 7bytes, ex:+1.125CR+3.165... CR is inserted between measurement), however the transfering cycle of the device to PC via serial port is 5 msec/character (bytes). Then the transfering cycle of a measuremet is 35 msec (sampling rate 28.6Hz).

 

I tried to change different baud rates but have no change for the sampling rate of the record data. It looks like serial port is not a good choice for applications requiring high sampling rate. Or is there any other hints that somebody could share with me ?

 

Looking for your advices, thank you so much.

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

If the vendor says that continuous transmission results in 5-10 msec per character, then that might be what you have to live with. Have you contacted them to see if there is a faster mode? Perhaps reading as binary instead of ASCII?

 

And yes, serial is the slowest form of instrument communication.

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

Hi Knutson,

 

Thank you for all your suggestions.

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