[time-nuts] OT: Test for NI IEEE-488 interface

John Miles jmiles at pop.net
Sun Oct 7 06:46:14 EDT 2007


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: time-nuts-bounces at febo.com [mailto:time-nuts-bounces at febo.com]On
> 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: time-nuts-bounces+jmiles=pop.net at febo.com 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: time-nuts-bounces at febo.com
> > [mailto:time-nuts-bounces at febo.com] 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: time-nuts-bounces+df6jb=ulrich-bangert.de at febo.com 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: time-nuts-bounces at febo.com
> > [mailto:time-nuts-bounces at febo.com]On
> > > 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: time-nuts-bounces+jmiles=pop.net at febo.com 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 at 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 at febo.com
> To unsubscribe, go to
> https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
> and follow the instructions there.
>




More information about the time-nuts mailing list