Hi. I would like to set iXPanel date and time by script.
I have written this simply code:
void Data()
{
System.DateTime dt=new DateTime();
dt.AddYears(2011);
dt.AddMonths(10);
dt.AddDays(3);
dt.AddHours(8);
dt.AddMinutes(0);
dt.AddSeconds(0);
Neo.ApplicationFramework.Common.Service.ServiceContainerCF.GetService<Neo.ApplicationFramework.Interfaces.IDateTimeEditService>().SetSystemDateTime(dt);
}
but when I run it, a "Set Date/Time Failed" dialog window appears.
Could you help me?
Thank you!
Setting date and time by script
Re: Setting date and time by script
Here's is an example project with script to set the date/time.
- Attachments
-
- DateTimeController.zip
- (21.51 KiB) Downloaded 1771 times
Best Regards,
Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
Re: Setting date and time by script
Thank you.
Best regards
Best regards
Re: Setting date and time by script
Has anyone got this to work? With a T7B screen the coredll.dll isnt there?