04-19-2012 09:51 AM
Hello, I want to know to get only "seconds" from the time function. I tried to find other time function but I couldn't find anything that provides only second to be written in the text file.
04-19-2012 09:57 AM
It may not be the best way but it works...
04-19-2012 09:57 AM
04-19-2012 10:00 AM - edited 04-19-2012 10:02 AM
I also have an idea:
"I couldn't find anything that provides only second"
Reading the context help, when moving the mouse of the functions palette, is not so easy, isn't it? There are only 11 functions in the timing palette...
04-19-2012 10:09 AM
Thanks for all helps. Anyway how to get it started from 0 instead of the real time?
it should be 0, 1, 2,...
04-19-2012 10:29 AM
Ah you want relative seconds! Get date time in seconds. Subtract "Start time" display format of the indicator "%<%S>t" (Advanced editing mode)
04-19-2012 10:34 AM
Sorry I don't really understand it completely. Where is "start time"? Could you please show it as a image?
04-19-2012 12:42 PM
Hi Bombboo,
"start time" is the timestamp at the start of your program or DAQ loop.
When you subtract current time and "start time" you will get the elapsed time of the loop.
Wait, there's an ExpressVI called "Elapsed Time", maybe you could read it's context help???
Or search the forum for common things like your question right now?
04-19-2012 06:17 PM
Ok this is what I have got... but it still doesn't provide the right time I want. You can see in my attachment in text file. The time for each measurement is not correct as I set up the waiting time between each data saving. It's not constant. it should start at 0, 1, 2, 3, 4... if I set the waiting time to be 1000ms. In this case I set it to be 500ms but the result is wrong.
Sorry for asking something too simple and too much but I'm quite new to this software. Thanks 🙂
04-19-2012 07:03 PM
sorry I attached the wrong text file.