LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graphs are not updating

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

0 Kudos
Message 1 of 9
(308 Views)

(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.

0 Kudos
Message 2 of 9
(280 Views)

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):

 

  • Why do you have all these shift registers if you never use their output ever? THere is no reason for 3D arrays.
  • Why is the front panel maximized to the screen if the active size is much smaller?
  • A one iteration FOR loop is just a glorified sequence frame.
  • I only have a 2560x1440 screen and thus cannot efficiently debug your VI. Your diagram is way too large!
  • Your report button has the wrong mechanical action and only works 50% of the time because you need to check the value in the event case. Make it latch action!
  • etc.etc.

Sorry, I am out. This needs to re-architected from scratch. Start with some basic tutorials.

0 Kudos
Message 3 of 9
(259 Views)

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      

0 Kudos
Message 4 of 9
(227 Views)

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

0 Kudos
Message 5 of 9
(227 Views)

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.

0 Kudos
Message 6 of 9
(193 Views)

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 

0 Kudos
Message 7 of 9
(74 Views)

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?!

Yamaeda_0-1736247576905.png

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 8 of 9
(54 Views)

Great sir, I'll implement it.

 

0 Kudos
Message 9 of 9
(48 Views)