LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to have a process computer send a 'Process Complete" message to another PC Via LAN.

I need to have a process computer send a 'Process Complete" message to another PC Via LAN.
The receiving PC would then indicate "process Complete by blinking an indicator LED in LV.
Does anyone have example code to accomplish this? Not exact code but rather a method I can use to implement.
Thanks in advance
0 Kudos
Message 1 of 4
(2,830 Views)
Are both PCs running a LabVIEW app?  If so, try using shared variables.


From LabVIEW help:

Sharing Live Data Using Shared Variables

Shared variables are configured software items that can send data between VIs. Use shared variables to share data among VIs or between locations in an application that cannot be connected with wires. A shared variable can represent a value or an I/O point. You can change the properties of a shared variable without having to edit the block diagram of the VIs that use the shared variable.

------------------------------

If not, then you need to understand how the process app can send a message.  Can it write to a file (which could be mapped to the other PC)?  Could it send a message vi TCP/IP? 

Just some thoughts...
>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 4
(2,828 Views)

Both PC's are running labview v6.1.

How does the prcess computer know the which is the target pC to send a message over the LAN?

Thanks Again

0 Kudos
Message 3 of 4
(2,806 Views)
Hi Tony,
 
Another approach you may want to look at is using TCP/IP functions to pass messages between PCs.  There are some examples located in the TCP/IP section of the example finder such as Data Server and Data Client.  For more information on how to implement it, take a look at our Developer Zone tutorial on Using LabVIEW with TCP/IP and UDP as well as LabVIEW Help.
 
Regards,
Lauren
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(2,789 Views)