07-28-2011 09:13 PM
I'm developing a GPIB application that acts as an instrument and not as a controller. I need to assert the SRQ line. How can I do that in C# .net with NI-488.2 lib?
08-01-2011 01:20 PM
Fsoria:
For reference, what are you talking to or controlling and why do you need to assert the SRQ line?
I believe what you will need to do use the NationalInstruments.VisaNS.GPIBInterface.SetAttribute method
to set the property of NationalInstruments.VisaNS.AttributeType.GPIBSRQState.
The code should look like the following where the last value sets the SRQ line. (Options are -1,0,1)
You may have to play around with it a bit to get what you want.
GpibInterface myInter = new GpibInterface(parameters here);
myInter.SetAttribute(NationalInstruments.VisaNS.AttributeType.GpibSrqState, 0);
Let me know if you have any questions.
Tori W.
06-21-2023 11:10 AM
I know this thread is ancient, but GPIBInterface.SetAttribute seems to be missing in NationalInstruments.Visa. Is there a functionally equivalent method that can be used to assert the SRQ in a GPIB listener? I have also dug deep into the 488.2 API and cannot find a way to do this either.
Thanks,
John