11-02-2010 03:53 AM
Hi,
I am trying to write a labview program for SR510 lock in amplifier. I have attached the program which I have written. I have done preliminary testing and it
is responding well. Now I want to do something more to it. For eg., I can regulate a High Voltage power supply by applying 0-10V using lock in amp. What
I want to do is I will give start voltage, say,1volt (1V corresponds to 1480volts in the power supply), the power supply, in turn, will be connected to an
electron gun and will power up the electrons, fall on the sample and thus the spectrum is obtained. There should be a delay of 1 sec after applying the
voltage as the power supply takes 1 sec time to stabilize. The energy, 1480V is applied to the elecron gun for, say, 10sec (though the 10sec time is not
fixed, it can vary). Hence the total time taken for getting a spectrum is 11sec(1sec+10sec). Again after 11sec, the applied voltage to the electron gun should
be 2volts(although the step size of the voltage applied would be preferrably 0.00025V which is possibe) and the process continues till the applied voltage
becomes 9volts and the process comes to halt. Though this can be done manually, I want this whole process to be automatic. But I am not getting the least
idea to proceed forward. I would be glad if anybody can help me. The program is written in serial mode using RS232.
Thank you.
Solved! Go to Solution.
11-02-2010
04:14 AM
- last edited on
07-08-2024
02:31 PM
by
Content Cleaner
Hi jkfhdskh,
You should use state diagram architecture which is best suitable for your application.
1) You can have "start" state which will initialize your hardware and controls/indicators.
2)Then 2nd state could be "Apply voltage". In this state you can have your decision making
calculation as in how much voltage should be applied and all
3) Third state could be "wait" In which you can define for how much time your application must
Wait before applying next voltage
4) last State could be "stop". This could be the "Power Off" state for your application.
I think this will help you to design your application.I will not this the best solution, but definitely one of it.
For State diagram architecture Refer this.
Best of luck
11-02-2010 04:36 AM
hey thanks buddy! atleast i got some idea how to proceed