11-10-2010 02:44 AM
Hi
I have two labview programs:
1) Measer program writtten by someone else and used by me
2) RS510 lockin amp. written by me.
Experiment:
I have a HV power supply and a lock in amp connected in series such that I can control the output of the power supply by varying the voltage in lockin amp. The power supply is connected to electron gun which releases electrons onto the sample. Now the job of the Measer is to supply power to detector which detects the particles coming out of the sample (due to the focussing of electrons on the sample) and also count those particles. The data can be saved by pressing the SAVE BUTTON on the front panel of the Measer program.
Lockin Progam:
Using this program, I apply set of voltages (say 1V to 8V with a stepsize of 1V), each voltage being applied on the sample for say, 10 sec( this time can be varied by the user) and after the set of applied voltages is finished. After applying each voltage it keeps on checking if the applied voltage is greater than the max. voltage or not.
My Requirements:
Now I want to control the Measer program using the lockin program in such a way that as soon as each voltage is applied to the sample I want the 2nd START BUTTON on the FRONT PANEL of Measer to switch on, collect data for 10 sec and then automatically save the data in the file which I specify. Only after the saving of the data, it should proceed to next voltage according to the stepsize mentioned in the front panel of lockin amp. In short, I dont want to press the SAVE BUTTON on the front panel of Measer because if that is the case, I have to go to the computer and press the button for every 10 sec till the set of applied voltages are finished.
I am attaching the lockin program, Measer program, and the list of all sub vi included in the Measer program.
Too much to ask for but I am new to labview and hence so may hurdles.
Warm Regards,
Srinivas