03-27-2019 03:39 AM - edited 03-27-2019 03:54 AM
Hi community,
The idea is to send data between many labview application. in other words :
* I have PC 1 where i'll enter some informations, and i have an enum to select which PC i'll send those informations.
is it possible to develop this application using shared variable?
if yes, can you help me with some tips?
Thanks in advance
Modification : Attached, a picture that describe the main purpose of the application
03-27-2019 05:05 AM
@Brainiac91 wrote:if yes, can you help me with some tips?
What if the answer is no?
Shared Variables are more like a broadcast, and it will be hard (if possible at all) to selectively send it to specific recipients.
If you want to be selective, I'd go for a (custom) TCP\IP protocol. Or maybe UDP. It depends on how secure you want things to be. For instance, sending data and a destination 'address' as a message, allows any receiver to decide to pick up the message. That's not secure, as anyone could use the information. Sending a tcp\ip message allows (and forces) the sender to specify the receiver...
03-27-2019 05:17 AM
thanks for your reply. yes, i want to send the informations to a specific recepient.
and what you mean by a (CUSTOM) TCP/IP ??
03-27-2019 05:45 AM
@Brainiac91 wrote:
thanks for your reply. yes, i want to send the informations to a specific recepient.
and what you mean by a (CUSTOM) TCP/IP ??
To communicate this way, you'll need a server and a client. Both client and server can read and\or write, so sender\receiver is not the same as server\client.
So (considering two nodes), one needs to be the client, the other the server. The server needs to implement a TCP\IP listener, the client needs to connect to it. Then, send strings back and forth. What you'll be sending is not standardized, so you'll need (are allowed to) write your own custom protocol.
See the TCP\IP examples shipped with LabVIEW, it has an example server\client.
Perhaps you can even go to a higher level, using network streams. I think they work well only in 'static' situations, but they are easier to setup then a custom TCP\IP connection and protocol.
03-27-2019 07:52 AM
Using the Right Network Protocol might help in understanding when to use what type.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord