12-22-2005 12:54 PM
12-27-2005 04:05 AM
Hello Lilie,
You can find, in the links below, a response to you question:
http://digital.ni.com/public.nsf/websearch/129785F0AFABB90A8625686E005AE407?OpenDocument
http://digital.ni.com/public.nsf/websearch/AC5008A6FC55616F86256BBC005B61D8?OpenDocument
Hope this help
Regards
Sanaa T
National Instruments
Sanaa T.
National Instruments France
12-27-2005 11:39 AM
I did not find a direct answer to the question in those links.
The answer is:
The ActiveX adapter supports Automation compatible types. This does not include language specific types such as C structures (although the DLL adapter does support C structures).
For ActiveX, you can pass Step.Result.Error as a single PropertyObject parameter, and then use PropertyObject api to access the sub-fields in your code module. If you need help doing this, please specify the ADE you use for creating your server (ie. LabWindows/CVI, VisualStudio/C++, ..).
01-04-2006 02:55 PM
01-04-2006 04:31 PM
In your CVI code, you will need to convert the error parameter to a CAObjHandle. The following code sets the appropriate values.
TS_PropertySetValNumber (errorObj, NULL, "Code", 0, -15);
TS_PropertySetValString (errorObj, NULL, "Msg", 0, "A very bad error");
TS_PropertySetValBoolean (errorObj, NULL, "Occurred", 0, VTRUE);
Allen P.
NI
01-05-2006 01:07 AM
Hi,
In the following link: http://digital.ni.com/public.nsf/websearch/AC5008A6FC55616F86256BBC005B61D8?opendocument&Submitted&&...
There seems to be a small error in the text on line: - "Calling Sequence: RunState.Caller.RunState.SequenceFile"
I think this should be : - "Calling Sequence: RunState.Caller.RunState.Sequence"
Regards
Ray Farmer
04-06-2006 04:07 PM