08-01-2022 04:18 PM
Since error 5001 is simply a timeout it is quite possible that all you guys have different problems. There are many things that would cause the Arduino to send nothing back to the LabVIEW code on your PC.
What have you tried to narrow it down???
1) Are you sure your sensor even works? Monitor the output signal and breathe on it.
2) Did you check the wiring between sensor and Arduino? Ohm it out.
3) Is the Arduino working? Can you verify communication to the PC?
4) Have you probed or used Highlight Execution to see where the error is thrown in your LabVIEW code?
Check these things and then either your problem will be obvious and easy to fix or at least you will have the proper info to ask a valid question so we can help.
05-09-2023
02:33 AM
- last edited on
05-09-2023
09:55 AM
by
NI_Community_Su
I am facing the same problem.
When I use the DHT11 module routine, I get error5001; however, when I use other modules, such as photocell module, Arduino Uno and the host computer can communicate normally and the program can run normally; I quit LINX and just use the IDE of Aruino Uno to burn a section of the DHT11, and the serial port monitoring received the correct temperature and humidity information; I think the routine here is probably wrong.
If anyone can find this error, I would be very grateful if you could contact me! I am a student from China
05-09-2023 02:43 AM
Hi PJ,
@SigmaPJ wrote:
I quit LINX and just use the IDE of Aruino Uno to
I think that is the best option you could use!
Get rid of LINX and do all the important stuff in the ArduinoIDE, then just communicate between computer/LabVIEW and Arduino using the (virtual) serial port…
05-09-2023 11:22 PM
Hi Sig,
Try reinstalling Linx, and see if you still have the same problem. I think I've had error 5001 before. I wasn't using DHT11 though. reinstalling Linx will probably solve the problem. Try it and let us know.