03-07-2014 06:09 AM
I have (several) .Net application using the NationalInstruments.NI4882.dll which works fine with
- GPIB-USB-HS
- Driver version 3.02
- Windows 7
- .Net Framework 4.0
However, If I only install .Net Framework 4.5 (and nothing else has changed), the compiled program which previously worked fine, suddenly does not work anymore.
In the NI IO Trace it can be seen that only function IbWait does not work properly. It gives an EARG(4) error..
It seems to do an improper call "ibwait (GPIB0, 0x91300000)" instead of the normal "ibwait (GPIB0, 0x00000000)".
I have tried the latest driver version 3.1.2 also.. but it gives the same error.
Can any advise be given here ?
Greetings
Jos
Solved! Go to Solution.
03-11-2014 11:02 AM
Hello Jos,
I want to make sure I get the whole situation right before making any assumptions.
You first install an application that contains:
- GPIB-USB-HS
- Driver version 3.02
- Windows 7
- .Net Framework 4.0
Then you only install .NET Framework 4.5 on top of it, without removing anything.
Is this correct?
Can you reproduce this behaviour on another pc?
03-23-2014 02:44 AM
Hi Thierry,
That is a correct understanding. I did not simulate on another PC, but I can reproduce on my x64 bit windows PC.
I made my programs with VB Express 2010, and using .NET 4.0 as target framwork (eventhough 4.5 had been installed)
The error seems to be related to the function GetCurrentStatus within the class NationalInstruments.NI4882.Board
(message = "Invalid argument to method")
I can reprodcude / eliminate the error when
- After installing VS2013, and have the program compilled with "AnyCPU" => Then I get the error in "GetCurrentStatus"
- After installing VS2013, and have the program compilled with "x64" => Then I get the error in "GetCurrentStatus"
- After installing VS2013, and have the program compiled with "x86" => Then all works fine
Does thi smakes sense to you ?
Gr
Jos
04-01-2014 01:54 AM
Hello Jos,
My apologies for the late reply.
I was out of office last week.
Can you try the steps explained in the following KB?
http://digital.ni.com/public.nsf/allkb/CD8163BBD26BAAF386257ADB007A16D8?OpenDocument
Please let me know what the result is.
04-04-2014 12:54 PM
This indeed solves the issue with board.wait calls within .Net Framwork 4.5 on 64 Machines
Much appriciated
Regards
Jos
04-07-2014 03:13 AM
Hello Jos,
If any other questions/issues would appear in the future, then don't hesitate to let us know.