Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

NI488.2 throws an exception

Solved!
Go to solution

I am trying to control a temperature chamber using C# application via National Instrument .NET assemblies. My obversations are:

 

1.  Development Computer - Works PERFECTLY with Instrument. 

2.  Deployment Computer - (Installed NI488.2 + NIVISA drivers) - Throws an exception (see below) when executing my C# application

3.  Deployment Computer - (Using NIMAX - Instrument works perfectly) - I also double checked the port settings.

 

Versions used in Development Computer - NI488.2 (8.9.35.104)

Versions used in Deployement Computer - NI-488.2 2.24 + NI-VISA 4.1 + NI-VISA Runtime 5.0.2

 

Help please!!

 

Error: 

 

1/18/2012 2:17:22 PM: The type initializer for 'NationalInstruments.NI4882.Internal.GpibDll' threw an exception.
1/18/2012 2:17:22 PM: NationalInstruments.NI4882
1/18/2012 2:17:22 PM: at NationalInstruments.NI4882.Internal.GpibDll.ibdev(Int32 boardID, Int32 pad, Int32 sad, Int32 tmo, Int32 eot, Int32 eos)
at NationalInstruments.NI4882.Internal.DeviceImpl..ctor(Int32 boardNumber, Byte primaryAddress, Byte secondaryAddress, TimeoutValue timeoutValue, Boolean setEndOnWrite, Boolean endOfStringCharacterUsedOnRead, Object sender)
at NationalInstruments.NI4882.Internal.DeviceImpl..ctor(Int32 boardNumber, Address address, Object sender)
at NationalInstruments.NI4882.Device..ctor(Int32 boardNumber, Address address)
at BaseBandTester.TempChamber.setup_GPIB(Byte primaryAddr, Byte secondayAddr, Int32 boardNum)

 

 

 

HELP PLEASE!!!

0 Kudos
Message 1 of 7
(5,632 Views)

You need to upgrade the GPIB drivers on the other machine.

 

Curt

0 Kudos
Message 2 of 7
(5,628 Views)

Which computer? The deployment PC or the development PC? 

 

Also...it is the most updated NI-488.2 drivers. They have seemed to work well with other pc's. Is it because of labview runtime?

 

I dont really know what is the issue, it seems to be working just fine with all other PC's. The only difference is with the problematic PC has labview runtime installed which is the only unique property with every other pc.

 

What shall I do?

0 Kudos
Message 3 of 7
(5,620 Views)
Solution
Accepted by adityac26

Hi,

 

You listed this for GPIB software versions

 

Versions used in Development Computer - NI488.2 (8.9.35.104)

Versions used in Deployement Computer - NI-488.2 2.24 + NI-VISA 4.1 + NI-VISA Runtime 5.0.2

 

 

The 8.9.35. 104 is the version of the .NET library.

The 2.24 is the version of the GPIB control software (DLLs)

 

Make sure that the deployment machine you're having problems with has a DLL version that's the same or higher than the development machine. 

 

Look under "Software" in NI-MAX.

 

Curt

 

0 Kudos
Message 4 of 7
(5,615 Views)

Success!!

 

 

Turns out that the deployment machine's DLL for NI-488.2 was below 8.9.35. 104 version. Upgraded to newer DLL and it works! 

 

 

 

Thanks Curt! 

0 Kudos
Message 5 of 7
(5,595 Views)

I meets the same issue. could please let's know which version the driver needed? V2.7 V3.0??

0 Kudos
Message 6 of 7
(5,483 Views)

Hi BrcT,

 

Do you also have a deployment and a development pc?  What version of the dll's do you currently have?

 

Thanks,

 

David B

0 Kudos
Message 7 of 7
(5,475 Views)