Hi Wolfgang,
> We use derived parameters with our own COM functions to get IADS
> running with more than 1 update per second. These Functions deliver a
> value of
> type double.
Sounds like you are having performance issues. Are you having a hard time
getting the displays to update more than 1 time per second for some reason?
If so, this is very unusual... in fact, I've seen over 15k parameters on the
same desktop running over 10 updates per second. Let me know if that's the
case and we can analyze the issue.
> Now we want to create a text string. How? And which Display Object
> will display the String?
> This one doesen�t work:
>
> STDMETHODIMP MyFunction::Compute( /*[in]*/ VARIANT* dataIn, /*[out]*/
> VARIANT* dataOut )
> {
> ...
> static char str[] = {"SF237"}; // Example string
> dataOut->vt = VT_BSTR; // Result is a string
> dataOut->??? = ???; // Result
>
> return S_OK;
> }
Ok, you're really close ;)
Actually, you need to return a "BSTR" (wide character) string:
static char str[] = {"SF237"}; // Example string
dataOut->vt = VT_BSTR; // Result is a string
dataOut->bstrVal = ::SysAllocString( str ); //
Result
If you get stuck, there is an example of returning a string:
http://www.symvionics.com/products/IADS/Downloads/SampleFunctionVC.zip
Check out the SampleFunction2 class.
> Hopefully someone knows how to do it. We have to display many of this
> this strings. Every String consists of 5 independent charcters, driven
> by telemetry data values. If we must use the TEXT Object with a
> propert bag for every single character it will not only be more work
> to create and maintain the derived parameters and the displays, but it
> will slow down the update rate.
Hmmm... Yes, this will work fine, but it's hard to believe that this method
would be faster than the tableLookup in the Dynamics system. What type of
PC are you running on?
Don't let my comments stop you though. If it works better/faster than just
use it. I'd be curious to see the original AnalysisWindow so I can run some
performance testing,
Jim
>
> -----------------------------------------------------------
> --- Wolfgang, SYS500 Model550, IADS 6.1 ---
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "IADS" group.
> To post to this group, send email to
ia...@googlegroups.com.
> To unsubscribe from this group, send email to
>
iads+uns...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/iads?hl=en.
>
>