Support Forums
start=new flag not working

Hello,

I have got this piece of code:

............

'FTP sending
RA(ALARMS:1R:W100)1H
DO1"Level(m);2047"
DO{COPYD sched=AB format=free start=new id=2 dest=ftp://XXXXXXXX/yyyy-xxx-?(timestamp).csv}

'Level schedule
RB"Nivel"(DATA:200D)10m

1L(s1,W,=1CV)
1CV("Nivel~m",FF4)=1CV+50CV 'Reading channel 4-20mA + user function adjustment

...........

For some reason the new flag doesnt update correctly and some hours it send all data it has and some others it just send the last hour values. I had the FTP schedule at the end of the rest schedules and this wasnt happening, however I had to move it to the A schd as I ned a CSV header workaround. Maybe it has to be with a mutex problem trying to acces to data while writing from shed B. Any thoughts?

Thank you

Hello, I have got this piece of code: ............ 'FTP sending RA(ALARMS:1R:W100)1H DO1"Level(m);2047" DO{COPYD sched=AB format=free start=new id=2 dest=ftp://XXXXXXXX/yyyy-xxx-?(timestamp).csv} 'Level schedule RB"Nivel"(DATA:200D)10m 1L(s1,W,=1CV) 1CV("Nivel~m",FF4)=1CV+50CV 'Reading channel 4-20mA + user function adjustment ........... For some reason the new flag doesnt update correctly and some hours it send all data it has and some others it just send the last hour values. I had the FTP schedule at the end of the rest schedules and this wasnt happening, however I had to move it to the A schd as I ned a CSV header workaround. Maybe it has to be with a mutex problem trying to acces to data while writing from shed B. Any thoughts? Thank you

Hi Contek,

Because dataTaker work in sequence A then B and every hour those schedule will meet. A will be triggered first then B, in case FTP transfer happen, it may or may not cause the existing schedule B lost its flag.

If you want to send data from schedule A and B then you should declare the shortest interval (10 m) as schedule A and the longest interval (1 H) as schedule B.
Then set FTP transfer command in schedule B.

Best regards,
Rudy Gunawan

Hi Contek, Because dataTaker work in sequence A then B and every hour those schedule will meet. A will be triggered first then B, in case FTP transfer happen, it may or may not cause the existing schedule B lost its flag. If you want to send data from schedule A and B then you should declare the shortest interval (10 m) as schedule A and the longest interval (1 H) as schedule B. Then set FTP transfer command in schedule B. Best regards, Rudy Gunawan
12
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft