periodic

Xenomai RTDM timed looping task in device driver

How would I set up a task that, say, turns a led on and off every second, in a device driver (module)? I've tried using rtdm_task_init and it successfully sets the task, but when I use rtdm_task_wait_period, it returns -EINVAL (meaning it's not seen as periodic by the system). ...

Good library for date ranges & periods

This question is kind of a subset of 90308 I'm looking for a good date library in any language which can handle periodic concepts Date Ranges/sets which are independent of year: dr = 1 May - 31 August (4 May 2010) in dr true (4 May 2011) in dr true (4 March 2012) in dr false Day sets: ds = m tu w sa su (Mon, 4 ...

How to send on a specific day in php?

Hi, I want to a e-cards or something like that. The user can choose the e-cards, after chosen, he must enter the some fields like name(to and from), email(to and from), message and I want to let user to choose which date to send the e-cards. How to send the e-cards on specific day? I need to write a script that run every new day? How to...

What's a good data structure for periodic or recurring dates?

Is there a published data structure for storing periodic or recurring dates? Something that can handle: The pump need recycling every five days. Payday is every second Friday. Thanksgiving Day is the second Monday in October (US: the fourth Thursday in November). Valentine's Day is every February 14th. Solstice is (usually) every June ...

What's the fastest way to approximate the period of data using Octave?

I have a set of data that is periodic (but not sinusoidal). I have a set of time values in one vector and a set of amplitudes in a second vector. I'd like to quickly approximate the period of the function. Any suggestions? Specifically, here's my current code. I'd like to approximate the period of the vector x(:,2) against the vector t....