LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView datalogging app. using usb 9215A crashes randomly

Hi,

we have a standalone LabView Datalogging application running on laptop (IBM/Lenovo r50E with 512MB RAM, Win XP OS) an using two USB 9215A modules for data acquisition (512Hz/channel sampling rate) that monitors vibration activity near to the railway. Ten second chunks of data are continuously acquired on all channels and limit testing is applied to the data. The data is logged into a LVM file if pre-set limits are exceded. Logged files are ZIP-archieved and transfered via GPRS connection using ftp protocol. Chart indicator is used for vizualization of the data. Windows XP profesional OS is used on target PC, DAQmx 8.2 is installed, LV 8.0.1 is used to build application executable ...

As simple as it seems, yet we've been experiencing random crashes of the application for quite some time now with the following errors: -50150, -50256 which result in total standstill of the Win OS. Errors occur randomly anywhere between 2 hours and 6 days after the application starts.

What do the errors imply to, what could be the cause ?!? The need to manually restart PC after crash makes this solution inconvenient since the System is remotely located and battery powered.

Thank you for your answer.

Robert
0 Kudos
Message 1 of 10
(3,887 Views)
Could you post your code??
0 Kudos
Message 2 of 10
(3,880 Views)

Hi unclebump,

attached please find the code used to build the app. I've added some comments (bottom left ) in english to explain what's done within the step(s).

I hope we can pinpoint the trouble ...

thx, Robert

0 Kudos
Message 3 of 10
(3,862 Views)
Here is where we will need some help from some other people. I only have 7.0
0 Kudos
Message 4 of 10
(3,857 Views)
Hi unclebump,

I've down-graded the VI version to 7.0 (saved in LV 8 for 7.1 and in LV7.1 for 7.0), this should be sufficient for you to view the code.

thx,

Robert
0 Kudos
Message 5 of 10
(3,847 Views)
This one says it is version 7.1.1.
0 Kudos
Message 6 of 10
(3,839 Views)
While adding english comments in LV 7.1 I must have forgotten to re-save for 7.0 ... sorry for confusion ... please find the proper version attached ...

thx, Robert

0 Kudos
Message 7 of 10
(3,820 Views)
It doesn't look too bad. You have a few cases using a build array function. This will cause memory allocation while your vi is running. Try to replace these with the Inititalize array outside the loop and replace array subset inside the loop. It would be interesting to see the vi made without the express vi functions for saving data.
0 Kudos
Message 8 of 10
(3,815 Views)
Your error handling could be a bit simpler if your used more dataflow with the wiring.
0 Kudos
Message 9 of 10
(3,808 Views)
Hi  unclebump,

we've cleaned up the code as you suggested (apart from Express VI's), we are sincerely hoping to see some improvement ...

thx,

Robert
0 Kudos
Message 10 of 10
(3,768 Views)