Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIBnotify control problem in Viual C++

Hi
Im developing an ActiveX object in Visual C++ 6.0 (using MFC) and am
making use of the GPIB notification control to fire off events when the
connect GPIB device transmits ASCII text responses. Now my problem is that
the notification control never seems to generate events when it should
do!..... In following the documentation I called the function;

m_GPIBControl.SetupNotify(m_UniqueID, m_NotifyMask);

(m_NotifyMask being set to everything from 'RQS' too 'TIMO | CMPL | END |
RQS' during testing) to setup the notify control. Now I do get events fired
when 'TIMO' is set so I know that its at least partially working. My guess
was that the flag 'END' should be the one that needs to be set for events
to fired wh
en ASCII text gets transmitted. To this end I also have a call
to;

ibeos(m_UniqueID, 0x180A); /* to set the EOS to '\n' */

but this did not seem to help at all. If anyone can help (even slightly)
please do because I've been tearing my hair out over this damn problem for
(on and off) two weeks now and I bet its a surprisingly simple solution...

Thanks in advance...
Greg
0 Kudos
Message 1 of 1
(3,293 Views)