Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5701

Interfacage module GPIB-USB-HS avec Devc++

$
0
0

Bonjour,

 

Je souhaite piloter un multimètre via le module NI GPIB-USB-HS, le tout piloter par un programme sous DevC++.

 

J'ai télécharger et installer le pack "ni4882_311.exe".

 

Lorsque je charge le programme d'exemple "4882query.c" et que je l'associe à un projet auquel j'incorpore "ni4882.h", je ne peut compiler le programme.

 

J'obtiens un log de compilation comme celui ci :

 

Compilateur: Default compiler
Building Makefile: "C:\Users\guboucha\Desktop\Test GPIB\Makefile.win"
Exécution de  make...
make.exe -f "C:\Users\guboucha\Desktop\Test GPIB\Makefile.win" all
g++.exe 4882query.o  -o "Test.exe" -L"C:/Dev-Cpp/lib" -L"C:/Users/guboucha/Desktop/Test GPIB" -L"C:/Program Files (x86)/National Instruments" -mwindows   

4882query.o(.text+0x32):4882query.c: undefined reference to `SendIFC@4'
4882query.o(.text+0x3a):4882query.c: undefined reference to `Ibsta@0'
4882query.o(.text+0xcc):4882query.c: undefined reference to `FindLstn@16'

4882query.o(.text+0xd4):4882query.c: undefined reference to `Ibsta@0'
4882query.o(.text+0x103):4882query.c: undefined reference to `Ibcnt@0'
4882query.o(.text+0x140):4882query.c: undefined reference to `DevClearList@8'
4882query.o(.text+0x148):4882query.c: undefined reference to `Ibsta@0'
4882query.o(.text+0x19e):4882query.c: undefined reference to `SendList@20'
4882query.o(.text+0x1a6):4882query.c: undefined reference to `Ibsta@0'
4882query.o(.text+0x220):4882query.c: undefined reference to `Receive@20'
4882query.o(.text+0x228):4882query.c: undefined reference to `Ibsta@0'
4882query.o(.text+0x254):4882query.c: undefined reference to `Ibcnt@0'
4882query.o(.text+0x28e):4882query.c: undefined reference to `ibonl@8'
4882query.o(.text+0x2ab):4882query.c: undefined reference to `Iberr@0'
4882query.o(.text+0x2bf):4882query.c: undefined reference to `Iberr@0'
4882query.o(.text+0x2c6):4882query.c: undefined reference to `Ibsta@0'
4882query.o(.text+0x304):4882query.c: undefined reference to `ibonl@8'
collect2: ld returned 1 exit status

make.exe: *** [Test.exe] Error 1

Exécution terminée

 

J'ai lu sur divers forum qu'il faut utiliser des fichier .dll ou .obj mais je ne sais pas bien quoi en faire.

 

Si quelqu'un pouvait m'eclairer, je lui en serais reconnaisant.

 

 

Merci d'avance

 


------------

 

PC sous Win 7

Labview 11 installé

DEVC++ 4.9.9.2


Viewing all articles
Browse latest Browse all 5701

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>