LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Resource Name

Hi!
Can I use string control in place of VISA resource name?
I want to use virtual com port in my program.
 
thanks
Download All
0 Kudos
Message 1 of 6
(4,150 Views)
You can use a string, since it simply coerced to a VISA resource at the configure VI (the little red dot on the top-left of the VI), but the string has to point to an existing port.
If the virtual port has been properly registered with the OS, then it should be available through the VISA selection ring as well. Normally you have to restart LabVIEW after creating a new port for the ring to have the updated list. If that doesn't help, then you can open MAX and configure the port manually.

___________________
Try to take over the world!
0 Kudos
Message 2 of 6
(4,148 Views)
Though I don't understand why you would want to use a string instead of the VISA Resource Name. It's pretty simple to only pick existing ports with the VISA control and also pretty simple to mistype a port or pick one that actually exists when you use a string.
0 Kudos
Message 3 of 6
(4,142 Views)
 
It's a VI I use to grab all the COM ports on a computer and create my own aliases. I think it will help you do what you want without having to mess with MAX to set VISA aliases.
0 Kudos
Message 4 of 6
(4,132 Views)

Hi!

I have different types of hardware which has USB port. When ever I connected hardware to PC it will create different virtual port (COM?). some times COM3, COM4 etc., So what I want to do in my program, when program starts it will automatically detacts hardware and run program. What I have done in my program, I have searched com ports using VISA find function which gives the virtual port and that COM port write in global variables using string and that global string control reads in my main serial read and write vi in place of VISA Resource name. But it doesn't work. I can't select manually port after finding port using VISA function.

Thanks

 

 

0 Kudos
Message 5 of 6
(4,122 Views)
0 Kudos
Message 6 of 6
(4,114 Views)