Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Data logger and scheduler
PostPosted: Tue Jun 05, 2018 7:51 am 

Joined: Tue Jun 05, 2018 7:13 am
Posts: 4

Offline
Hello,

I developed an application in ix-Developer using data logger and scheduler.
Data logger extract data every seconds and scheduler create once a day a csv file with extracted data.
I need assistance because there are some issue that I can't solve on my own.
These are:
1. I'm able to launch data logger through a dedicated pushbutton on the screen. How can I run the application whitout clicking on the pushbutton?
2. Same for the scheduler. I need scheduler to run once a day whitout clicking on the pushbutton.
3. Data logger extract data every seconds, but on the csv file timing do not correspond.
-------------------------------
Id,Time,LogItem1,LogItem2,LogItem3,LogItem4
1,"02/06/2018 15.26.45",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
2,"02/06/2018 15.28.09",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
3,"02/06/2018 15.28.12",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
4,"02/06/2018 15.42.21",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
----------------------------------------
Thank you very much.
Kind regards,
Alessandro Podestà


 Profile  
 
 Post subject: Re: Data logger and scheduler
PostPosted: Wed Jun 06, 2018 9:05 am 
User avatar

Joined: Thu Nov 16, 2017 3:32 pm
Posts: 82

Offline
You can preform actions on tags using the "Action" column on the tags page. Select the Other check box and click on the ellipsis on the action column. Set your condition and select your action. See below:

Image

_________________
iX Quick Links:
iX Reference Manual: https://www.beijerelectronics.com/en/Support/Help___online?docId=68072
iX Video Tutorials: https://www.beijerelectronics.com/en/Products/software/ix-hmi-software/Vimeo___video___page


 Profile  
 
 Post subject: Re: Data logger and scheduler
PostPosted: Mon Jan 28, 2019 10:18 am 

Joined: Tue Jun 05, 2018 7:13 am
Posts: 4

Offline
Thank you for your reply.
Data logger worked for 6 month.
Every our data logger downloaded .csv file on one SSD and on a pendrive.
When we tried to recover data from both, we found out only last 20 days.
No instruction to delete data from SSD and pendrive were provided.
Space on hardware was enough to store all data.
It seems that someone deleted it voluntary. Our customer swear he did not deleted data form SSD and pendrive.
Does something similar happen to someoneelse?

Thank you very much.
Kind regards,
Alessandro Podestà


 Profile  
 
 Post subject: Re: Data logger and scheduler
PostPosted: Tue Jan 29, 2019 10:39 am 

Joined: Fri Jan 27, 2012 4:20 am
Posts: 175

Offline
Check the "Max Number of Logged Rows" in the Data Logger's property.
If number of record made is bigger, the oldest record will be deleted and replaced with the current data.
The default value is 500. If bigger value inserted, an appropriate warning appeared after compilation.
regards, Waldemar


 Profile  
 
 Post subject: Re: Data logger and scheduler
PostPosted: Sun Feb 10, 2019 10:17 am 

Joined: Tue Jun 05, 2018 7:13 am
Posts: 4

Offline
Dear Waldemar,

thank you for your reply.
Max Number of Logged Rows is bigger (1600000) but a script has been added.
It iss the following:
public partial class Tags
{
bool UsbPresent=false;
void efa_scheduler_on_ValueOn(System.Object sender, System.EventArgs e)
{
Globals.Tags.efa_appoggio.Value=1; // do not delete data logger at first start
UsbPresent = Directory.Exists("\\Hard Disk"); // check usb presence
}
void efa_scheduler_on_ValueOff(System.Object sender, System.EventArgs e)
{
if (Globals.Tags.efa_appoggio.Value==1) // after first start
// and with usb inserted
{
if (UsbPresent) // if usb present
{
Globals.DataLogger1.Clear(false);
}….
The script should delete data logger only if data has been trasferred on usb.
Do you think that this could cause the issue?


 Profile  
 
 Post subject: Re: Data logger and scheduler
PostPosted: Mon Feb 18, 2019 10:13 am 

Joined: Fri Jan 27, 2012 4:20 am
Posts: 175

Offline
At first localize the problem.
What goes wrong, recording data into database table, reading data from the database or recording into into external drive?
If You reduce period of data logging from 1 to 60 sec what happens?
Do You use the original database or created Your own?


 Profile  
 
 Post subject: Re: Data logger and scheduler
PostPosted: Mon May 06, 2019 8:58 am 

Joined: Tue Jun 05, 2018 7:13 am
Posts: 4

Offline
Dear Wlederer,

everything worked fine. It seems only that someone deleted manually recordered data from SSD card, or in your opinion could be the IX program that deleted (for a bug for exemple) this data.
Thank you very much.
Kind regards,
Alessandro Podestà


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron