Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-488.2 .NET API - slave / non-controller mode

We want to use your NI PCI-GPIB as slave – I found following entry here

https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/GPIB-Slave-with-NI488-2/td-p/838953

and the noncic.zip ‏application there works as expected

 

But I want to use C# programming language and the .NET library (no wrapper)

 

I also found following function mapping description

http://zone.ni.com/reference/en-XX/help/370628F-01/mstudiowebhelp/html/gpibapimapping/

 

The status can be read by the device class method GetCurrentStatus()

http://zone.ni.com/reference/en-XX/help/370628F-01/mstudiowebhelp/html/31047307/

 

I also found a way to set the current status byte (ibrsv) – also a device class method SetConfigurationOption()

http://zone.ni.com/reference/en-XX/help/370628F-01/mstudiowebhelp/html/a87535c1/

 

Was a little bit tricky, because this method is not visible

       [EditorBrowsable(EditorBrowsableState.Never)]

        public void SetConfigurationOption(int configurationOption, int configurationOptionValue);

 

https://linux-gpib.sourceforge.io/doc_html/reference-function-ibconfig.html

IbcRsv

0x21

Sets the current status byte this board will use to respond to serial polls. Same as ibrsv().

 

 

But how can I disable the system control capability

ibrsc (_board, 0);

 

Are the any .NET slave examples available?

 

Many thanks for your time.

Message 1 of 4
(3,200 Views)

Hello will you able to make it work with C#?

 

Also, can you help me how you run noncic.zip?

0 Kudos
Message 2 of 4
(2,409 Views)

Sorry, but the project was never realized.

 

I wish you all the best.

0 Kudos
Message 3 of 4
(2,395 Views)

Its oks, I will try to make it work, but C++ GPIB driver library could do as well.

 

Aside from noncic.zip, created at Visual Studio C++ 6.0, were you able to manage to create or update your custom NI PCI-GPIB slave instrument?

 

Cheers,

Raymond

0 Kudos
Message 4 of 4
(2,387 Views)