06-01-2009 05:55 AM
Hi,
I am attempting to create a Vi to only run between a set of time that a user specifies e.g. Between 11:55 PM 01/06/09 and 05:00 AM 02/06/09.
I have had a look at using the get time from host PC then compare the times set and the current time. But I am getting some difficulty comparing the hours.
Is there a straight forward solution or VI that is currently available on the NI website?
Any help or code would be greatly appriciated.
Thanks
C
06-01-2009 06:48 AM
Use get time/date in seconds, this will work with all standart compare functions like > or<. Also subtracting 2 time-date data types will yield the difference in seconds.