LabVIEW code