I had issues when I tried to use Ultrasonic sensor and LabView. Ultrasonic sensor worked well in Arduino IDL, but it did not work in LabView. I found a solution.
Look at the steps.:
1. Go to Program Files (x86), National Instruments, LabVIEW 2023 (20,21,22), examples, MakerHub,LINX and LINX - Ultrasonic.vi.
C:\Program Files (x86)\National Instruments\LabVIEW 2023\examples\MakerHub\LINX
2. Open it. 
3. Open its block diagram and make double click on Read.vi

4. Open its block diagram again and make double click on Digital Read Pulse Width.vi

5. Open its block diagram again and set the stimulus pulse to a 1 (active high).

6. Close and save everything.

I used LabView 23.