11-13-2009 04:05 AM
Hi all !!!
I have a power supply PU-EQ22 which is used for electron gun. I hve attached the program which I have made for controlling the power supply. The power supply has some parameters like Energy, Focus, Wehnelt voltage etc. I have displayed few of them in the block diagram.
Now for eg., in the initial state, the power supply is displaying the parameter energy. Now I want change parameter to Focus. So in principle, I should press the Focus button and my power supply should also display the same parameter. but that is not happening.
can anybody tell me how to design my front panel such that i can control my power supply from my labview program itself??
thank you.
Solved! Go to Solution.
11-13-2009 09:07 AM
If you have LabVIEW full or above, I would recomend you use the event structure. You have a lot of ducplicate code and there is no need to have the VISA Configure Serial Port and VISA close in each case. Have those functions outside the loop and execute them only once. There's alno need to use the wait and read unless the command is actually supposed to tell the instrument to return data. Your case statement with constants inside to stop the while loop is just way too complicated.
If your commands do not work, I would suggest you use a program like Hyperterminal to debug them before writing any code.