FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

Status = Safe Mode (Software Error)

Hi
I have a FP-2015 controller with 9 different I/O modules connected to it. A very large application (clouded VIs)was written by a previous colleague. When I run this application on a computer that is connected to the FP-2015 controller, everything seems to work fine. Then, I embedded the application in the controller and launch it at every start-up. The FP controller will run for some time (not fixed, can be an hour or 2 days) and then stops. When I look at the controller's status in MAX, it is at "Safe Mode (Software Error)". I think there's an coding error, but it's really tedious to go through all the code. I found out that MAX has a function called "View Log Error" and I have attached this file. Does it tell where the error occurs?

I read that file, and apparently it's something about VISA -serial. The FP-2015 serial port is interfaced with a weather station (simply downloading data from it).

Thanks
0 Kudos
Message 1 of 5
(4,070 Views)
I forgot to attach that file.
0 Kudos
Message 2 of 5
(4,067 Views)
As you noticed, the error is occurring at a VISA Read command. Unfortunately I am unsure of what is occurring or why.

I think the best way to figure out what is wrong is to see if you can isolate the issue. We already know it's a problem with the serial communication, so that helps out a lot. If you could make a simple serial application that simply reads (or writes) data to (from) the Weather Station, then you could be well on your way to isolating the issue and thereby solving the problem.
0 Kudos
Message 3 of 5
(4,051 Views)
As pointed out in last messages, the error is probably related to VI Read function. In our application, only one VI calls VI Read function and it is very simple (Attached below). I can not find any error in this VI.

Then, I tried to run the application in 3 different ways:
1) Target Labview for windows, with laptop connected to Fieldpoint controller by Ethernet
2) Target Fieldpoint controller and download the software to it
3) Build the application on Fieldpoint controller and launch it automatically at every start-up

The error only occurs in case 3, but not in cases 1 and 2. Why? Is the problem more related to Hardware than Software coding?
0 Kudos
Message 4 of 5
(4,009 Views)
Hi TaanTao,

If a FP-20xx controller crashes twice in a row (without rebooting in between), it will boot up the next time in safe mode with the status LED flashing to indicate the error type. This will prevent the startup executable from restarting unless the power on the system is cycled. Do you notice the LED flashing? If so, how many times?

It would be a lot easier to identify and troubleshoot the error if you can find the error number. Is the controller constantly communicating with the weather station? Do you notice if the crash occurs after a particular event occurs? If your code is very complicated, it may be a good idea to add "checkpoints" into your code which would either write to a marker file or to the front panel so you can get a better idea of when and where the error is encountered. Also, try placing an Error Handler (Time and Dialog subpalette) into your code so the error will pop up in a dialog box and possibly be easier to identify.

The following KB describes a similar situation to what you're encountering. Does the error code seem familiar?

Why Do I Get the Error 32810 When I Run the FieldPoint VIs Embedded on the FP-20xx?

Thanks,
Lesley
0 Kudos
Message 5 of 5
(3,982 Views)