LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Program structure help

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

0 Kudos
Message 1 of 2
(1,988 Views)

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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 2
(1,965 Views)