LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

universal method for serial identification

Hi,

 

Is there a universal method for obtaining instrument identification string for any type of serial instrument?   Most national instrument serial device follow "ASRL?*instr" command but not everyone does.  I just wondering if there is a real unversal method that will get IDs for any serial device attached that is very similiar to other data bus like GPIB/USB/Firewire/etc.  I've also tried "*IDN?" command too but no avail.

 

Thanks

0 Kudos
Message 1 of 5
(2,544 Views)
No.  While some devices support that standard, there are many that do not.  All you can do is read the manual for whatever device you are working with and see what its communication protocol is.  They may not expose that information through the serial port.  It's even possible that the only thing that identifies the serial number for a particular device is its label stuck to it.
Message 2 of 5
(2,539 Views)
And fyi, NI does not have any serial instruments and the ASRL refers only to a serial port - not what, if anything, is connected to it.
Message 3 of 5
(2,528 Views)
Darn, they don't have it then.  Okay.  Thanks guys.
0 Kudos
Message 4 of 5
(2,509 Views)
Not to beat a dead horse, but there's a simple practical reason for this: consider that for RS-232 there are many different baud rates, stop bits, parity settings, termination characters, XON/XOFF, etc., that it would require sending an *IDN? command over all the possible combinations for these settings until you get a "hit". That's simply not practical.
Message 5 of 5
(2,500 Views)