LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get data from a pointer to an array using dlportio?

I use DLPORTIO.DLL to access the parallel port on a WinXP. The purpose is to read data coming from an fpga.
The transfer rate is quite high (more than 500kB/s).
DLPORTIO.DLL can buffer data from the parallel port.
I would like to use this fonctionality to speed up the data transfer by ready 16 x 8 bits that have been buffered. I get the pointer to the element from the dll. 8bits means U8 in Labview and, of course, 16 => U16 and 32bits => U32. But what to connect when I want 128bits??? How to use the pointer cominf from the dll and say to Labview it is the pointer to the first element of my 16 element array??
Thanks to all
Dai Tran Duy
Dai

LV 7.1 - WIN XP - RT - FP
0 Kudos
Message 1 of 2
(3,246 Views)
LabVIEW does not have a 128 bit numeric so you will need to create a work around of sorts. What I would suggest is creating some wrapper dll functions. These funcitons would take say an array of U8s from LabVIEW, convert them into your 128 bit number and then call your dll with that.

In addition take a look at the manual on exteranl code in LabVIEW, Using External Code in LabVIEW, which discusses how to pass arrays to a dll. In addition there is a shipping example in LabVIEW 7.0 that shows how to pass all sorts of LabVIEW and C data types. The example even includes C code snipits.
0 Kudos
Message 2 of 2
(3,246 Views)