I have recently heard the same request repeatedly: "How do invoke an action in LabVIEW at regular intervals?" (The simple answer by the way: Timeout case of the Event Structure). But this quickly becomes a little more complicated when you want to perform potentially different actions at different intervals from many places, without having to copy/paste similar code over and over.
So here is a very lightweight class to do exactly that. This "TimerNotification" class allows for an unlimited number of these timers, to run independently and concurrently. The object takes a VI Path for the Callback VI to execute when the timer trigger hits.
Sorry but when i open it , there is few forget or unvalid deftype in your package (current_state,TimerNotification,ErrorType,Timer_Factor_Value,_callbackData,).
I have LV2011 French edition.
Where have you put exemples?
Regards
Eric Bobillier
Hello Eric, I'll try this on a French LV2011 and try to replicate your finding; sorry for the issue. The example should get installed to a "<labview>\examples\Timer Notification" folder. There should be a project there with 2 subfolders. Please open the project. I'll let you know what I find/fix as soon as possible.
Hello Eric, please try timer_notification_class-1.0.0.13 attached above. I was able to reproduce your issue on a French LV 2011 and addressed it. The problem may be related to me using VI Package Manager, so if problems continue, I will simply post the .llb and the examples directly on this page instead.
Hi Phil
Thanks for posting this class.
When trying to install the .vip file, I get the following error message in VIPM:
This package is not compatible with your operating system or any LabVIEW version installed on your computer.
I have LabVIEW 2011 and 2012 (both 32-bit) installed on a Windows 7 pc.
Are there any additional system requirements not listed?
Regards,
Patur Vase
www.hfjensen.dk
Hi Phil
The error was on my side. When trying to install the .vip from a shared network drive, I get the error message:
This package is not compatible with your operating system or any LabVIEW version installed on your computer.
But when I try to install the .vip file from a local drive, there's no problem.
Again, thanks for posting the class
Regards,
Patur
Thank you both for trying this out!!