05-30-2007 10:11 AM
ITODataSheetPtr pITODatasheetT;
pITODatasheetT.CreateInstance(
"DIAdem.ToDataSheet", NULL, CLSCTX_INPROC_SERVER);pITODatasheetT->ValueRangeGet(start, vArg1, stop, vArg2, &vArray);
with 10.0 it is fast enough, but with 10.1 and 10.2, it takes like 4-5 seconds for 10000 values (parameters e.g. start =1 vArg1 = 7 stop = 10000 vArg2 = 7 vArray = uninitialized). From what I can see, it is just this one call which is taking so long (using a debugger). The problem occurs without a debugger as well.
Any ideas? I suppose this always was the fastest way to get data into a GPI-Dll from DIAdem.
Best regards
06-06-2007 07:49 AM
Dear Diadev,
in GPI programming it also exists a similar function for set channelvalues (scalar, array...) - these direct use is faster and without errors. Do you know that functions or can try it ?
We need some time to test your code access via C - so please try that way and give me feedback...
Best Regards
AE Munich (Germany)
06-06-2007 08:20 AM
06-06-2007 09:38 AM
Hello diadev!
lpdChnG is astonishing fast! Give it a try.
I made no benchmark, because I don't like to open an OLE interface from inside a GPI DLL.
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
06-06-2007 09:59 AM
04-01-2008 01:28 PM
04-03-2008 08:40 AM
Hi diadev,
I chatted with R&D about this, and they said this was first reported a while back and was actually fixed in DIAdem 10.2.1. Try the free upgrade and see if the performance of that functions improves.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
04-03-2008 08:56 AM
That is great news!
I had installed 10.2SP1 a while ago but hadn't come around to testing it yet.
Just made a comparison:
10.2SP1 getting 1M values (and processing them): 1 second
10.1 (and the same with 10.2 I think) for the same task: over a minute right now, and program still non responsive..
Thanks a lot for the info!