07-13-2007 02:24 PM
07-13-2007 02:33 PM
03-12-2020 06:18 PM
@mikeporter wrote:
Just wire it up. A string will coerce to a resource name.
Mike...
I don't think it does. At least not for me. I am having the same problem, I am trying to wire a string to the VISA resource name and doesn't work.
03-12-2020 06:24 PM
@dadest100 wrote:
@mikeporter wrote:
Just wire it up. A string will coerce to a resource name.
Mike...
I don't think it does. At least not for me. I am having the same problem, I am trying to wire a string to the VISA resource name and doesn't work.
It works for everybody else. But as it stands, no one can help you because "doesn't work" is too vague, and you didn't provide a VI that you're having trouble with.
03-13-2020 05:08 AM
Hi Leiyuan,
@Leiyuan wrote:
I have a string , like "visa://192.168.123.212/RIO0::INSTR", how can I convert it to a Labview visa resource name? The resource name is going to be used for "Open VI reference" control.
It works for us to wire a string to a VISA reference:
@Leiyuan wrote:
Also, a related question is , is there a special vi control for ip address input? How do I check whether the input ip address is in valid format or not?
No, there is no special (frontpanel) control. You can check for 4 integer numeric values in the range of 0…255, separated by dots…
(Search the forum, this question has come up before.)
03-13-2020 11:55 AM
@paul_cardinale wrote:
@dadest100 wrote:
@mikeporter wrote:
Just wire it up. A string will coerce to a resource name.
Mike...
I don't think it does. At least not for me. I am having the same problem, I am trying to wire a string to the VISA resource name and doesn't work.
It works for everybody else. But as it stands, no one can help you because "doesn't work" is too vague, and you didn't provide a VI that you're having trouble with.
Hi Mike, yeah sorry apologies my input string wasn't formatted correctly that's why it didn't work.
Cheers
03-13-2020 01:16 PM
The proper way is to use Type Cast
03-13-2020 01:22 PM
@RTSLVU wrote:
The proper way is to use Type Cast
Only if you have an aversion to coercion. 😉
03-13-2020 01:25 PM - edited 03-13-2020 01:27 PM
@billko wrote:
Only if you have an aversion to coercion. 😉
IMHO: Coercion dots are a sign of failure 😛
03-13-2020 02:04 PM
@RTSLVU wrote:
@billko wrote:
Only if you have an aversion to coercion. 😉
IMHO: Coercion dots are a sign of failure 😛
That's a little extreme. Coercion Dots are red flags to issues, not a sign of complete failure.