LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Translate" current system time into seconds.

Solved!
Go to solution

I actually have two doubts/questions:

1- I need to create a timer that translates into seconds the current time of the system (i.e. 10:00  = 36,000s and 00:00 a.m. = 0 s) , I've tried this by using the format date/time string function but I can't separate the time from the date, anyone has any ideas on how to do this?

2- Also, this is the first time I'm going to be using a daq-6008 on a separate computer which doesn't have LABView installed, for this I'm supossing all I need to do is install the driver on this other computer and with the .exe file of the program I'm creating should be enough right? In the sense that the daq will still work apropiateley without the need of installing LABView.

 

Thanks for you help!

0 Kudos
Message 1 of 3
(3,349 Views)
Solution
Accepted by topic author magb321

magb321 wrote:

I actually have two doubts/questions:

1- I need to create a timer that translates into seconds the current time of the system (i.e. 10:00  = 36,000s and 00:00 a.m. = 0 s) , I've tried this by using the format date/time string function but I can't separate the time from the date, anyone has any ideas on how to do this?


So your time is relative to midnight? I'm assuming you reset once you pass midnight? If so, you can use the Get Date/Time In Seconds and the Seconds to Date/Time to get a cluster that you can easily peel off:

 


2- Also, this is the first time I'm going to be using a daq-6008 on a separate computer which doesn't have LABView installed, for this I'm supossing all I need to do is install the driver on this other computer and with the .exe file of the program I'm creating should be enough right? In the sense that the daq will still work apropiateley without the need of installing LABView.

The target computer will also need the LabVIEW Run-Time Engine (to run your app) and DAQmx (driver for the 6008) installed.

 

Message Edited by smercurio_fc on 05-18-2010 11:34 PM
Message 2 of 3
(3,342 Views)

Ahhhh so beautiful and simple...

 

Thank you!

0 Kudos
Message 3 of 3
(3,331 Views)