03-04-2009 07:20 AM
Hi All,
I'm trying to connect to a VI with a Serial Port input and it shows up as a Parameter Name of "VISA resource name" in TestStand. It has inputs of Device Name and Session Number.
How do I access it as com 1, com 2... I am a little clueless as I generally just set the serial port in LV and don't change it in TestStand, but need to do so now.
Thanks,
Jim
LV 7.1, 8.0, 8.6
TS 2.0, 3.0, 3.5, 4.0
03-04-2009 08:59 AM
You can pass a string to the VISA Resource Name.
I don't understand, though, your comment about 'inputs of Device Name and Session Number'. What has these inputs. Are these additional inputs to the VI besides the VISA Resource Name?
03-04-2009 09:06 AM - edited 03-04-2009 09:07 AM
Dennis,
what Jim is talking about is an input of a VI in the format of VISA Resource Name. This is a container built out of device name and device ID:
But Jim, Dennis is correct: You can also use a string control for your purpose. VISA Open will convert your string (the name of the instrument, like COM1) into the correct data type. So the easy solution is to change the parameter of your VI.
hope this helps,
Norbert
03-04-2009 09:34 AM
Norbert,
Thanks. I only recently made the big jump from v2 to v4.x and did not notice how the VISA Resource Name is now handled.
03-04-2009 10:09 AM
Thanks Dennis and Norbert!! I haven't ever done it like that and that is the answer I was lookinf for!!
Thanks Again,
James