简体   繁体   中英

longer distance ultrasonic LabVIEW

I'm reading the distance with Arduino ultrasonic kit. i want to show the longest distance during the session. i used shift register to have a previous value then I compared them with new the new one, but I think my algorithm is wrong.

Thanks for your help.

程序

You should store the longest distance in the shift register, not the previous value. Basically in your code, it should be enough to connect "Select" function output to the input of the shift register, like this: 在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM