08-19-2015 06:28 AM
If I'm going to the system manager, I have this information:
but if I'm using the VISA find resource, I obtain this:
Is it possible to get the label?
Solved! Go to Solution.
08-19-2015 07:35 AM
08-19-2015 07:40 AM
08-19-2015 07:52 AM
Use the Class = Ports and change the wild card * to something to narrow the search.
devcon find =Ports *
devcon [-m:\\<machine>] find <id> [<id>...]
devcon [-m:\\<machine>] find =<class> [<id>...]
Find devices that match the specific hardware or instance ID.
This command will work for a remote machine.
Examples of <id> are:
* - All devices
ISAPNP\PNP0501 - Hardware ID
*PNP* - Hardware ID with wildcards (* matches anything)
@ISAPNP\*\* - Instance ID with wildcards (@ prefixes instance ID)
<class> is a setup class name as obtained from the classes command.
Devices are listed as <instance>: <descr>
where <instance> is the unique instance of the device and <descr> is the descrip
tion.
08-19-2015 07:54 AM
Try this:
08-19-2015 07:55 AM - edited 08-19-2015 08:11 AM
Try this:
With the list:
(i have a special virtual COM TCPIP port on my machine, this gives error that is why the first element in the array indicator is empty for me)
08-20-2015 11:18 AM
Hello,
Alternativelly, the labVIEW example called "show all hardware" uses the System Configuration API and its property nodes to retrieve information about all devices that are connected to your PC. You might want to have a look to the "Ressource Name"...
Best regards,
Pierre-Emmanuel BELLES
Certified LabVIEW Developper
Certified TestStand Architect
08-20-2015 03:46 PM
Hello,
I have a question somewhat related to this only. When I run by Conex servo motor it is connected to COM2 but whenever I run the lab view program it gives me a list from the Select device block which is in the driver of the Conex-CC example and it gives me a list of COM's connected and everytime I have to choose the COM2 and press ok.
I am trying to make it a constant as I am always using COM2 for my motor, so how can I make it a constant that it never asks me and that pop up window doesn't shows up and it selects COM 2 by it's own.
Thanks.
08-20-2015 03:55 PM
You should start a new topic as your problem is different.
BUT:
"run by Conex" What does that mean?
"Conex-CC example" What is that? Is that a LabVIEW VI? If it is a VI then you will need to edit the VI and "hard" code COM2.
But what if one day you change the COM port?
You could write some code to go search for the correct COM port. Can you query the Conex for some type of ID?
08-20-2015 04:02 PM
Hello Omar.
Sorry, that was a typo error "Run by conex" I wanted to say run my conex servo motor.
Conex-CC example yes is a VI and it is the VI which was already present as an example in driver's I downloaded from NI's website to run my Servo motor in LabView.
Changing the COM port, I am pretty sure I won't be doing that and the reason I want that to make my program run faster automatically instead of making it to wait for manual instructions.
I tried to make COM@ as a constant in the VISA resouce names but that didn't help. Can you help me in that a bit, as I am a newbie. I can upload some pictures if you want to make it more clear what I want.
Thanks.