02-07-2012 01:40 PM
I am having problems using the ARC sub vis, I tried to set them up individually but when I run the code it does not work, and LabVIEW crashes. I will attach my small piece of code. What I am trying to do, is have the code read and display the blaze and density of all three gratings, and have that information available before the user must choose the actual grating with which s/he will read the wavelengths. I am VERY new to LabVIEW, thank you very much.
Error code "Exception: Access violation (0xC0000005) at EIP=0x01C8C33A"
The code is not close to where I want it to be in terms of completion, eventually I will have it saving in TDMS and etc.
02-07-2012 02:17 PM - edited 02-07-2012 02:18 PM
First thing I'd do is configure all the Call Library Function Nodes for the maximum debugging (EDIT: the tab is actually labeled "Error Checking") level, and see if that gives you a more helpful error message. Also try running with execution highlighting enabled (the lightbulb icon in the toolbar) so you can watch it execute and perhaps determine from that which of the function calls is causing the error. If you can determine which function call is generating the error, carefully check the library documentation and make sure that you have properly configured the call library function node to match the expected parameters.
02-07-2012 02:31 PM
I changed the error checking to maximum and ran the program, the same thing happened. A dialog box appears and tells me LabVIEW has quit, with the "Exception" code I pasted above
02-07-2012 02:54 PM
Start taking out individual calls to the DLL, one at a time, until you find the one that's causing the problem. (Or do it in reverse - start with just one call, and keep adding more until it crashes)
Also make sure that the calling convention is set up properly - most likely C, but it could be WINAPI. This should be in the DLL documentation.