09-27-2011 06:28 PM
Hi,
I'm very new to LV and would like to get some advice for how best to structure my program. I would like to be able to set the voltage level on a power supply using VISA (serial). I would like the front panel to have a knob where the user can turn it to the level they want, say 2.5V. I would like this value to be passed to the power supply within .5 seconds or so. I would also like to display the voltage and current as reported from the power supply.
What is the best way to structure my program? I'm wondering if using a master/slave stucture is best or if it is better done some other way.
Does anyone have any example code that could be shared that would accomplish something similar?
Thanks in advance.
Kevin
09-28-2011 02:46 AM
It sounds like all commands are small and fast, so i'd make a single event structure, a timeout event can update the indicators. Check the LV examples for Visa communication and event structure and you'll be halfway there. 🙂
/Y