LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Acquisition - Labview produces duplicate entries after continuously running for 3 days

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.

0 Kudos
Message 1 of 10
(1,225 Views)

No. Unless you show - or better post - your code.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 10
(1,216 Views)

Hi, this is a sample of my code.

0 Kudos
Message 3 of 10
(1,211 Views)

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?

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 4 of 10
(1,189 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 10
(1,180 Views)

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. 

 

LVNinja_0-1693401525852.png

 

0 Kudos
Message 6 of 10
(1,139 Views)

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

0 Kudos
Message 7 of 10
(1,046 Views)

Thanks for your response.

This code has been developed by previous colleagues and I have to work with this.


0 Kudos
Message 8 of 10
(1,045 Views)

Thanks for your response.

0 Kudos
Message 9 of 10
(1,044 Views)

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

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 10
(1,027 Views)