Queries and prints the instrumet ID of an IsoBus instrument; the IsoBus address is the only command line parameter.
You will have to adapt this script first to use the correct IsoBus base connection. This base connection describes how the IsoBus is connected to your measurement PC.
For example, the IsoBus could be connected to a bus master device (often an IPS magnet power supply), and that in turn has a GPIB address. Then, the base connection would be the GPIB connection to the bus master device.
Alternatively, as shown above, the IsoBus is connected directly to the PC, and the base connection is then just the serial port.
$ perl isobus_query_id.pl 3
(c) Andreas K. Hüttel 2011,2013
To install Lab::Measurement, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lab::Measurement
CPAN shell
perl -MCPAN -e shell install Lab::Measurement
For more information on module installation, please visit the detailed CPAN module installation guide.