03-03-2013 04:56 PM
Hi,
I am building a program where there will be several I-V scan for each value of temperature. I would like to make the data saving fully automatic.
To explain in more deatils:
I want the program to generate a new file on its own , give a file name depending on the temperature variable , save the data and again go for the next I-V scan and do the same way.
So, if at a particulat temp say 300K, there are 5 iterations, my program should be such that it generates a new file evrytime say 300K_001(1st iteration), 300K_002,...300K_005(5th iteration) automatically on the hit of "run" button.
Can some one help me on how to implement such a code.
Thanks!
Solved! Go to Solution.
03-03-2013 07:26 PM
People do things like that all the time.
Look at the Number to String conversion functions in the String palette and the Build Path function in the File palette.
You should think about error handling. What happens if you try to create the 300K_001 file and a file with that name already exists? Do you want to over-write the file, change the name to 300K_001_a, or ask the operator for input?
Lynn
03-03-2013 07:36 PM
03-03-2013 07:46 PM
What have you tried? This is not really all that difficult. You will learn a lot more if your try something and then we ehlp you with it than if someone does it for you. Please post your VI.
Lynn
03-03-2013 09:05 PM
Hi Lynn,
Currently I don't have the access to my programs. Will post the vi tomorrow once I go to my lab.
Thanks
03-04-2013 11:55 AM
Hi Lynn,
I could get it done by using "write to measurement file". It creates a new file with every iteration on its own.
Thanks