Hi,
I'm developing a [c]FP 2020 application and I'm almost finish. At the beginning I had 4 parallel loops (main loop for sampling two temperature, one pressure, one serail port (1s))
The other loops are for (check if DIP switch 5 is enabled (500ms), check if input1 is set to 1, and the last one for checking if a day is over.
The main 1Hz loop writes the data directly to a cvs file on drive D:\, calculates three histograms and wirtes the results back to three ini files (drive d:\)
During the proccess I read and write data from \ to a configuration file on drive c:\
I could see a strange behavior. It is that the rate of main loop goes down to 0.1Hz. I've droped all the other loops and put the logic inside the main loop. The histogram results I save now inside local variable and I save them first a day is over.
The performance doesn't change. Can anybody help me? Maybe I should store all datas within arrays and save them first at file when I need the datas within a file, but I don't know what happens with the memory of the [c]FP 2020 if I sampling the hole day.
I hope somebody is there and can help me.
Thanks
Thomas
Thomas