LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control more than one cpu

Hi ...
 
I have 1 cpu as server and 3 cpu as client. There will be a decive connected at the server serial com port. All the client can access the server serial com port. I want to run the same program at all cpu including server and client. But I noticed that only 1 cpu can access at 1 port at a time.So what should I do if I want all the cpu have an access to display and control the same program at the same time? Is it vi server or web server will help in my problem? Any suggestion ?Please help me..Thanks...     
0 Kudos
Message 1 of 13
(3,142 Views)

I'm trying to understand your configuration.

1 server

3 clients

1 serial device communicating to the server

clients communicate to the server serial com port.  Are they connected directly to the server or do they go through the serial device?  How many serial ports on the server? If the clients communicate through the serial device, how are they switched (selected)?

RayR

0 Kudos
Message 2 of 13
(3,129 Views)
The way I read it it sounds like they're talking about a multicore processor with 4 CPUs, rather than 4 separate computers. Could be wrong, though, as it's not clear.
0 Kudos
Message 3 of 13
(3,112 Views)
See his related thread.
 
If you want to have a true client/server, then the only program that should be accessing the com port is the server porgram and it should be processing requests from the various clients. You simply cannot have multiple connections to the same device without some sort of arbitration.


Message Edited by Dennis Knutson on 05-28-2008 08:10 AM
Message 4 of 13
(3,107 Views)
Hi there,
 
Sorry if I'm make you confused.
 
I have 1 server and 3 clients. Server is connected to a device with a serial com port. I am using NI-VISA server in order to let the client have an access to read the com port at the server. I just put client's IP address at the server so that server will allowed clients to read the com port. This part is working.
 
My problem is I could not control the same vi program at different pc. I am running the same program at 4 pc which are server, client A , client B and client C. Right now I only can run the snapshot of the same program at all pc without have an authority to control the program. So can I make the different pc control the same program? Means that I can control the program either at client A, client B, client C or the server.
 
Can I use vi server or web server to solve my problem?..I have no idea what should I do..please...
 
Hope that all the details will help you..
 
Thanks 
0 Kudos
Message 5 of 13
(3,078 Views)

I'm still confused. Are you using the web publishing tool or did you write separate client  and server programs. With the web publishing tool, you only need to write a single program - the server. This server program is the one that would be connected to the serial port. This would not require the use of the VISA server at all. Using a web browser, you would then connect to the server and request control.

If you wrote your own code, then you might want to post what you've written.

0 Kudos
Message 6 of 13
(3,074 Views)
Hi,
 
Sorry. I have so many things in my head.Ok..Just forget about the VISA server.
 
Actually, I want to test my program with web publishing tools and web server so that I could control AND monitor my program at another pc. I have  try web publishing tools. I am noticed that there are three different viewing mode which are embedded, snapshot and monitor. So if I choose monitor I just can monitor my program at another pc. In order to monitor AND control my program, I have to choose embedded mode, right? When I choose embedded mode, my program didnt work.
 
So I decided to try with web server and vi server. Unfortunately I am newbies. Not much things that I know. So it will be more difficult for me. I have no idea how to start using web server and vi server. My objective is I want to monitor AND control the same program at another pc.
 
Please help me...
 
Thanks..
 
0 Kudos
Message 7 of 13
(3,066 Views)
This is an example of my program..
0 Kudos
Message 8 of 13
(3,065 Views)
What exactly did not work? With this example, I used the web publishing tool and was able to view the front panel in IE, request, and then get control.
0 Kudos
Message 9 of 13
(3,063 Views)
when I click the connect but at the document url pop up, nothing happen. It shows that downloading panel is 0% of 0 byte. Can you teach me how to use the web server? I want to make a comparison between web server and web publising tool for this application.  
0 Kudos
Message 10 of 13
(3,059 Views)