Home > Back-end >  ViScanf read data is incomplete, ViRead can all read the data
ViScanf read data is incomplete, ViRead can all read the data

Time:10-01

Recently developed by VISA GPIB communication, when the control device reads the data found ViScanf read data is not complete,
Equipment, for example, the returned data should be "Liv1 Channel2",
Char Rxbuffer1 [20]={} '\ 0';
Char Rxbuffer2 [20]={} '\ 0';
ViScanf (Agilent81635Avi, "% s % s", Rxbuffer1, Rxbuffer2);//receive function
Finally Rxbuffer1="Liv1", while Rxbuffer2 empty

When adopting ViRead is able to complete the data received, is this why?
  • Related