LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pointer to a 32 byte buffer

Dear all,
 
I need to initialize a dll parameter like this - a pointer to a 32 byte array.
 
Could somebody please tell how to configure that?
 
Thanks,
Mathan
0 Kudos
Message 1 of 33
(4,294 Views)
Dears,
 
In the attached dll, am using scardstatusa function. In initializing its parameters, am struggling with the last two parameters. details
0 Kudos
Message 2 of 33
(4,276 Views)
Attachment probs in last post.
 
Here look for details
0 Kudos
Message 3 of 33
(4,273 Views)
Hi mathan,

what about wiring an U8 array with length of 32?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 33
(4,260 Views)

Hi Gerdw,

You mean like this????

Thanks,

Mathan

Download All
0 Kudos
Message 5 of 33
(4,255 Views)

But if i did like what i have attached it comes up with the following error that i have attached and the application itself will get closed.(LabVIEW Crashes)

Thanks,

Mathan

0 Kudos
Message 6 of 33
(4,248 Views)
Hi mathan,

IMHO you should also wire the *bATR input with a predefined array ("Init array" with U8 datatype and 32 elements length)...
You only supplied the length parameter, but no pointer to the buffer itself. You have to supply this buffer! The dll call will not create it on its own, hence the error message.


Message Edited by GerdW on 05-05-2008 10:20 AM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 33
(4,247 Views)

Dear GerdW,

I did like what you said, but it returns with the same error i have attached in my last post - "data buffer is too small for the returned data".

But this time there is no crash. How to proceed?

Thanks,

Mathan

0 Kudos
Message 8 of 33
(4,235 Views)

Dear GerdW,

see what i have done. Is it correct?

Thanks,

Mathan

0 Kudos
Message 9 of 33
(4,227 Views)
Hi mathan,

I would wire bPTRLen as input too - and I would make it an I32 (instead of U8) as the description speaks of "DWord"Smiley Wink
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 10 of 33
(4,187 Views)