LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to run a clock after setting the time

Hello,

 

   I need clarification regarding setting and getting the time. I'm working with  LabVIEW 6.1

 

   i need to frame response for severel commands.In that 2 of the commands are time related.

 

   In one command i need to set the time, that time value will be given through serial interface as an array.

 

   The other command will be given after the previous command. In the second command i need to read all the channels and i need to frame the response packet in that packet one of the information is time (hh:mm:ss).This time is the one with respect to the first command.

 

   i.e if the 1st command sets the time as 10:10:10 and the 2nd command is executed after 20 Minutes, then the time in the second command's response should be 10:30:10.

 

Note: Both the Command and the Response commands are array.

 

  Pls do the needful

 

Thankyou and regards

SupriyaV
0 Kudos
Message 1 of 2
(2,289 Views)
Hi SupriyaV,
 
I want to make sure I understand exactly what it is you are trying to do. It sounds like you just need to send a timestamp over a serial interface. Since most serial interfaces accept ASCII characters, you could use the "Get Date/Time String" on the "Time & Dialog" palette. This will return a time string that you can then use to send over your serial interface.
 
This brings up another point -- what serial interface are you using? The reason I ask is it sounds like you may be using CAN (since you mention frames, commands, packets, etc.) If there's a more specific question we can answer, certainly let us know. Otherwise, I hope this helps!
Charlie S.

Visit ni.com/gettingstarted for step-by-step help in setting up your system
0 Kudos
Message 2 of 2
(2,258 Views)