Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

front panel problem

Solved!
Go to solution

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.

0 Kudos
Message 1 of 2
(4,256 Views)
Solution
Accepted by topic author jkfhdskh

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.

0 Kudos
Message 2 of 2
(4,245 Views)