NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

17502 System Level Exception

Hi Everyone,

 

I've done the searches and read all the posts related to the"-17502; System Level Exception" error message.

 

I've quadruple checked the CVI function and the function call in TestStand to make sure the data types matched and that pointers were indeed pointers and not passed by value.

 

Since the error stayed, I decided to do a mock code where I removed the parameters in the CVI function to the point where the only parameter is now the CAObjHandle thisContext, as shown in the image below.

 

Even with a single parameter, I continue to get that error.  And yes, the error is related to the function 'MemTest'.

 

Since I narrowed the list of parameters to this single one, is there something I'm over-seeing with the CVI function and the way it is called by TestStand?  (I am rusty at TestStand..  I didn't think I was that rusty 😉 )

 

It does not make it inside the function since the first step is a message saying that it got in (kinda like Hello World).

 

-  sigh  -

 

R

 

 

Message Edited by Ray.R on 09-24-2009 03:10 PM
0 Kudos
Message 1 of 7
(4,192 Views)

Hi Ray,

 

Are you getting this error when you edit the step or when you run the sequence?

 

Is your Adaptor setup as the default setting (Configure | Adaptors...) ie set to use Execute Step In Process....

 

Your function prototype seems to be OK, did you create the code using the Create Code button?

 

 

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 7
(4,185 Views)

Hi RayF,

 

I knew I could count on you...  😉

 

I get the error when I run the sequence.  I had a fully working sequence and added this one additional step, which is a new test.

 

The Adaptor should be okay as it has not changed from the original code.  I can check, but ut should be fine.  As a matter of fact, if I choose continue instead of terminate, the program continues happily afterwards.  So I think I did something stupid which is small and should be easy to fix..  It just evades me at the moment.

 

I'm "old school".  I created the function prototype from within LW-CVI from scratch.  I didn't think of using the Create Code button.  I will try that. 

 

I will also try removing everything else from within the function and simply have an "Hello World" message popup.  😄

 

Thanks RayF,

 

RayR

0 Kudos
Message 3 of 7
(4,170 Views)

Ray Farmer wrote:

Is your Adaptor setup as the default setting (Configure | Adaptors...) ie set to use Execute Step In Process....

 


I double0-checked..  It was already set correctly.

 

Using the Create Code button worked.  So I will try porting the code to the working function.

0 Kudos
Message 4 of 7
(4,168 Views)

Hi RayF,

 

I think I know what the culprit is.

 

I am trying to use a function to communicate over the serial port from within one dll whereas the serial port was already opened by another function within another dll.  Ooops..  😮  Maybe that's not the reason, but....  😉

 

R

0 Kudos
Message 5 of 7
(4,160 Views)

Hi all

 

I developed a dll library in C++;

I insert it in Step Type with dll adapter;

I run the sequence in batch model and I find the same trouble;

is it possible insert a property like in labview to set the dll as reentrant?

I don't want to insert the dll in labview as reentrant and then insert the vi in the step type;

have I build the dll with some particular compilation option ?

 

Thanks a lot for your support.

 

Paolo 

 

 

0 Kudos
Message 6 of 7
(4,151 Views)

Hi Paolo,

 

I'm not sure I fully understood the issue you're having.

 

I went back to look at the code and found more of the source of the problem.  It seems to be related to a function call that uses pointers.  It was not related to TestStand.

However, I still have a bit of a mystery because the same function call is used by another function and I implemented it in the same manner.  The fucntion call in my case is not through TestsStand.

 

R

0 Kudos
Message 7 of 7
(4,141 Views)