LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI to start between set times

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

 

 

0 Kudos
Message 1 of 2
(2,025 Views)

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.

 

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 2 of 2
(2,015 Views)