NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Aufgerufener ist ungültig. [Error Code: -17502, System Level Exception.]

Hi!

 

Im trying to control an installed software package for a camera over an activeX-Server.

 

I have chosen a couple of methods and integrated it into the teststand sequence over the TestStand ActiveX Adapter. So far so good.

 

Now, there are a couple of methods, which work properly... but theres one problem:

 

 

My Problem: I got one method, which is unfortunatly responsible for reading out measurement data. I dont have to say that this is an essential function for me. This method doesnt work. 

 

I call the Method and give it some proper parameters. After that the following error occurs:

 

Error: Aufgerufener ist ungültig.
[Error Code: -17502, System Level Exception.]
 

 

Its the German Version of TestStand. I guess it means that "the called one isnt valid, Error Code -17502 System Level Exception"

 

 

I have to admit that Im not really experienced in working with the activeX adapter.

 

 

I made a screenshot in the attachement below.

 

 

HELP!!!!!!!!!!!!!!!!!!!!!

 

 

Andy K.

 

 

 

 

0 Kudos
Message 1 of 6
(3,942 Views)

Hi Andy,

 

What are the parameters for iGetStandardStatistic ?

 

juergen

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 6
(3,930 Views)

There are three integer parameters to overgive to the method and 6 real-number parameters which are given back from the method. So the parameters aren't so complicated.

 

Furthermore I found out the following:

 

In the Problem described above I tried to call the method over the TestStand ActiveX Adapter.

 

Meanwhile I tried to create an LabView VI in which I overgive the ActiveX Reference and do the job over Invoke nodes... Surprise!Surprise! It worked.

 

So I found a solution for the problem, but I can't explain and I definitely dont know why it doesnt work with the ActiveX Adapter

 

What can be the problem?

 

 

greetings

 

andyk

0 Kudos
Message 3 of 6
(3,925 Views)

Hi,

 

Maybe you have the wrong reference to your ActiveX Adapter step.

 

Maybe you can post a small example

 

 

regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 4 of 6
(3,919 Views)

Hi,

 

TS stores Numbers as double (8Bytes)

If you are using int, char or float TS will cast automatically

BUT if your Method is using a variant can not cast !

See this thread: http://forums.ni.com/ni/board/message?board.id=330&message.id=24860&query.id=1109895#M24860

 

Please post a screenshot of the ActiveX Module settings.

 

Regards

Juergen

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 5 of 6
(3,905 Views)