03-07-2023 02:29 AM
Hi all,
i trying to make a data acqusition loop for realtime pump on-off control.
in this i am facing a issue, in the daq loop the log data .csv file is continues but tis stops updating the clock of my 3504 eurotherm controller tag in labview ..can anyone pls help me out ..
the output is as below
VACUUM PUMP ON/OFF STATUS
"CLOCK TIME " "ON DAY " "OFF DAY " "ON TIME " "OFF TIME " PUMP STATUS
16:11:01 FRIDAY FRIDAY 16:10:00 16:12:00 ON
16:11:01 FRIDAY FRIDAY 16:10:00 16:12:00 ON
16:11:01 FRIDAY FRIDAY 16:10:00 16:12:00 ON
16:11:01 FRIDAY FRIDAY 16:10:00 16:12:00 ON
16:11:01 FRIDAY FRIDAY 16:10:00 16:12:00 ON
16:11:01 FRIDAY FRIDAY 16:10:00 16:12:00 ON
16:11:01 FRIDAY FRIDAY 16:10:00 16:12:00 ON
16:11:01 FRIDAY FRIDAY 16:10:00 16:12:00 ON
16:11:01 FRIDAY FRIDAY 16:10:00 16:12:00 ON
16:11:01 FRIDAY FRIDAY 16:10:00 16:12:00 ON
16:11:01 FRIDAY FRIDAY 16:10:00 16:12:00 ON
16:11:01 FRIDAY FRIDAY 16:10:00 16:12:00 ON
16:11:01 FRIDAY FRIDAY 16:10:00 16:12:00 ON
16:11:01 FRIDAY FRIDAY 16:10:00 16:12:00 ON
16:11:01 FRIDAY FRIDAY 16:10:00 16:12:00 ON
03-07-2023 02:57 AM
Add the vi
Looks like something off screen
03-07-2023 03:12 AM
Hi sanvish,
@sanvish wrote:
in this i am facing a issue, in the daq loop the log data .csv file is continues but tis stops updating the clock of my 3504 eurotherm controller tag in labview ..
Your "logging loop" only writes the same data again and again!
Reason: you don't "OBEY DATAFLOW!"
When you want to log "realtime" data (aka current measurement data) then your logging loop needs to get accesss to current measurement data!
What's the purpose of that FOR loop iterating 6 times when you only use the result of the last iteration???
03-07-2023 03:14 AM
oops missed to attach
03-07-2023 03:17 AM
hi Gred,
I just used the same method in the below link for my VI..
03-07-2023 03:19 AM - edited 03-07-2023 03:20 AM
Hi sanvish,
@sanvish wrote:
oops missed to attach
My error analysis is still valid: you don't OBEY DATAFLOW!
There is no loop around your huge case structure, but there should be a loop.
And the loop around that logging code needs to be removed!
On your VI:
@sanvish wrote:
I just used the same method in the below link for my VI..
No, you don't!
In that example the "data generation" and the "data logging" is within the same loop!
03-07-2023 03:22 AM
Hi Gerd,
Ok will make that ..thank you..
03-09-2023 04:40 AM - edited 03-09-2023 04:41 AM
Hi Gerd,
Even after making subVIs,the corrections i made as per the suggestions . now also the data logging is not correct..only the last value is recorded in .csv file.. we need continues recording of data