Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

NI488.2 C# Device.Notify() Example Does Not Execute Device Notify - Why Doesn't the Device.Notify() callback work with GpibStatusFlags.DeviceServiceRequest?

I am working on a driver that required an event raised back whenever a device's SRQ line is asserted. Sounds simple enough, and the Device.Notify() method should fit the bill. However, I am finding that only the Board.Notify() method (using the GpibStatusFlags.ServiceRequest) works, and not the Device.Notify() method (using GpibStatusFlags.DeviceServiceRequest). There are two possibilities that I can think of:
 
1) The auto serial pool flag is disabled  - can't figure out where the flag is set.
2) This is not supported by the instrument - Not sure why that would be the case.
 
I don't think it's my software (famous last words), because the example supplied by NI does not work as well. The example can be found at:
 
C:\Documents and Settings\All Users\Documents\National Instruments\NI-488.2\Languages\DotNET2.0\Notify\cs
 
for a "standard" NI488.2 installation.
 
Has anyone successfully used Device.Notify() in a .NET application, preferable C#? Can you offer some words of advice on what may be the problem?
 
Thanks,

Dave
Software Details:
NI488.2, version 2.52
Microsoft Visual Studio 2005 (FW2)
 
Hardware details:
Windows XP/SP2
NI488-USB-HS
Keithley 2602
0 Kudos
Message 1 of 2
(4,298 Views)
Dave,

When you say "it doesn't work," what exactly do you mean?  Do you receive an error or warning, or does it just silently fail? 
Chad B. » National Instruments » ni.com
0 Kudos
Message 2 of 2
(4,280 Views)