NI PCI-GPIB tnt4882 test failed on FreeBSD Current 7.0

Poul-Henning Kamp phk at phk.freebsd.dk
Sun Mar 25 16:42:47 UTC 2007


In message <OF4A1A2063.572665BC-ON492572A9.00279584-492572A9.002F2200 at 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 at 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.


More information about the freebsd-current mailing list