Thread: [vrf] Programmatically Finding GPIB Devices


Permlink Replies: 5 - Pages: 1 - Last Post: Jul 12, 2006 1:08 AM Last Post By: VRF user
VRF user

Posts: 16,231
Registered: 11/05/08
[vrf] Programmatically Finding GPIB Devices
Posted: Jul 12, 2006 1:08 AM   in response to: VRF user in response to: VRF user
Click to report abuse...   Click to reply to this thread Reply
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.34"><TITLE>Programmatically Finding GPIB Devices</TITLE></HEAD><BODY><P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">Hello all,</FONT></P><P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">I used</FONT> <FONT SIZE=2 FACE="Arial">to</FONT> <FONT SIZE=2 FACE="Arial">be a vrf member for several years.  Then</FONT><FONT SIZE=2 FACE="Arial">,</FONT><FONT SIZE=2 FACE="Arial"> I stopped because my co</FONT><FONT SIZE=2 FACE="Arial">mpany decided to stop using Vee.  Now, I</FONT><FONT SIZE=2 FACE="Arial">'</FONT><FONT SIZE=2 FACE="Arial">m back using Vee in another application.</FONT></P><P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">Here</FONT><FONT SIZE=2 FACE="Arial">'</FONT><FONT SIZE=2 FACE="Arial">s my problem:  My older computer used Vee 5 and had an RS-232 to GPIB converter made by National Instruments.</FONT><FONT SIZE=2 FACE="Arial">  In that set up, I</FONT> <FONT SIZE=2 FACE="Arial">could</FONT> <FONT SIZE=2 FACE="Arial">programmatically step through all 30 GPIB addresses and</FONT> <FONT SIZE=2 FACE="Arial">"</FONT><FONT SIZE=2 FACE="Arial">discover</FONT><FONT SIZE=2 FACE="Arial">"</FONT><FONT SIZE=2 FACE="Arial"> what was out on the bus.</FONT></P><P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">My newer computer is running Vee 7 and it has a USB to GPIB converter.  Since</FONT> <FONT SIZE=2 FACE="Arial">Vee IO natively</FONT> <FONT SIZE=2 FACE="Arial">"</FONT><FONT SIZE=2 FACE="Arial">sees</FONT><FONT SIZE=2 FACE="Arial">"</FONT><FONT SIZE=2 FACE="Arial"> the USB interface, I don</FONT><FONT SIZE=2 FACE="Arial">'</FONT><FONT SIZE=2 FACE="Arial">t know how to step through each GPIB address to discover what devices are there.</FONT></P><P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">In my set up, it</FONT><FONT SIZE=2 FACE="Arial">'</FONT><FONT SIZE=2 FACE="Arial">s possible that equipment will be removed for calibration and the replacement piece will have a different GPIB address than the one it replaced.</FONT><FONT SIZE=2 FACE="Arial"> </FONT> <FONT SIZE=2 FACE="Arial">Ultimately,</FONT> <FONT SIZE=2 FACE="Arial">I want my program to be able to</FONT> <FONT SIZE=2 FACE="Arial">a change in GPIB addresses.</FONT></P><P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">Any ideas?</FONT></P><P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">Thanks,</FONT></P><P ALIGN=LEFT><FONT SIZE=2 FACE="Arial">-Shawn</FONT></P><BR>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list, email "vrf@agilent.com". <BR>If you need help with the mailing list send a message to<BR>"owner-vrf@it.lists.it.agilent.com".<BR>Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".</BODY></HTML>
VRF user

Posts: 16,231
Registered: 11/05/08
[vrf] Programmatically Finding GPIB Devices
Posted: Jul 12, 2006 1:06 PM   in response to: VRF user in response to: VRF user
Click to report abuse...   Click to reply to this thread Reply
Hello all,

I used to be a vrf member for several years.  Then, I stopped because my company decided to stop using Vee.  Now, I'm back using Vee in another application.

Here's my problem:  My older computer used Vee 5 and had an RS-232 to GPIB converter made by National Instruments.  In that set up, I could programmatically step through all 30 GPIB addresses and "discover" what was out on the bus.

My newer computer is running Vee 7 and it has a USB to GPIB converter.  Since Vee IO natively "sees" the USB interface, I don't know how to step through each GPIB address to discover what devices are there.

In my set up, it's possible that equipment will be removed for calibration and the replacement piece will have a different GPIB address than the one it replaced.  Ultimately, I want my program to be able to a change in GPIB addresses.

Any ideas?

Thanks,

-Shawn


---

To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
rsb

Posts: 425
Registered: 11/11/08
[vrf] Programmatically Finding GPIB Devices
Posted: Jul 12, 2006 1:26 PM   in response to: VRF user in response to: VRF user
Click to report abuse...   Click to reply to this thread Reply
Crossland Shawn R MSgt 193OPS/DOOW-E <shawn.crossland@paharr.ang.af.mil> wrote:
> Hello all,
> I used to be a vrf member for several years. Then, I stopped because my
> company decided to stop using Vee. Now, I'm back using Vee in another
> application.
> Here's my problem: My older computer used Vee 5 and had an RS-232 to GPIB
> converter made by National Instruments. In that set up, I could
> programmatically step through all 30 GPIB addresses and "discover" what was
> out on the bus.
>
> My newer computer is running Vee 7 and it has a USB to GPIB converter.
> Since Vee IO natively "sees" the USB interface, I don't know how to step
> through each GPIB address to discover what devices are there.
>
> In my set up, it's possible that equipment will be removed for calibration
> and the replacement piece will have a different GPIB address than the one it
> replaced. Ultimately, I want my program to be able to a change in GPIB
> addresses.
>

Not sure what you were doing before, but I would guess that you were
querying easy address to see which ones respond.

I would expect you can do the same thing in VEE 7 by creating
a dummy instrument and stepping its address using a formula
with the appropriate line, such as

IO.dummyInstrument.address=value;

to set the address then a direct IO to query the instrument ( dummyInstrument )

Or do the same sort of thing with a "multi instrument direct IO" since
you can set address via an input.

Stan


--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------

---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".

VRF user

Posts: 16,231
Registered: 11/05/08
[vrf] Programmatically Finding GPIB Devices
Posted: Jul 12, 2006 1:27 PM   in response to: VRF user in response to: VRF user
Click to report abuse...   Click to reply to this thread Reply
Crossland Shawn R MSgt 193OPS/DOOW-E <shawn.crossland@paharr.ang.af.mil> wrote:
> Hello all,
> I used to be a vrf member for several years. Then, I stopped because
> my company decided to stop using Vee. Now, I'm back using Vee in
> another application.
> Here's my problem: My older computer used Vee 5 and had an RS-232 to
> GPIB converter made by National Instruments. In that set up, I could
> programmatically step through all 30 GPIB addresses and "discover"
> what was out on the bus.
>
> My newer computer is running Vee 7 and it has a USB to GPIB converter.
> Since Vee IO natively "sees" the USB interface, I don't know how to
> step through each GPIB address to discover what devices are there.
>
> In my set up, it's possible that equipment will be removed for
> calibration and the replacement piece will have a different GPIB
> address than the one it replaced. Ultimately, I want my program to be
> able to a change in GPIB addresses.
>

Not sure what you were doing before, but I would guess that you were querying easy address to see which ones respond.

I would expect you can do the same thing in VEE 7 by creating a dummy instrument and stepping its address using a formula with the appropriate line, such as

IO.dummyInstrument.address=value;

to set the address then a direct IO to query the instrument ( dummyInstrument )

Or do the same sort of thing with a "multi instrument direct IO" since you can set address via an input.

Stan


--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------

---
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
adam_kohler

Posts: 65
Registered: 11/11/08
[vrf] Programmatically Finding GPIB Devices
Posted: Jul 12, 2006 5:53 PM   in response to: VRF user in response to: VRF user
Click to report abuse...   Click to reply to this thread Reply
<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 11 (filtered)"><title>Programmatically Finding GPIB Devices</title><style><!-- /* Font Definitions / @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} / Style Definitions / p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";}h2 {margin-top:12.0pt; margin-right:0in; margin-bottom:6.0pt; margin-left:.4in; text-align:justify; text-indent:-.4in; page-break-after:avoid; font-size:12.0pt; font-family:"Times New Roman"; layout-grid-mode:line; font-weight:bold;}a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;}p {margin-right:0in; margin-left:0in; font-size:12.0pt; font-family:"Times New Roman";}span.EmailStyle18 {font-family:Arial; color:navy;}@page Section1 {size:595.3pt 841.9pt; margin:1.0in 1.25in 1.0in 1.25in;}div.Section1 {page:Section1;} / List Definitions */ ol {margin-bottom:0in;}ul {margin-bottom:0in;}--></style></head><body lang=EN-GB link=blue vlink=purple><div class=Section1><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Why not look at the examples</span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>ExamplesInstrumentIODynamicFindRemoteInstruements.Vee is a good example which finds everything on any interface and tells you what itis.</span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Just modify the bits you need.  It will bea lot faster than cycling through the addresses.</span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p><div><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Adam Kohler</span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>SVV</span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Wireless Division</span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'>South Queensferry</span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'>Scotland</span></font></p><p class=MsoNormal><font size=3 color=navy face="Times New Roman"><spanstyle='font-size:12.0pt;color:navy'> </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>t 313 3527</span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>e adam_kohler@agilent.com</span></font></p></div><div><div class=MsoNormal align=center style='text-align:center'><font size=3face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><hr size=2 width="100%" align=center tabindex=-1></span></font></div><p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-USstyle='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><fontsize=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>Crossland Shawn R MSgt 193OPS/DOOW-E mailto:shawn.crossland@paharr.ang.af.mil
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday 12 July 2006 20:08
<b><span style='font-weight:bold'>To:</span></b> VRF
<b><span style='font-weight:bold'>Subject:</span></b> vrf ProgrammaticallyFinding GPIB Devices</span></font></p></div><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Helloall,</span></font></p><p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Iused</span></font> <font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>to</span></font> <font size=2 face=Arial><spanstyle='font-size:10.0pt;font-family:Arial'>be a vrf member for severalyears.  Then, I stopped because my company decided to stop usingVee.  Now, I'm back using Vee in another application.</span></font></p><p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Here'smy problem:  My older computer used Vee 5 and had an RS-232 to GPIBconverter made by National Instruments.  In that set up, I</span></font> <fontsize=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>could</span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>programmaticallystep through all 30 GPIB addresses and</span></font> <font size=2 face=Arial><spanstyle='font-size:10.0pt;font-family:Arial'>"discover" what was out onthe bus.</span></font></p><p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Mynewer computer is running Vee 7 and it has a USB to GPIB converter.  Since</span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Vee IOnatively</span></font> <font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>"sees" the USB interface, I don't know how to stepthrough each GPIB address to discover what devices are there.</span></font></p><p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Inmy set up, it's possible that equipment will be removed for calibration and thereplacement piece will have a different GPIB address than the one itreplaced. </span></font> <font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Ultimately,</span></font> <font size=2 face=Arial><spanstyle='font-size:10.0pt;font-family:Arial'>I want my program to be able to</span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>achange in GPIB addresses.</span></font></p><p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Anyideas?</span></font></p><p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Thanks,</span></font></p><p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>-Shawn</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>
---
You are currently subscribed to vrf as: adam_kohler@agilent.com
To subscribe please send an email to:"vrf-request@lists.it.agilent.com" with the word subscribe in themessage body.
To unsubscribe send a blank email to"leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at"www.oswegosw.com/vrf_archive/". </span></font></p></div><BR>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list, email "vrf@agilent.com". <BR>If you need help with the mailing list send a message to<BR>"owner-vrf@it.lists.it.agilent.com".<BR>Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".</BODY></html>
VRF user

Posts: 16,231
Registered: 11/05/08
[vrf] Programmatically Finding GPIB Devices
Posted: Jul 13, 2006 12:54 AM
Click to report abuse...   Click to reply to this thread Reply
Why not look at the examples

 

ExamplesInstrumentIODynamicFindRemoteInstruements.Vee  is a good example which finds everything on any interface and tells you what it is.

 

Just modify the bits you need.  It will be a lot faster than cycling through the addresses.

 

Adam Kohler

SVV

Wireless Division

South Queensferry

Scotland

 

t 313 3527

e adam_kohler@agilent.com

  _____  

From: Crossland Shawn R MSgt 193OPS/DOOW-E mailto:shawn.crossland@paharr.ang.af.mil
Sent: Wednesday 12 July 2006 20:08
To: VRF
Subject: vrf Programmatically Finding GPIB Devices

 

Hello all,

I used to be a vrf member for several years.  Then, I stopped because my company decided to stop using Vee.  Now, I'm back using Vee in another application.

Here's my problem:  My older computer used Vee 5 and had an RS-232 to GPIB converter made by National Instruments.  In that set up, I could programmatically step through all 30 GPIB addresses and "discover" what was out on the bus.

My newer computer is running Vee 7 and it has a USB to GPIB converter.  Since Vee IO natively "sees" the USB interface, I don't know how to step through each GPIB address to discover what devices are there.

In my set up, it's possible that equipment will be removed for calibration and the replacement piece will have a different GPIB address than the one it replaced.  Ultimately, I want my program to be able to a change in GPIB addresses.

Any ideas?

Thanks,

-Shawn


---
You are currently subscribed to vrf as: adam_kohler@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".


---

To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".

Point your RSS reader here for a feed of the latest messages in all forums