Date and Time as a channel

Dino Morio

Posted on 16.01.2018 15:40

Hi.

Is it possible to get the Current Date and Current Time as a channel?


I know you can set a visual control to show the current date and time by setting its Value type, but I would like them as a channel instead, so that I can do some calculation. Is this possible?

DEWESoft Support
Technical support
Posted on 17.01.2018 12:08

Hi,

you can add time as a math channel. There are three options to chose from: "time", "abstime" and "localabstime". Time will output the relative number of seconds, while the other two will output the number of days since the 30th December of 1899.


Attached files:
Dino Morio

Posted on 17.01.2018 14:50

Thanks.

What I would like to do is to generate a text file with the file name containing the date and time. For eg. dd_mm_yyyy hh_mm_ss while the sequence is being run.

Is this possible?

I know how to generate a text file but not the date and time part of it.



DEWESoft Support
Technical support
Posted on 18.01.2018 06:40

Hi,

ah, ok, that's a bit different. You can do it through the sequencer's calculation block. I've attached an example which reads the current date/time in your format and displays it in the last wait block.


Attached files:
Login to reply to this topic. If you don't have account yet, you can signup for free account .
This website uses cookies to ensure you get the best experience on our website. Learn more