LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Host - Real Time Communication with Cluster

Hello,

i want to get and set different states from my host system to my rt system and visa versa.

 

For that i clustered all relevant states as boolean elements in a cluster.

 

E.g.  Host set the Flag "Get Data" to true; RT reads the flag, aquire data and set another flag "Data Ready" to true an

set the "Get data" to false". Its like a kind of handshake.

 

Whats the best way to realize that?

I tried with network variable, reading the cluster from the host was no problem, but i didnt know how to write/set the

flags during the  runtime of my RT.

 

Thanks in forward 🙂

 

 

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

I usually use pure TCP/IP for the communication between Host and RT system. Take a look at STM library (Simple TCP Messaging). Using network variables might be easier but TCP/IP is more scalable.

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

Hy,

well there is only one RT and one Host System so it would be good if i can do that with the normal LV network variable.

 

Is there no possibility to read/write elements of the network variable (contains Flag Cluster) in different processes/tasks

(DMA readout; decoding signal,...).

 

🙂

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

If I remember correctly there should be no problem to write to the shared variable on the RT target. Is it set as Read/Write? You can check the status with NI Distributed System Manager.

 

 

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