Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

C# Examples of GPIB Programming without Measurement Studio

I am trying to find examples of programming a gpib instrument with C#, but without Measurement studio. I am trying to cross the managed/unmanaged barrier and do not want to take any unnecessary performance hits.
0 Kudos
Message 1 of 3
(11,355 Views)
Hello,

There is a very good reference on the functions that you can call for GPIB in C or C++. Once you have installed the 488.2 driver, if you go to Windows»Start»Programs»National Instruments» NI-488.2 »NI-488.2 Help.
It will contain all the functions that you can use.
Here I attached a C code for LabWindows/CVI which contains also some functions for a front panel. The important thing is to see how you use the ibdev, or ibwrt or ibrd commands.
Basically what you need is the functions I just mentioned.
You can find more examples in the Developer Zone. Look for CVI examples for GPIB and will be matter of just reading the C code.

Best Regards,
Ricardo Santa Olalla
National Instruments.
0 Kudos
Message 2 of 3
(11,355 Views)
Hello,

I made a mistake, and sent you a C++ example when you were looking for .net examples.
Here is a really good Knowledge Base about that.
Where is the .NET GPIB Language Interface?
Hope this helps

Ricardo Santa Olalla
National Instruments.
0 Kudos
Message 3 of 3
(11,355 Views)