LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting an error log

Can someone tell me what the attached error log means?  I got it after several hous of logging data to a binary file.  The sample rate is 20 per second and there is four I32 numbers logged for each sample.  The resulting binary file got up to a little over 23 MB and then the LV application crashed.  I'm using Win-XP and LV 8.6.

 

Thanks,

 

DJ

0 Kudos
Message 1 of 11
(3,581 Views)
What does your code look like? It would be easier to determine if we could see it.
0 Kudos
Message 2 of 11
(3,577 Views)

That message reads as if you are attempting to add channels to a task that is being destroyed. So check your code to determine if the config happens once when the code starts and only kill the task when you are done.

 

if that does not float your boat, are you using a USB based DAQ device?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 11
(3,575 Views)

I'm logging two data values via a serial port. The other two values are for date and time.  Attached is the initialization and read sub-vi's.  The VISA Init TTR.vi is in the initialization sequence and the VISA Read TTR.vi is in a timed loop running at 50 mSec.  I'm using a VISA Close function on the outside side of the of the timed loop.

 

There are other tasks (i.e. DAQmx and USB related) that are defined in this project.  However, they are disabled using the project's Conditional Disable Symbols.  Maybe I didn't properly disable something somewhere.  If so, why is it taking several hours for the error to freeze the system?

 

Also, I cannot open the resulting binary file.  Attempting to open it promptly freezes the application and there are no error messages.

 

I just changed this particular project to log the serial data and this is the first attempt to log data for several hours (i.e. over the weekend).  It all works well when logging data for several minutes.

0 Kudos
Message 4 of 11
(3,562 Views)
Those subVIs don't tell us anything, since they're just subVIs. The higher-level code is what's important.
0 Kudos
Message 5 of 11
(3,548 Views)

I'm sorry; it's not clear to me what is meant by higher level code.  Attached is a screen shot of where the subvi's are used.

 

It it possible to determine from the error log what type of task is under question?

0 Kudos
Message 6 of 11
(3,539 Views)
Yup, that VI is what I'm referring to as the "higher-level", since that's the actual top-level VI. It seems there's a whole lot more to the code, judging by the position of the vertical scrollbar. Can you upload that VI, or better yet, the whole project since the conditional disable stuff is in there, or do you have stuff in there that's proprietary? Since you said you have the DAQ stuff disabled, I'm finding it quite curious that you'd be getting DAQ-related errors.
0 Kudos
Message 7 of 11
(3,527 Views)

I've been doing much testing since getting the error and the problem has not recurred.  At this point I'm considering it a fluke.   The project is an over bloated application withover 200 subvi's, server vi's and type definitions and I wish not to send it via the public Discussion Forums.  It became over bloated with time because of many changes and additions that was made over time. (OK, I admit it's a mess that I'm embarrassed to release.)

 

If the application proves successful, I'll strip it down and create a new dedicated project.

 

I appreciate the responses.

 

DJ

0 Kudos
Message 8 of 11
(3,499 Views)

dj143 wrote:

I've been doing much testing since getting the error and the problem has not recurred.  At this point I'm considering it a fluke.   The project is an over bloated application withover 200 subvi's, server vi's and type definitions and I wish not to send it via the public Discussion Forums.  It became over bloated with time because of many changes and additions that was made over time. (OK, I admit it's a mess that I'm embarrassed to release.)

 

If the application proves successful, I'll strip it down and create a new dedicated project.

 

I appreciate the responses.

 

DJ


STOP!

 

Is there any difference between what you have now and what you had when you last saw the issue?

 

If so, therein lies your answer.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 9 of 11
(3,491 Views)

Hi Ben,

 

The only change I've made is the addition of code to automatically create and append smaller files.  In other words, it now creates a series of files as it logs.  I did this because I need to release this project soon and it's clear to me that the application significally slows down when it works with a very large file.  I have made no changes to the task definitions or the conditional disable symbols.

 

DJ

0 Kudos
Message 10 of 11
(3,481 Views)