LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

server client

Solved!
Go to solution

I have a VI which performs some calculations and gives the answers and logs the answer in an excel file in the same computer.

Now if I want to log those answers in an excel file in another or rather a  Server or main computer, what can I do? How can it be done?

There might be 'N' number of clients or user who will be performing the experiment and will log there answer sheets in the Main computer.

0 Kudos
Message 1 of 7
(2,940 Views)

Hi Sunny,

                You can Use TCP.Have a look at the TCP/IP examples shipped with labview.In the N number of systems you just provide the IP address of the system where the server VI is residing.

 

          Hope this helps.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 2 of 7
(2,936 Views)

Hi Danil

Attached is a simple VI to write some values in the excel sheet when you press the submit button.

Now when submit button is pressed it should log the data in an excel file in other PC.

How to work with Tcp/Ip for this.

0 Kudos
Message 3 of 7
(2,908 Views)

Hi Sunny,

                 See the simple Data Client.vi and Simple Data Server.vi Examples shipped with LV2011.And simply try it with your VI.It will work.Smiley Wink

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 4 of 7
(2,904 Views)

Sorry for the trouble but Danil can you explain it with the example given above?

0 Kudos
Message 5 of 7
(2,899 Views)
Solution
Accepted by topic author Sunny1290

@Sunny1290 wrote:

I have a VI which performs some calculations and gives the answers and logs the answer in an excel file in the same computer.

Now if I want to log those answers in an excel file in another or rather a  Server or main computer, what can I do? How can it be done?

There might be 'N' number of clients or user who will be performing the experiment and will log there answer sheets in the Main computer.


The easiest is to save the file to a network drive, better to add some client info in filename so they save to separate files, or added to each row if using a common file.

Apart from that you can push results to a common database, or use TCP/IP to send it, as mentioned, and have 1 computer listen and write all results.

 

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 7
(2,896 Views)

Thanks Yamaeda

0 Kudos
Message 7 of 7
(2,867 Views)