I was programming with this component.I wanted to get Minute,Hour, Date and some others. See the images uploaded.
Within the dialog, I was able to assign the Minute and Hour to a variable. But for the Month,Date,and Year, there was not the option.
I am only showing the error/picture for the Date.
Thanks in advance.
New RTC Component Macro
Moderator: Benj
-
- Posts: 162
- Joined: Thu Jul 01, 2010 1:57 am
- Has thanked: 23 times
- Been thanked: 16 times
- Contact:
New RTC Component Macro
- Attachments
-
- Get Hour.png (188.27 KiB) Viewed 3062 times
-
- Get Date.png (187.77 KiB) Viewed 3062 times
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: New RTC Component Macro
Hi billduck,
The parameters is an input that's used if you have different functions that can be returned.
Just hover mouse below the Name or Type to see different return option values available: In your case the Expression needs to be 0, since you want the normal clock hours & not any of the alarms assigned to your variable.
The Return value will be the variable you assigned for the function. e.g Hour.
Where there are not any parameters to enter, the component will only return the function name i.e in this case the Date: I have moved the topic from bug reports, since not a bug.
The parameters is an input that's used if you have different functions that can be returned.
Just hover mouse below the Name or Type to see different return option values available: In your case the Expression needs to be 0, since you want the normal clock hours & not any of the alarms assigned to your variable.
The Return value will be the variable you assigned for the function. e.g Hour.
Where there are not any parameters to enter, the component will only return the function name i.e in this case the Date: I have moved the topic from bug reports, since not a bug.
Martin
-
- Posts: 162
- Joined: Thu Jul 01, 2010 1:57 am
- Has thanked: 23 times
- Been thanked: 16 times
- Contact:
Re: New RTC Component Macro
Thanks. I think I was asleep at the wheel. And will study and learn this.
-
- Posts: 162
- Joined: Thu Jul 01, 2010 1:57 am
- Has thanked: 23 times
- Been thanked: 16 times
- Contact:
Variable arrays
Hey medelec35 - I am looking for a tutorial on using arrays.
Any help is appreciated.
Any help is appreciated.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: New RTC Component Macro
There is a small section on arrays here that might be of use.
https://www.matrixtsl.com/wiki/index.ph ... _Variables
https://www.matrixtsl.com/wiki/index.ph ... _Variables
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel