Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

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

$
0
0

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 Idisable the system control capability

ibrsc (_board, 0);

 

Are the any .NET slave examples available?

 

Many thanks for your time.


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>