LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to add date/time stamp to file name without time change creating new files

As I wrote, you just have to add logic that will initialize the shift register only the first time...See the attached example.

In the attached example I make use of the fact that a boolean shift register will the very first time it is loaded have the value False...so if it's false I initialize the time stamp and set it to true...If you want to start over again you will need to unload the VI from meory to get the shift register back to false...However, you can just as easily let a button control the initialization instead...set the button to true when you want a new time stamp.
0 Kudos
Message 11 of 17
(1,549 Views)
I really appreciate your responses & patience. I have version 6i (6.0), so I can't see the example.
0 Kudos
Message 12 of 17
(1,549 Views)
George, check out the following VI.

Regards,
RamziH.
0 Kudos
Message 13 of 17
(1,309 Views)
Thanks guys. We got it to work! Your comments led us in the right direction. I'm attaching the final result (small change, really).
Download All
0 Kudos
Message 14 of 17
(1,549 Views)
Your solution will produce a new date stamp every time the VI is called and the trigger is false...Is that what you wanted? I thought you would like to keep the same time stamp all the time also if the trigger is false some of the times the VI is called.

I have attached a LV6.0 formatted version of the previously posted code.
0 Kudos
Message 15 of 17
(1,309 Views)
Sorry if I wasn't clear. We needed only 1 time stamp per trigger event. We looked at your example, and it's nice. I appreciate the effort & help, and I'm sure we'll need your example in the near future. Thanks.
0 Kudos
Message 16 of 17
(1,309 Views)
Thank you for your help. Your example helped us understand how to use LabVIEW. Thanks.
0 Kudos
Message 17 of 17
(1,309 Views)