10-08-2020 02:12 PM
Where a person passes by for t period of time and the graph will show a pulse of the period. I’m trying to make the graph look like the sensor HC-SR04 when it detects some one passing by produce a 1 amplitude square wave against time.
10-08-2020 02:23 PM
10-08-2020 03:20 PM
@ehanpaul8 wrote:
Where a person passes by for t period of time and the graph will show a pulse of the period. I’m trying to make the graph look like the sensor HC-SR04 when it detects some one passing by produce a 1 amplitude square wave against time.
Are you trying to get a graph that looks like this? (Using a HC-SR04)
Or are you trying to simulate what the HC-SR04 actually outputs? (The ECHO Pin graph, below)
The amount of time that the ECHO Pin is HIGH is used to calculate a distance, based on the speed of sound (it's an Ultrasonic sensor, after all).
If you're trying to make the first graph, in LabVIEW, while using LabVIEW to control a HC-SR04, you'll need to
If you've never used a HC-SR04 - keep in mind that their sensing capability is not robust - I've gotten a lot of failed reads while using them (where the sensor never saw the return signal, so it reported a distance further than it can reasonably detect).
-joeorbob