06-13-2023 12:40 AM
NI DAQ collection device is always in the running state. When I start to click the Run button, vi program automatically creates a file, and data is automatically imported into this file every 10 minutes. After 1 hour, the file is automatically closed and a new file is automatically created, and the collected data is imported into the new file every 10 minutes. Until 1 hour later the new file is automatically closed again and another new file is created, and the process is repeated repeatedly. Until I stop running this program, this is the vi program I do, but I can not achieve the above mentioned things, I hope there is a big man to help me, thank you
Solved! Go to Solution.
06-13-2023 01:06 AM
Hi laixx,
@laixx wrote:
I can not achieve the above mentioned things,
You need to implement all your requirements!
Until then:
06-13-2023 01:48 AM
I don't understand what you mean. I once tried to keep the TDMS file reference in a shift register, but it didn't work, so I don't know how to use the shift register correctly in my vi program?
06-13-2023 03:01 AM - edited 06-13-2023 03:02 AM
Hi lai,
@laixx wrote:
I don't understand what you mean. I once tried to keep the TDMS file reference in a shift register, but it didn't work, so I don't know how to use the shift register correctly in my vi program?
This is a simple sketch:
You need to add proper initialization and error handling…
06-13-2023 04:23 AM
Thank you for your reply, but there is an error in the vi program
06-13-2023 05:07 AM
06-13-2023 09:49 AM
What NI chassis are you using? I would like to run a simulation. So you want to be able to create new file every (1) hour. Is that right? I just want to make sure I clearly understand what you need help with. If it's so, I think I can help with that.
06-13-2023 04:07 PM
Much easier way to do this.
06-13-2023 04:26 PM
Mcduff, you are awesome. Thanks for sharing this.
06-14-2023 02:58 AM
Due to jet lag, did not reply in time, thank you very much for your help, this is really great, I have some additional questions, I hope you can get the answer, may I first click on the VI program run button, vI program running for a period of time after clicking the VI program abort button, a total of 10 files generated. A second click on the VI program's run button will not overwrite the previous 10 files, but will continue to generate new files after the first 10 files