10-25-2021 12:48 PM
Your code still needs a lot of work and I am sure once the code is cleaned up and the recommendations of other followed, things will fall into place.
Can you run your VI until "RegisterValuesUI 2" contains data, stop the VI, make the current values of "RegisterValuesUI 2" default, save under a new name and attach it here. This gives us something to play with.
10-25-2021 01:28 PM
Thank you so much for your help it means a lot to me because I am still new in LabVIEW.
I dont understand what that means, which one diagram constants?
While correcting the program, I put it accidentally inside FOR loop.
I read somewhere on forum that Wait function need to be the same as offset, so I put it.
I have 8 inverters (from 2 different producers) in my PV system. All of them have different IDs and IP addresses, so I need make initialization for each separately. The rows show one inverter so I use 2 for loops during loging data; First one for choosing inverter and the second one for reading each measurements individually.
I need case structure because of reasons mentioned above (different inverters - different IDs and IPs) and some data should be scalared with different values. if you have a better and more efficient method to reduce the number of cases, I will appreciate your help. I will upload my Read1scada(subVI).vi and InverterInit (SubVI).v
Sorry, my fault.
Tomorrow I will run the program in the lab and send the desired .vi with data.
Thanks again and I accpet all sugesstions and help from you and others experts. 🙂
11-02-2021 05:15 AM
Hi,
upload as you say, the current values of "RegisterValuesUI 2".
Thanks!
11-02-2021 11:00 AM
Sorry, this is way too messy to do any reasonable work on my 1080p laptop screen. Why is the front panel set to a minimum width of almost 3k pixels and a gigantic height? I can't even bring the bottom scrollbar into view!! Why is there so much code duplication? (e.g. that swarm of property nodes near the top could be replaced by one, iterating on an array of references. You still have all these coercion dots. You still have all these local variables. Why are there so many overlapping front panel elements?).
11-02-2021 03:21 PM - edited 11-02-2021 03:23 PM
Hi mojmalije,
@altenbach wrote:
Sorry, this is way too messy to do any reasonable work…
Yes, it is!
Example before:
and after:
Is your coding style considered "readable"?
11-05-2021 04:34 AM
I am so so sorry, because I uploaded my old application accidentally. This one is my new and now it works correctly, but I want to make my program more efficient and reliable.
11-07-2021 10:49 AM - edited 11-07-2021 10:51 AM
Hi Mojmalije,
@Mojmalije1. wrote:
I want to make my program more efficient and reliable.
Several items:
11-08-2021 05:31 AM
Thank you so so much for this comments, they are really helpful!!! I accept all of them, but I have 2 questions.
Thanks a lot, I really learn a lot with your advice!