02-09-2010 09:22 AM
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.
02-09-2010 10:32 AM
02-09-2010 11:18 AM
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
02-09-2010 03:10 PM
Hi,
Maybe you have the wrong reference to your ActiveX Adapter step.
Maybe you can post a small example
regards
Ray Farmer
02-10-2010 01:28 AM
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
02-11-2010 04:32 AM