09-30-2010 01:51 AM
Can Format date/timestring function able to control the loop execution of a VI?
Example,
a VI is currently running at 25 August 2010 and print a txtdata "100825"
follow then when the system time running at 2359hrs, 25 August 2010 changes to 0000hrs, 26 August 2010.
and to print a txtdata "100826".
how ?
when the system time changes a new date, problems occur.
Solved! Go to Solution.
09-30-2010 02:06 AM - edited 09-30-2010 02:07 AM
Hi ADXING,
???
You want to control a loop iteration with a function that converts a number (timestamp) to a string? What exactly do you want?
You may compare the string generated by FormatDateTime with a previously generated one (using a shiftregister) - then you would get a boolean output to stop or continue a loop...
"when the system time changes a new date, problems occur."
Well, my computer runs fine, even for longer than one day What kind of problems do you see?
09-30-2010 02:11 AM
something like a loop iteration with a function that converts a number (timestamp) to a string
as u mentioned.
running non-stop...
prints dates...
auto update new dates when the system dates changes...
09-30-2010 02:19 AM - edited 09-30-2010 02:20 AM
09-30-2010 02:30 AM
sure..thanks.
step 1. when VI runs, its auto generated a folder with the PC system date (e.g. 100825) means August 25, 2010. Done.
step 2. as the VI still runs, the PC system date reaches 2359hrs, August 25,2010 and changes to 0000hrs, August 26, 2010. Done.
step 3. as the PC system date changes the new date - August 26,2010. I wan a NEW folder auto generated (update NEW) with the PC System date ("100826). Fail.
means total with have 2 folder created.
1st folder with a folder name: 100825
2nd folder with a folder name: 100826
this sequence to keeps running and NEW folder will auto generated (create) as a new date reaches of the PC System date.
09-30-2010 02:32 AM
09-30-2010 02:39 AM
any better simple example pictures to show?
kind of dn really understand what it means..
hmm...
09-30-2010 03:06 AM
09-30-2010 03:13 AM
oh..
hmm... where can i specified the created folder to save at?
a directory?
09-30-2010 03:16 AM