130 likes | 451 Views
LabVIEW – DAQ, Sub-VIs, etc. Seth Price Department of Chemical Engineering New Mexico Tech Rev. 1/8/14. Data Acquisition. Basic DAQ Loop Read data Display data Write to file Repeat until conditional. Data Acquisition. Advanced features Controlled timing “Record” and “Playback”
E N D
LabVIEW – DAQ, Sub-VIs, etc. Seth Price Department of Chemical Engineering New Mexico Tech Rev. 1/8/14
Data Acquisition • Basic DAQ Loop • Read data • Display data • Write to file • Repeat until conditional
Data Acquisition • Advanced features • Controlled timing • “Record” and “Playback” • Remote viewing • Data collected, polled by terminal elsewhere
Control Loop • Basic Control: • Read data • If conditional is met, adjust parameter • Display data • Write data to file • Repeat until another conditional is met
Additional Control Considerations • Timing and time constants, sampling rates • Emergency stop criteria • Remote operation • Network security
LabVIEW – Sub-VI • Small program inside of another program • Useful for calculations that are used frequently • Similar to functions, subroutines, etc in other languages • Form of documentation • Cleans up block diagram • Custom icon for ease of understanding
Conversion VI • Write a vi (sub-VI) that will convert V to KV • Sub-VI must have a custom icon and correct connector pane
Shift Register • Allows you to see data from previous loop iterations • Value stored on left shift register appears on right shift register during the next loop iteration http://uncyclopedia.wikia.com/wiki/File:Pacman.gif
Running Sum VI • Write a VI that counts how long a switch is turned on • Needs to be able to count for more than one switch flip • VI runs until a stop button is pressed