From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-10-2009 05:18 AM
Im trying to get my program to write to a different file after 65,535 loops. Firstly can I create a file to start with, so operator will not be needed for the switch over? Secondly how do I get it to change from one file path to another, some kind do while satement? I have attached my program, I am also not entirely sure what the two current file paths are used for, is it one to call the file and one to save?
Cheers
Solved! Go to Solution.
08-10-2009 05:20 AM
08-10-2009 05:28 AM
Attached VI will give you some hints.
Christian
08-10-2009 07:54 AM
sorry, my task has been changed, now every 12 hours I have to save data to a file named as the date followed by either 00 or 12 depending on whether the time is between 00-11.59 or 12-23.59. Is this possible. Can someone tell me exactly what the two file paths do which are attached to my write to spread sheet function? If Iwant to do this, do I have to create a load of files already which are named, or can I set this up in the program so that no one has to supervise the change over between files?
Regards,
Sam
08-10-2009 08:11 AM
Again, the attached VI from the post before should give you some hints!
You just need to work with the Get/Date/Time String.vi or Get/Date/Time in Seconds.vi to determin when you want to create your new file,
how to create the new file will be shown in the attached VI from before.
Christian
08-10-2009 08:57 AM
But how do u input a file path which is then going to be an input for the write file vi? I need someway to get the date given from the date/time string vi into the name of the file??This is what Im struggling with. Im not sure why there is a file path in and out of the write file aswell??
Regards
08-10-2009 08:59 AM
ssteel wrote:But how do u input a file path which is then going to be an input for the write file vi? I need someway to get the date given from the date/time string vi into the name of the file??This is what Im struggling with. Im not sure why there is a file path in and out of the write file aswell??
Regards
Please post an image of your current code so we can follow along. So this is a 24 X 7 anemometer app? Just curious,
Ben
08-10-2009 09:24 AM