04-24-2011 10:07 AM
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.
04-24-2011 11:51 AM
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.
04-25-2011 07:27 PM
Hi Knutson,
Thank you for all your suggestions.