LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

what does error message 2 mean

Dear Sir\Madam,
We are using the concept of vi server to communicate between RT Controller (Labview RTOS client vi's, labview RT 7.0) and the host pc(Windows Server vi's, Labview 7.1)for interacting with different modules which are placed in RT Controller. The server vi's are converted into dll's using application builder in labview 7.1. This Dll's are called in our vb application once in every 20msec after running the application for several minutes we are getting a error code 2. Once we get this error code vb application will hang and we have to restart the rt controller to re-run the application. Can anybody let me know the reason for this error code?
Regards
satya
0 Kudos
Message 1 of 3
(2,659 Views)
You can actually check any error number by going to Help>>Explain Error...

Just type in the error code you're receiving and it will give you the appropriate error message. For this particular error, the description is:

Possible reason(s):
LabVIEW: Memory is full.


As a sanity check, use the Windows Task Manager to see if memory really is getting used up. If you are, you'll need to figure out why. Since you're running this as a DLL, it will be a little tougher to track down. Use the "Show Buffer Allocations" tool to see if you're creating any unnecessary duplicates of data. Also, use the "Profile VIs" tool to see where memory is getting used most. Then focus on those areas and see if you can clean up some space.
J.R. Allen
0 Kudos
Message 2 of 3
(2,645 Views)
Hello Satya,

Does the VI Server code work alright before building it into a DLL?

Something else you could try is using VI Server to another Windows computer, and then building that into a DLL. Does this error only happen with LabVIEW Real-Time?

Regards,
Vineet A.
0 Kudos
Message 3 of 3
(2,621 Views)