Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Mar 2007 16:42:44 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        "SUNGBAK KIM" <mosworld@lgphilips-lcd.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: NI PCI-GPIB tnt4882 test failed on FreeBSD Current 7.0 
Message-ID:  <1230.1174840964@critter.freebsd.dk>
In-Reply-To: Your message of "Sun, 25 Mar 2007 17:34:48 %2B0900." <OF4A1A2063.572665BC-ON492572A9.00279584-492572A9.002F2200@lgphilips-lcd.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <OF4A1A2063.572665BC-ON492572A9.00279584-492572A9.002F2200@lgphilips-lcd.com>, "SUNGBAK KIM" writes:

>GPIB control with FreeBSD 7.0 Current because of supporting NI PCI-GPIB 
>interface card.

>4. Basic Code Testing
>
>I compiled  *IDN? Qurey C code as shown below archive but no response from 
>instrument (AFG3102, etc and linux-gpib returned good results ).
>
>http://lists.freebsd.org/mailman/htdig/freebsd-hackers/2005-February/010164.html
>
>and modyfied Code returned dmm = 0
>
>/***  PRINT DMM  ****/
>dmm = ibdev(0, 11, 0, T1s, 1, 0);
>printf(" dmm = %d\n", dmm);
>if (dmm < 0)
>   errx(1, "ibdev = %d\n", dmm);
>   ibwrt(dmm, "*IDN?\r\n", 7);
>
>I think dmm should be  dmm > 0, if properly configured. right ?

zero is a valid handle, so that is OK.

Off the top of my head I cannot see what should be wrong, but our GPIB
code is not very mature, or for that matter, well tested.  I have used
it mostly with my various HP equipment and have only ever tried it with
one non-HP piece of equipment: my Tex scope.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1230.1174840964>