05-25-2021 05:04 PM
I'm building a program for school. It's a monitoring program about energy. It's a little difficult for the people who don't speak dutch because all the names in the program are in Dutch. To start the monitoring you have to add 2 files which I added to this post. The Windcastforcast belongs to "Windmolenpark" file path and the Elia load to "Verbruik België". I build some functions to read all numbers of these files every second (depends on what value you put in the "wait"). This worked fine until today. Something weird happens to the graph which is repeated every second or so and the value display of meter "Windmolens België [kW]" stays at 2439,95. "België [kW]" stays at 8,3498E+6. When I inspect the program with the lamp it works fine but not when I turn the inspection light off. I would like to know if this problem occurs with you too or not. 
If you know how I can solve this problem please let me know.
If something wasn't clear, let me know.
(The program should be started with an arduino)
Solved! Go to Solution.
05-26-2021 02:59 AM - edited 05-26-2021 03:02 AM
Hi Andy,
@Andy2869 wrote:
To start the monitoring you have to add 2 files which I added to this post. The Windcastforcast belongs to "Windmolenpark" file path and the Elia load to "Verbruik België". I build some functions to read all numbers of these files every second (depends on what value you put in the "wait"). This worked fine until today.
Your loop iterates each millisecond instead of "every second", so it (tries to) run a 1000 times faster than intended…
Why do you need to read those files each (milli)second? Do they change so fast?
@Andy2869 wrote:
This worked fine until today. Something weird happens to the graph which is repeated every second or so and the value display of meter "Windmolens België [kW]" stays at 2439,95. "België [kW]" stays at 8,3498E+6. When I inspect the program with the lamp it works fine but not when I turn the inspection light off. I would like to know if this problem occurs with you too or not.
For me the files are read and their content is shown in the string array indicators.
How do those indicators relate to your FOR loop which is used to analyze some other (completely unrelated) string array controls?
For me the chart (and all other indicators of the FOR loop) don't show anything!
I guess you did not program your algorithm as it should be…
When the program did work "yesterday", but not "today", then something has been changed on your computer! When your VI was changed then you simply pick the backup from your "yesterdays" code from your SCC tool (source code control) to get the "working" version back…
You really should cleanup your VI:
05-26-2021 04:03 AM
A big thank you for looking at my problem. Yes I know my program is for from perfect but i'm very new to Labview. I have found the problem. It was the wait in the while loop it shouldn't have been there. I moved it in the for loop and now my program works fine, just like how I want it.