LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA resource from multiple computers

Hi Community!

 

I'm new at this forum so forgive me if I posted this on the wrong section. I have multiple computers (1 local, 2 remote). The resource on all of these computers can be found by NI-VISA. My problem is that on the dropdown list, I can't figure out which resource comes from which computer. Is there any way to create a VI that does this? Maybe sort it by which computer the resource is from? I found the Find Serial Ports+Choose VI that's been posted around, however, this doesn't really solve the problem of differentiating which computer the resource is coming from.

 

Any help is appreciated. Thanks!

0 Kudos
Message 1 of 10
(3,684 Views)
I can't think of a property off hand. I would simply change the alias as something quick and dirty.
0 Kudos
Message 2 of 10
(3,676 Views)

Hi 

 

 

0 Kudos
Message 3 of 10
(3,625 Views)

Which computer do you actually care about and want to use the VISA serial port?  I can only assume you are trying to use the serial port on the one kiosk computer.  In which case I'd change the alias on that one to make it obvious.

0 Kudos
Message 4 of 10
(3,618 Views)

Personally, I just use a configuration file to save my communication settings.  Read the config file on startup, initialize your ports, and you are off to the races.  If something is wrong, you'll quickly find out and you will need to fix your config file.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 10
(3,615 Views)

Hi RavensFan,

 

The way I'm setting up the kiosk (local) PC is that it will access the two PCs (2 remote). The two PCs are the ones connected to the devices through serial. All the kiosk does is run the VI, the two PCs are simply sending and recieving data from the devices to the kiosk. I attached a diagram for clarification. I've already established a way to communicate between all of the PCs, but when I use the VISA pallette, the connected ports doesn't differentiate between PC2 & PC3 (which, in the end will be more than 1 PC). So if the user clicks on the dropdown on the VISA resources control, it will provide all of the resources found, but doesn't tell the user which PC is the resource from.

That's why I'm trying to find a way to differentiate the serial ports on PC2 & PC3.

 

Thanks for the help 

0 Kudos
Message 6 of 10
(3,610 Views)

Hi crossrulz,

 

Thank you for the suggestion. The only problem is that I would have to do that for every single PC3 (see diagram) that I connect to my "network".

 

Thanks.

0 Kudos
Message 7 of 10
(3,606 Views)

I would start to consider alternate means to communicate PC's rather than using remote VISA calls.  Consider using TCP/IP calls between the machines and let the computer that is strictly serving up the serial ports run a small VI daemon to provide an interface between calls it gets via TCP/IP and the serial ports.

 

I really don't understand why you feel it is such a problem to change the VISA alias on all the PC's, whether it is 3 or 20.  You are creating a system of communication.  You pretty much have to touch each PC to get it set up and connected to your network and get the VISA drivers installed.  How much more difficult is it to take the time and rename the VISA alias on that PC?

 

I've only played with a remote VISA serial port one time, so I don't remember all the details.  But if I'm not mistaken, can't you see and configure that remote port from within MAX on your PC?

0 Kudos
Message 8 of 10
(3,598 Views)

Hey RavensFan,

 

My first thought was to configure the remote port through MAX. However, I had the problem of my remote system not showing up on MAX even with the server started on all of the PCs. The NI-VISA Interactive Control can find it, but NI-MAX could not.

Also, I'm not very familiar with TCP/IP calls. Is there a simple VI tutorial that I could use?

 

Thanks.

0 Kudos
Message 9 of 10
(3,592 Views)

@jachy25 wrote:

Also, I'm not very familiar with TCP/IP calls. Is there a simple VI tutorial that I could use?


Look in the LabVIEW Example Finder (Help->Find Examples).  There's a set of Client and Server VIs that you can use as reference.  I would also recommend giving a good look at the STM library.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 10
(3,586 Views)