Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

using multiple viwrite or viprintf commands causing problems (Visa serial communication using visual c++)

What you're suggesting is if the timeout is to 2 seconds+ 10ms then everything should work but it doesn't. The problem wasn't about the timeout duration. After the RST command if you do not put the Sleep , the next command closes the session right away. I don't know if the final command can still stay in the bufffer and is executed even the program closes the session right away.Anyway it is working now.Thank you for your comments.

0 Kudos
Message 11 of 12
(848 Views)

@Sorensen_XBT wrote:

What you're suggesting is if the timeout is to 2 seconds+ 10ms then everything should work but it doesn't. The problem wasn't about the timeout duration. After the RST command if you do not put the Sleep , the next command closes the session right away. I don't know if the final command can still stay in the bufffer and is executed even the program closes the session right away.Anyway it is working now.Thank you for your comments.


Huh? Where are you coming up with the 10ms?

 

So what if the session is closed? It doesn't prevent the instrument from doing what it was doing.The closing the session is a software thing.

 

 

 

 

0 Kudos
Message 12 of 12
(845 Views)