Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Real TIme and Host Computer

Hello,
 
I am strating to make an application with the RT system which will control 4 different stations. The way I am planing to do is create four threads on the RT system and four on the host system. I want to create another thread on the RT system which will communicate with the host PC over TCP/IP and for the communication within the RT system I want to use RT FIFO/local variables. I want to put my TCP/IP commumication on the host PC inside each thread. This will make me use a minimum of four TCP/IP ports for the RT and host system communication. Is this the right way of doing it?
 
I also have another question, I need to do some complicated math on the data collected from the RT system and display on the user screen on the host PC. What is the best way for this. shall I do all my calculations on the RT system and send the data to display to the host PC or shall I send the raw data to the host PC and it will do all the calculations and display data for the user?
 
Thanks in advance,
 
Mudda.
0 Kudos
Message 1 of 2
(3,428 Views)

Hello Mudda,

From what I can understand, your proposed method of application development sounds promising. From the RT target, you can control all of your stations and you can monitor all of them from your host PC.

In regards to your complicated math operations, I would suggest that rather than attempting to send data back and forth from the PC, simply create a seperate, non-critical loop on the RT target to do all of the complicated math. This will still allow you to execute your critical operations deterministically. But you still have the ability to do other, non-critical operations on the RT target; you simply ensure their execution in a non-priority loop.

Cheers,

Emilie

0 Kudos
Message 2 of 2
(3,399 Views)