LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting last data from Shared Variable before network disconnection

Solved!
Go to solution

Hi.

 

I am using Shared Variable - Network Published for my communication between two PC. Each PC's LV Application will pass data to each other.

Sometimes the wireless connection really gets bad and the network connection will stop. 

I want to get the last data transmitted. At present my VI will show "0" value on the shared variable data once the connection is cut.

I tried using Shift registers but it results the same.

 

Can anyone teach me how can I remain the last data transmitted when the network connection is cut.

 

Thank you very much.

 

regards,

0 Kudos
Message 1 of 4
(2,854 Views)

One idea.

Message Edited by Ravens Fan on 08-11-2009 12:36 AM
Message 2 of 4
(2,852 Views)
Solution
Accepted by topic author jtc

Hello Ravens Fan,

 

It works !!! Thanks a lot.

 

regards,

0 Kudos
Message 3 of 4
(2,832 Views)

Hi Ravens Fan,

 

I have a follow up question on this.

I am using shared variable, network deployed to communicate between two target PC. I built an execution file for each target PC; one is as host PC and the other is client PC. The host PC contains the shared variable.

When client PC is running while Host PC is turned OFF, it will generate an error that host PC`s data is not available. But if the other way around; Host PC is running while client PC is turned OFF it will NOT generate an error.

I would like to create an indicator that the client PC`s data is not available. 

 

Any advise or sample VI will greatly help me. Thank you very much.

0 Kudos
Message 4 of 4
(2,740 Views)