Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Gpib usb vc++

I have bought a new USB-GPIB controller. It works well, when communicating with listening instruments by your software-Measurement and Automation. However, when we try to use Visual C net to compile your example (4882query.c), after include ni488.h, it gives out the error information:

 

Error LNK2020: Unresolved token (ibsta).

Error LNK2020: Unresolved token(ibcntl).

Error LNK2020: Unresolved token(iberr).

3 unresolved externals

 

Please help me.

0 Kudos
Message 1 of 4
(3,878 Views)

Hi I dont know,

What version of Visual Studio/Measurment Studio are you using. 

 

The USB device will operate in the same way as a PCI GPIB card. 

regards

 

Seamus

Message 2 of 4
(3,850 Views)
Hi "I Dont Know"

I have compiled 4882query.c using Visual Studio 2005 and Measurement Studio.

I created a Win32 Project and under Visual C++ and  deselected "Precompiled header"

I then removed the files that were added by the wizard from the solution viewer. and added 4882query.c to the source files section.
I then added ni488.h to the header files section and added gpib-32.obj to the resource files section

I was then able to compile the program and get the identity of the instrument connected to my GPIB-USB-B

Regards
JamesC
NIUK and Ireland

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

Hi,

 

I have tried to do the same for the query example program compilation, but still have the linker problem.

I use Visual Studio 9.0 Express, is it compatible with the program ?

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