LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RT Network Shared Variable and Visa Serial Instr class

Hi,

 

I'm using Labview 2009 SP1 with the RT module. I've had no problems creating a RT Target application and a Host PC application which are interconnected using Network Shared Variables, until I came to the COM ports fitted to the RT Target (PXI Embedded Controller and 2 x 4 port COM cards).

 

I can configure and use the COM ports in the RT Target application providing I use constants to define which COM port to use, i.e. VISA OPEN function accepts hardcoded "COM2" , (VISA Serial Instr class).

 

But I want to pass the COM Port resource name from my host application. 

Is there a suitable Network Shared Variable I can create ? or how do I change the string value (COM Port name) of the VISA Serial Instr class variable in the RT Target application ?

 

 

thanks,

 

 

Gary.

0 Kudos
Message 1 of 2
(2,038 Views)

Hi there Gary,

 

Thanks fot the post. I think I have found something that may be if use to yourself.

 

http://labviewwiki.org/Functional_global_variable

 

This is the functional global variable.

Take a look at it and let me know what you think!

 

Many thanks,

 

Liam A.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,028 Views)