09-19-2008 03:48 PM
09-19-2008 05:08 PM - edited 09-19-2008 05:09 PM
What do you mean by "simulating the VI"? Are you referring to using the Simulation Toolkit? You mentioned that this started happening after you made your modifications, so clearly the problem stems from that. You also mentioned that you were isolating individual columns in an array and saving them to separate files. You may want to check this code to see that you're not continuously increasing the size of the array or have an accidental run-away condition such as appending the previous contents of a file to itself.
That said, the "C++ Runtime Error" implies the error is coming from some DLL that you have in your code. This is probably from the DAQ DLL from Omega.
09-22-2008 07:25 AM
09-22-2008 09:08 AM
I found these two statements quite interesting:
doogerk wrote:
The array does continuously get larger as data is collected, I just continuously append to the corresponding excel files.
Especially since it happens even when the program is not running.
Without knowing anything about the DLL that you're using I can only guess that it's simply a data size limitation.
I cannot answer your questions about the Excel file because I don't know what DLL you're using, so I know nothing about its functionality. You can always simply save the files as tab-delimited text files using LabVIEW's built-in Write to Spreadsheet File (which actually produces a text file, not an Excel file).
09-22-2008 10:11 AM
10-21-2008 08:49 AM
I, too, have an C++ runtime error, see attachment.
I have run into this error in several pieces of code and it is produced when running the code. At this point I don't know whether this code will build or whether the executable will also run into the error. I consider this an illigal error because it crashes the runtime and Labview itself, too. It is a bug in LV 8.6 runtime.
10-21-2008 09:04 AM
10-21-2008 09:04 AM
aartjan wrote:It is a bug in LV 8.6 runtime.
Has this been confirmed by NI, or is it your conclusion? Do you have a CAR?
10-21-2008 09:04 AM
doogerk wrote:
I discovered that when this error occurs, my computer is running out of ram and it is starting to create a paging file for ram. This will slow things down. I added ram, now at 2GB, and the problem takes 2 days instead of 15 minutes to occur. So I am on the right track, but not completely home free.
This indicates you have a memory leak in your code.
10-21-2008 10:00 AM - edited 10-21-2008 10:03 AM
smercurio_fc wrote:
aartjan wrote:It is a bug in LV 8.6 runtime.
Has this been confirmed by NI, or is it your conclusion? Do you have a CAR?
I added this post in the monthly buglist, so a CAR should be made soon. It is my own conclusion it is a bug, but probably not the runtime but rather Labview.exe
My error definetly is not a memory leak, so I probably should have created a new thread.
BTW. I have been able to make a fine running executable of the code that yielded the C++ runtime error.