07-31-2014 02:14 AM
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 🙂
07-31-2014 02:44 AM
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.
07-31-2014 02:50 AM
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,...).
🙂
07-31-2014 03:08 AM - edited 07-31-2014 03:36 AM
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.