Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a NI PCI-GPIB board from Visual C# 2005

Hi everyone,

I have a weird issue happening when trying to access a PCI GPIB board from Visual C# 2005.

I am using the "SampleReadWrite" program provided on the NI driver CD to explain what happens.

If I execute this program from the debug mode, and do step by step operations, everything runs well.

If I compile this program, and run it, I notice that when I click on the "open" button, it will take between 20s and 2 minutes for the "write" operation to be possible. And if I switch on the NI spy, nothing happens during this time. It seems the .NET runtime has trouble to create the "Device" object.
Maybe it is linked to the fact that the NI libraries seem to be designed for 1.1 .NET framework whereas Visual Studio 2005 is based on 2.0 .NET framework, so I need both 1.1 and 2.0 frameworks for my program using GPIB interface to be able to run.

Do you have any experience in this area? Any help would be greatly appreciated.

Best regards,

Stéphane
0 Kudos
Message 1 of 2
(3,155 Views)
0 Kudos
Message 2 of 2
(3,086 Views)