12-23-2024 01:37 AM
I'm measuring bearing wear down here, every thing is working but graphs over here are not updating on real time basis
Here I'm uploaded my vi.
Thank You
12-23-2024 09:32 AM - edited 12-23-2024 09:34 AM
(Diadem does not have VIs, so I assume this is a LabVIEW problem and you posted in the wrong forum. I'll move the thread)
You should do a "save for previous" (2019 or below) before attaching. Many here don't have not upgraded to LabVIEW 2024 yet and cannot look at your VI. If the code is very simple, even showing a picture might be sufficient.
12-23-2024 10:39 AM - edited 12-23-2024 10:40 AM
OK, I had a quick glance at your VI and it has horrible code smell.
There are no graphs, so I assume you talk about charts. Two They will only update when the "add" event fires and since they are in a FOR loop with a 10 second wait, you'll only get one point every 10 seconds. Since the event is set to lock the panel, not much can happen until that's over. the other four will add one point.
None of this has anything to do with "real time".
glaring problems (just the tip of the iceberg):
Sorry, I am out. This needs to re-architected from scratch. Start with some basic tutorials.
12-24-2024 12:24 AM
Thank You Sir Comment.
I'm new to LabView Programming, and you comment will be valuable to me to improve myself.
I have one question sir, should I go with same Architecture or try different one like Producer-Consumer? Because requirement is same, as you go through the code you might know what i want to achieve. If you suggest me some information, it will helpful for me
12-24-2024 02:39 AM
I'm measuring bearing wear down here, every thing is working but graphs over here are not updating on real time basis
Here I'm uploaded my vi. Please suggest me some way out.
Thank you
12-24-2024 11:19 AM
Your VI is again in LabVIEW 2024, which I cannot currently open. Did you real my note about "save for previous"/
You need to define what you mean by "real time" (typically it has a very specific meaning involving RT hardware and software). If the charts should update on a a regular basis, they cannot be inside an event structure that triggers manually and takes at least 30 seconds to complete, locking the panel for that duration.
If the loop needs to spin at a defined interval, you probably don't even need an event structure.
Since the code I saw yesterday was such a mess, can you take a step back and explain in simple terms what the VI is supposed to do in what order and time interval, and how it should respond to user interactions. Do you have the "requirements" document? I have the nagging feeling that it could be done from scratch with 20% of the current code.
01-07-2025 12:34 AM
Hello sir,
I have tried from my side and simplified the code still the charts are not updating.
please if you can help me to solve this.
Here my requirement is to
1. Gather the Proximity sensor data using DAQ device
2. with the python integration code Predicate the Bearing Wear Down values
3. Showing predicated values on the Graph on real time basics.
4. and storing data into mysql database.
5. and at last report generation.
Here i have attached the updated code which i have same on previous version
01-07-2025 04:59 AM
You have gaps in your comparison, what happens if you e.g. read 0.95?
You might show 0-0.9 (which is ok), but i assume it in reality is 0 <= x < 1?
For starters, do this improvement and remove your waits, why are they there?!
01-07-2025 05:12 AM
Great sir, I'll implement it.