LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading characters in a buffer

Hi,

I have a VI attached here that uses the call dll function to run a third party software.

In the fourth part of the VI, I am trying to read a line from the third party software.
I have defined char*buffer which would point to the address where to store the line that will be sent by the third party and I have also defined the maximu length of the buffer.

Now I need to read the chars that are stored in this buffer, I am not sure how to read the buffer, can any oe help me in doing this,

Thanks
Ajit
0 Kudos
Message 1 of 2
(2,394 Views)
Thanks for attaching the dll and the headers. It helped.

Take a look at a LabVIEW 7 shipping example called Call dll.vi . You can find it by opening LabVIEW >> help >> find example >> Communicating with External Applications >> Using External Code >> Integrating Dlls. It has an example on using char* from a dll in LabVIEW. It shows the C code and the VI.
0 Kudos
Message 2 of 2
(2,394 Views)