LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 5001 Labview

Hi , I have a problem . I am struggle for two entire days . I am new to LabView and I can't figure out what I have to do when I occur the 5001 error when I am running the linx example. The first one with the Led it run ok , but the one with the temperature sensor dht11 linx  doesn't . Is there anybody who can help me ? Thanks !

0 Kudos
Message 1 of 14
(6,104 Views)

What linx example?  What does error 5001 say?  When I look it up, it is an undefined error.

 

If you attached your VI, we could see what you are doing and then be able to offer suggestions.

 

 

0 Kudos
Message 2 of 14
(6,085 Views)

Hi , i attach images .. the first example run on the arduino uno but the second example i have the 5001 error.

Thank you .

Download All
0 Kudos
Message 3 of 14
(6,059 Views)

Hi, have you found any solution for your problem? I m encountering the same but I can't seem to work it out.

0 Kudos
Message 4 of 14
(5,507 Views)

Error 5001 is a "User-defined Error" (I'm not sure if that is the Official Name -- just a second while I look it up ...).  If you open LabVIEW Help and search for Errors, you can find "Custom Error Codes", which says that codes -8999..-8000, 5000..9999, and 500000..599999 are available for Users to define for their own errors.

 

For example, you can have a Dialog Box that outputs "OK?" and returns a Boolean that, if False, you want to (programmatically) raise an Error.  Use "Error Cluster from Error Code" (on the Dialog & User Interface palette) to create your own Error (be sure to help the User by making the "Message" clear).

Custom Error Code exampleCustom Error Code example

 

Bob Schor

Message 5 of 14
(5,484 Views)

Hello, I have similar error (5001) for the same example with DHT11 (from LINX examples). Have you found any solution for this?

 

Regards,

Panayiota

0 Kudos
Message 6 of 14
(5,360 Views)

These guys are all using the Digilent LINX package which uses the 5000+ LabVIEW user error codes for its errors.  There is a Generate Error VI in the package which adds the Error Type enum to 5000 so, 5000 = Unknown, 5001 = Timeout, etc.

 

NIquist_1-1612797310093.png

The timeouts you are all getting is most likely caused by your physical connection to the hardware but we really can't tell since you haven't posted any code examples or shown how you have your hardware hooked up.

 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 7 of 14
(5,352 Views)

Dear NIquist,

 

Thank you for your reply. What i used is a ready example VI the 'LINX-Interaction DHT11.vi'. I have changed the digital port from 29 to 2 as shown in the pic below, and while running the vi i got the error 5001 without any measured values. The COM port 11 is the one that the Arduino UNO is connected (i verified this from device manager) and here is, as well, the hardware i used (image below). Any help will be valuable, since i could not found a solution for similar issues.

 

Regards

 

 

et0-zwc9_1-1613465966105.png

 

 

et0-zwc9_2-1613466635504.png

 

 

0 Kudos
Message 8 of 14
(5,321 Views)

I am also still having the exact same issue. Has anyone figured out a solution to this yet? I am just running that same example code, with the following setup:

 

DHT11 circuit.jpgScreenshot (159).png

0 Kudos
Message 9 of 14
(5,245 Views)

Hi ikohli,

I am facing the same problem of error 5001 with DHT11 sensor. Have you found solution to this problem?

0 Kudos
Message 10 of 14
(4,021 Views)