It's up to the user, via the NI 488.2 configuration utility. They can set the board to be GPIB1 or (presumably) many other values. My software only talks to GPIB0, and the only time this has been a problem is with some GPIB-ENET installations, where the interface has defaulted to GPIB1 for some reason.
A better technique would be to call ibfind() for all possible GPIBxx devices, keeping track of which one(s) are valid. Offhand I don't know if there's an enumeration function for device identifiers. -- john, KE5FX > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Ulrich Bangert > Sent: Sunday, October 07, 2007 2:05 AM > To: 'Discussion of precise time and frequency measurement' > Subject: Re: [time-nuts] OT: Test for NI IEEE-488 interface > > > ); SAEximRunCond expanded to false > Errors-To: [EMAIL PROTECTED] RETRY > > John, > > you are saying that the first device detected by the dll is always named > "GPIB0"? That would make life easy. > > 73s and my best regards > Ulrich > > > -----Ursprungliche Nachricht----- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Im Auftrag von John Miles > > Gesendet: Samstag, 6. Oktober 2007 20:27 > > An: Discussion of precise time and frequency measurement > > Betreff: Re: [time-nuts] OT: Test for NI IEEE-488 interface > > > > > > ); SAEximRunCond expanded to false > > Errors-To: [EMAIL PROTECTED] RETRY > > > > Hi, Ulrich -- > > > > I only support the GPIB0 device name in my package, so it's > > easy enough in my case to do an ibfind("GPIB0"). If that > > returns >= 0 (and the ERR flag is not set in the returned > > value), then I do an ibonl(GPIB0,0) to close the handle, and > > assume that a valid National Instruments interface is present. > > > > If you wanted to support other device names, you'd need to > > repeat that procedure for all of them, I imagine. > > > > -- john, KE5FX > > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] > > > Behalf Of Ulrich > > Bangert > > > Sent: Saturday, October 06, 2007 5:23 AM > > > To: Time nuts > > > Subject: [time-nuts] OT: Test for NI IEEE-488 interface > > > > > > > > > ); SAEximRunCond expanded to false > > > Errors-To: [EMAIL PROTECTED] RETRY > > > > > > Gentlemen, > > > > > > I know this is a bit OT but otherwise I also know that some > > of you are > > > well acquainted to IEEE-488 data acqusition: > > > > > > > > > _______________________________________________ > > time-nuts mailing list -- time-nuts@febo.com > > To unsubscribe, go to > > https://www.febo.com/cgi-> bin/mailman/listinfo/time-nuts > > and > > follow the instructions there. > > > > > _______________________________________________ > time-nuts mailing list -- time-nuts@febo.com > To unsubscribe, go to > https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts > and follow the instructions there. > _______________________________________________ time-nuts mailing list -- time-nuts@febo.com To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts and follow the instructions there.