![]() ![]() That method might get you a unique serial number or identifier you can use to query the instrument without doing actual serial communications with it, but it's not a universal solution. GPIB devices or devices with actual serial ports don't!). I believe there is a third way that involves using property nodes to determine the VID or PID of the USB to Serial converter (if it uses one. This should work for nearly all devices unless they don't support unique identifiers, and it's a bit of a pain as you have to actually talk to each device, which means configuring the serial port to match each device's specifications and manually enumerate the entire list. You can then match up each COM port to the device it is talking to, but this isn't automatic- you have to do it yourself. Unfortunately, lots of things aren't SCPI-compliant, so you will need to get with the manufacturer of the device to see if it has a command you can use to ask the device what its name is. ![]() Many devices that comply with SCPI commands will respond to a *IDN? command with some identifier string, which you can use to determine the instrument (see this article for a little more info). The most straightforward way to do this is to use crossrulz' method to programmatically get a list of COM ports, then ask each one to identify themselves. It might not, but that's a Windows decision, not a LabVIEW one. For example, if you connect a power supply to a USB port and it shows up as COM3, it might show up as COM4 tomorrow on a different USB port. You cannot automatically detect a given device. FTDI's initial products were chipsets for personal computer motherboards, the primary customer of which was IBM, which used them in its AMBRA and PS/1 personal computers. FTDI is a Scottish privately held semiconductor device company, specialising in Universal Serial Bus (USB) technology. ![]() OLD: Value space: Auto / DisplayName / IPv4 / IPv6 / None / SipUri / SystemName. Future Technology Devices International Limited, commonly known by its acronym FTDI, was founded on 13 March 1992 by its current CEO, Fred Dart. The second way, and the way I assume you actually intend, is "Can I have my system recognize my device automatically without requiring the user to specify which COM port it's connected to?" the UC232R-10 USB to RS232 (FTDI) adapter. The first interpretation would be "Can I show the user a dropdown of all currently connected COM ports" the answer is Yes, using either crossrulz's suggestion to programmatically find them, or right click a VISA control and select "I/O Name Filtering". I can interpret this question a couple ways. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |