Hi Javier,
I am already using shared variables to send the data from the target to the PC.
If I store the data in an array of 20 000 points in the taget and I send them, just after the test has finished, to the PC without any problem. However, when I try to send the data by means of two shared variables (the same I use for the 20 000 points) to the PC continuously, during the test, I get not any data and quitre often the program hangs. In the first case, the shared variables are outside the Time Loop and
in the second case inside it
Because, each iteration of the Time Loop takes 1 ms, I guess, the system has not enough power to do all the jobs, PID + sending such a huge amount of data. Thus, I intend to send to the PC, say every 60 seconds or 600 seconds..., just the number of points correspondent to two sinous waves, this would make a total of no more than 500 points depending on the frequency. After the PC receives the points, I would display them in the XY graph. The screen will refresh with the arrival of the next sending and so on.
I have tried to program so that within the critical loop I connect single process variables that I read from in a none critical loop to write their values to a network shared variables, but until now, I have not overcome the problem.
Thanks for your help
Simbani