08-30-2023 05:03 AM
I am controlling a pilot process plant using labview and the data acquisition seems to have duplicate entries after running the process and labview continuously for 3 days. I am recording data for every 30 seconds from multiple sensors and actuators. Could someone help me with the same.
08-30-2023 05:17 AM
No. Unless you show - or better post - your code.
08-30-2023 05:23 AM
Hi, this is a sample of my code.
08-30-2023 06:07 AM
So you find duplicate entries in the %Y%m%d_%H%M%S_Versuch.txt file? Your code can be greatly improved, but apart from this, I don't see how duplicates could be generated there. Can you post an example output file?
08-30-2023 06:19 AM - edited 08-30-2023 06:24 AM
Hi aparna,
@aparna.muraleedharan wrote:
I am controlling a pilot process plant using labview and the data acquisition seems to have duplicate entries after running the process and labview continuously for 3 days. I am recording data for every 30 seconds from multiple sensors and actuators. Could someone help me with the same.
I don't think someone is willing to help you with code like that:
(navigation window, highlighted area denotes a FullHD screen)
Generic suggestions: Cleanup your code. Use (more) subVIs instead of duplicating stuff. Implement better data handling…
I wonder how your code will run "correctly" at all with (several!) loops running forever stacked inside other loops also set to run forever!
08-30-2023 08:18 AM
My suggestion is to replace the code where you save the data:
Instead of using individual numeric/Boolean , save them as arrays,
convert them into string and that's it. It may be very difficult to debug that part of the code, easy to make mistakes.
09-12-2023 07:07 AM - edited 09-12-2023 07:09 AM
Hi Paolo,
Thanks a lot for your response. Row 6836 onwards, you can see that the values just duplicate, though the actual values are fluctuating.
Thanks in advance for any help!
Regards
Aparna
09-12-2023 07:08 AM
Thanks for your response.
This code has been developed by previous colleagues and I have to work with this.
09-12-2023 07:09 AM
Thanks for your response.
09-12-2023 07:38 AM - edited 09-12-2023 07:39 AM
Hi aparna,
@aparna.muraleedharan wrote:
This code has been developed by previous colleagues and I have to work with this.
When you "have to work with this" then you have to accept its bugs.
When you would improve the code you have the chance to eliminate those bugs…
It's your decision!
@aparna.muraleedharan wrote:
Labview produces duplicate entries after continuously running for 3 days
Simple solution: don't run the VI for more than 2 days 😉
(Btw. it 's not "LabVIEW" that "produces duplicates" it's still your VI which is buggy.)