Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

asserting srq line in c#

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?

0 Kudos
Message 1 of 3
(3,863 Views)

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.

National Instruments
0 Kudos
Message 2 of 3
(3,842 Views)

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

0 Kudos
Message 3 of 3
(972 Views)