Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 13th, 2006, 03:29 AM
Registered User
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default interfacing hardware through gpib

#include <windows.h>
#include <string.h>
#include <stdio.h>
#include "WINDECL.H"
#include<stdlib.h>
//#include "decl-32.h"

/* Size of ibrd buffer */
#define BUF_SIZE 256
#define DEV_NAME "SMH"


/* Misc */
#define FALSE 0
#define TRUE 1
#define TIMER_NUM 1

int main()
{
    int device;
    char buffer[100];
    int InitMeter(char *devname);
    device = InitMeter(DEV_NAME);
    //ibwrt(device, "RF?" , 100);
    //ibrd (device, buffer,100);
    //printf("RF=%s \n",buffer);
    return 0;
}


int InitMeter(char *DevName) {
     int device;
     device = ibfind(DevName); /* Open the device */
     printf("device=%d\n",device);
     return (device);
}

i am attaching my code in this form.I am interfacing a signal generator using gpib bus.when ever i run this code,i am getting a error as mensioned below.could any 1 please help me out in this issue.

  [Linker error] undefined reference to `ibfind@4'
  ld returned 1 exit status
 E:\Dev-Cpp\Examples\Makefile.win [Build Error] [devc++test.exe] Error 1 .

Waiting for ur favourable reply

Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
MacTalkForum.com - About Apple Mac hardware mactalkforum Other Programming Languages 0 September 15th, 2006 03:23 AM
device interfacing kanoorani Beginning VB 6 4 September 8th, 2006 01:13 AM
get hardware key andy hee Visual Studio 2005 0 April 14th, 2006 09:28 PM
C# and Java interfacing anirbanbasuz C# 0 April 14th, 2006 01:06 AM
Hardware hard disk encryption Weldoer1 Forum and Wrox.com Feedback 1 November 2nd, 2005 04:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.