LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Which type is consistent with UCHAR when importing DLL file?

Dear All,
      I have a problem about setting a variety type when importing DLL file.
      The function prototype is :   BOOL CAN_Init(UCHAR Baudrate)
      I don't know how to set "UCHAR" type.
      I have tried to set it to U8, but it is seem that it can't work.
      Please give me some suggestion, any useful suggestion is thankful.
      The vi I wrote and the dll file is attached.
      Thank you!
 
Hugo
Download All
0 Kudos
Message 1 of 6
(2,865 Views)
Would you please give me some suggestion?
Thank you.
0 Kudos
Message 2 of 6
(2,855 Views)

hi Hugo,

Did you try it with Cstr?

Mike



Message Edited by MikeS81 on 01-17-2008 01:35 AM
Message 3 of 6
(2,849 Views)
Dear Mike,
         Thank you for your replay.
         I have seem some document about it, and they say the UCHAR can be used as string, but I am not sure.
        For I have not many chance to try it, I have to prepare enough ways for it.
        Are you sure that?would you please give me some link about it?
       Thanks.
 
 
 
Hugo
0 Kudos
Message 4 of 6
(2,840 Views)

Hi Hugo,

unfortunately I´m not sure and i have no link for it. But i think it works with string.

Mike

0 Kudos
Message 5 of 6
(2,832 Views)
Mike,
       Thanks.
       Let me try.
 
 
 
Hugo
0 Kudos
Message 6 of 6
(2,822 Views)