LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error code 5

In our measurement software we get error code 5 after about 3 hours running the program.

Does anyone know the problem?

 

thx

0 Kudos
Message 1 of 9
(3,447 Views)

Hi darja,

 

maybe there is a file already open? Smiley Wink

 

Do you use proper error checking in your app? Where does the error happen? When does it happen? What is your app doing?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(3,434 Views)
0 Kudos
Message 3 of 9
(3,433 Views)

😉 no file is open. i profed that.

the app is controlling different measurement devices.

i have a loop every loop step reads out a config file. in one loop step different sequences are passed.

but the error is random. the program is running some hours then the error occurs. i tell him to continue. thene it takes another hour when the next error occurs.

one loop step taks about 30 sec.

 

in one of these sequence steps the error occurs. but there is no connection to any file. 

 

thanks

darja

0 Kudos
Message 4 of 9
(3,423 Views)
check the cable
0 Kudos
Message 5 of 9
(3,416 Views)

Hi darja,

 

which function is giving your the error 5? Where does the error occur?

 

Anyway:

When you can continue your program without problems, you can simply catch that error and handle it correctly (i.e. cancel it programmatically)!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 9
(3,414 Views)

the error occures when i connect to a gpib device.

but not every time.  i can connect to it 100 or 200 times, then the error occures.

i will implement the error handling and try to change the gpib device.

0 Kudos
Message 7 of 9
(3,406 Views)

Hi darja,

 

do you have to "connect" to the GPIB device each loop iteration? Usually you only need to write commands and read responses from the device...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 9
(3,395 Views)
sorry, i meant that. we write to the device...
0 Kudos
Message 9 of 9
(3,391 Views)