Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Visa (Number of bytes at serial port)

Dear
 
There are two versions of serial communication using old serial functions and VISAs.
 
In old version, there is no problem to get the data.
Then I converted the old function by VISA functions.
 
The problem is that the number of bytes is increased in while loop( of course, there is no correct data).
The number of bytes was forced to a contant value but nothing happened.
 
By chance, When I launched and ran the old version firstly, and then I ran the VISA version secondly,
there is no problem to get the data with VISA version.
 
Can you suspect some reasons?
 
Thank you in advance.
 

메시지가 01-08-2006 09:27 PM에 labmaster에 의해 편집되었음

0 Kudos
Message 1 of 4
(3,369 Views)
LabMaster,

sounds like you do not initialize your serial port correctly when using the VISA version. When having used the traditional version before, this might have initialised the port properly.

Greetings from Germany!<br>-- <br>Uwe
0 Kudos
Message 2 of 4
(3,362 Views)
In both of versions, I initialized the VISA in the same way except one thing (buffer size).
(You know there is one more option, buffer size, in old serial initialization function.)
0 Kudos
Message 3 of 4
(3,359 Views)
you can set the buffer size with the VISA function 'VISA Set I/O Buffer Size'
HTH
Greetings from Germany!<br>-- <br>Uwe
0 Kudos
Message 4 of 4
(3,354 Views)