Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems including the ni4882.h file into an msvc++ 2010 project

Hello,

 

I am writing a software for remote control of GPIB Products and I'm using the NI488-2 Driver v2.7.3. (Newer version havn't been installed yet due our EDV is overloaded)

I am writing the software with the language C++/CLI (Windows Forms) of Visual Studios 2010. Is there a way to include the ni4882.h file into this project?

I tried linking the 4882.obj file but that didn't work out and I don't have the NI .NET interface available due there wasn't an DLL for .NET reference installed together with the driver.

 

Any suggestions what I can try or is it just not possible?

 

Greetings,

Danny_Q

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

When installing NI-488.2 you need to choose to include support for .NET

 

0 Kudos
Message 2 of 4
(4,489 Views)

Ah ok that could explain it. Then I have to talk to our EDV to fix this. Thank you 🙂

 

Regards,

Danny

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

OK, our EDV didn't manage to install the .NET support, so I still don't have the dll. Today I tried to call the ni4882.h and .obj file by including the folders with those two in the linker (additional dependencies) and the additional include directories, but everytime I tried to compile it I got the error message:

LNK1104: The file "ni4882.obj" could not be opened.

 

Do I need to have administrator rights to call the ni4882.obj file in C:\Program Files (x86)\National Instruments\Shared\ExternalCompilerSupport\C\lib64\msvc ?

Any suggestions what I can try?

 

Best Regards and thanks for fast help,

Danny

0 Kudos
Message 4 of 4
(4,426 Views)