Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

SetConfiguationOption

Hi all,

 

I'm trying to disable serial polling on my interface.

 

I need to do this in VISA but long since realised it's not possible. I need IBCONFIG but this command is not supported with .NET.

I have located what I think is the .NET alternative 'SetConfiguationOption'

NI 488.2 Documentation "Mapping the NI-488.2 .NET API to the NI-488.2 C API" shows 'SetConfiguationOption' mapped to 'IBCONFIG' 

The specific reference can be found here:- http://zone.ni.com/reference/en-XX/help/370628F-01/mstudiowebhelp/html/gpibapimapping/

The documentation also notes that this function is located inside the 'NationalInstruments.NI4882' library and there's my dilema!

I cannot found the 'SetConfiguationOption' method inside the 'NationalInstruments.NI4882' library. Am I missing the plot? or it's located somewhere else?

 

Any help greatly received 😄

 

Br

Nigel

0 Kudos
Message 1 of 4
(4,982 Views)

Hi Nigel,

 

The "SetConfigurationOption" method can be found under the 'Board' class as stated in the linked article. To access it; when you are placing your .NET Constructor Node follow these steps:

 

1. Select the NI4882 library in the Assembly menu

2. Select "Board" in the Objects menu

3. Select "Board()"in the Constructors menu

4. Click OK

 

From here you can right click on the reference output of the Board Constructor Node and navigate to and select Create»Method for National Instruments.NI4882 Board Class»SetConfigurationOption as shown in the attached code snippet.

 

I Hope this helps, if you have any other queries, let me know.

Select .NET Constructor.pngSetConfigOption.png

Tim, CLD, CTD
National Instruments (UK & Ireland)
________________________________________________
"No problem is insoluble in all conceivable circumstances"
0 Kudos
Message 2 of 4
(4,951 Views)

Thanks for the thorough reply Tim.

 

Much appreciated! although I think I missed stating the fact that I am attempting to do this in C# .NET and not Labview. 

I can get into the Board class but there is no 'SetConfigurationOption' method available inside the C# board class.

 

Many thanks again for your time.

 

Nigel

0 Kudos
Message 3 of 4
(4,943 Views)

Hey Nigel, 

Are you using NI Measurement Studio?

How are you looking for the "SetConfigurationOption method", is it something like this

Can you access other methods in the class/ library?

I think these posts could also be useful:
http://stackoverflow.com/questions/4023462/how-do-i-automatically-display-all-properties-of-a-class-...

http://stackoverflow.com/questions/5475209/get-class-methods-using-reflection

Tim, CLD, CTD
National Instruments (UK & Ireland)
________________________________________________
"No problem is insoluble in all conceivable circumstances"
0 Kudos
Message 4 of 4
(4,864 Views)