Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the C# equivalent to the ibonl C function?

In the NI-488.2 documentation there is a function "ibonl" to set a board or device online or offline, I want to perform the same task in a C# application, on a per device basis.

0 Kudos
Message 1 of 5
(4,011 Views)

Look for the topic Mapping the NI-488.2 .NET API to the NI-488.2 C API  in NI-488.2 .NET Framework 4.0 Help

It is found under Start Menu --> National Instruments --> NI-488.2

0 Kudos
Message 2 of 5
(4,007 Views)

My help doesn't seem to work, so I can't look that up. Is this available online somewhere?

Or could someone just tell me the answer!

0 Kudos
Message 3 of 5
(3,987 Views)

Hi phd_mail,

 

Try using the following format in your c# code:

 

ibonl(ud, v)

 

Let me know if this helps.

Marshall B
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 4 of 5
(3,978 Views)

Hi,

    ibonl is a C library call, and is not in the C# API, and therefore cannot be used in C#.

I managed to get the help working after reinstalling. The help refers to the Reset method as a map to the ibonl C call, the documentation states that this will reset the device and leave it online. There doesn't seem to be a way to set a device offline, normally called before closing a connection to a device. I'll just have to make a call to Reset, then close with the device Online.

 

0 Kudos
Message 5 of 5
(3,975 Views)