02-25-2010 04:32 PM
Read many of the posts here and manged to get "COM25" to display when I select COM port from VISA window.
However, VISA Interactive Control Window displays the following detailed description of the same port:
"ASRL25 (COM25 - MicroStrain Virtual COM Port)"
I need my LV app to display this detailed name.
Suggestions?
Yes, I did also read the NI LV Tutorial on this topic, just did not gleen answer 😉
Solved! Go to Solution.
02-25-2010 04:50 PM
ASRL25 is part of the canonical name (i.e. ASRL1::INSTR) and the other information is how the port is listed in windows device manager. There's probably a way to get the information in the windows registry. You can get the canonical name with a VISA property node (Resource Name). You could also simply assign whatever you want as a VISA alias.
p.s. You want to learn how to post images. Your's are linked to your C drive. Use the Add Attachments and then use the 'Upload or insert an image' button on the toolbar.
02-25-2010 09:18 PM
If you wire a property node up to the VISA Reference you should be able to find the property Interface Information:Interface Description. This should give you the detailed name.
If that doesnt work for you there are various other techniques such as using some calls to the .NET framework or querying the registry (providing your on Windows).
Shaun
02-26-2010 07:51 AM
I was able to do as you suggested, and wire up a property node and select the resource name.
However, it just gave me the com25, nothing more.
Any idea how I may read the detailed info from Windows some how??
02-26-2010 08:02 AM
Oops, I would wiring error........that does give me the resource name....completely.
Many thanks!
02-26-2010 09:51 AM
I've only ever used the GeneralSettings.ResourceName and did not know this returned different information. Not sure when I would ever need it but it's good to know.
02-26-2010 03:21 PM