NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing a VISA resource name in Test Stand

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

0 Kudos
Message 1 of 5
(5,911 Views)

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?

0 Kudos
Message 2 of 5
(5,908 Views)

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 

 

 

Message Edited by Norbert B on 03-04-2009 09:07 AM
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 5
(5,904 Views)

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.

Message 4 of 5
(5,899 Views)

Thanks Dennis and Norbert!! I haven't ever done it like that and that is the answer I was lookinf for!!

 

Thanks Again,

James

0 Kudos
Message 5 of 5
(5,883 Views)