07-17-2013 11:04 AM
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.
07-17-2013 12:12 PM
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
07-18-2013 03:02 AM
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!
07-18-2013 06:56 AM
Hi phd_mail,
Try using the following format in your c# code:
ibonl(ud, v)
Let me know if this helps.
07-18-2013 07:17 AM - edited 07-18-2013 07:19 AM
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.