Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

GPIB Visa C++: Wait after viWrite Command until a Response comes

$
0
0

Hello,

 

I´ve been trying to make a little C++ Program.

The Program should wait, until the Device is Ready to Read the value.

 

Example Code:

 

Snippet

viOpenDefaultRM(&m_defaultRM);
viOpen(m_defaultRM, "GPIB0::1::INSTR", VI_NULL, m_tmo, &m_Session[x]);
viWrite(m_Session[pad],(ViBuf)"X?", 2, &actual);

/* Wait Until the Value is Ready to Read ( WaitOnEvent ??? ) */

viRead(m_Session[pad], (ViPBuf)strres, 255,&actual);

 

 

Have you any Solution for me ?

 

Thanks.


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>