Re: NI PCI-GPIB tnt4882 test failed on FreeBSD Current 7.0

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Sun, 25 Mar 2007 16:42:44 +0000
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.
Received on Sun Mar 25 2007 - 14:42:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:07 UTC