LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PDWORDArr

Have a nice day .

My task is to develop software to capture the signal from the CCD sensor.
By CCD sensor attached dll to work with it . I implemented functions
initialization parameter setting , but that's not going to capture the signal .
Here is a description of the function GetData document describing all the dll:
"3.24 CCD_GetData
function CCD_GetData (ID: Integer; pData: PDWORDArr):
boolean; stdcall;
CCD_GetData function is used to obtain data
( registration results ) .
pData - pointer to an array of DWORD. The length of the selected
Memory must be equivalent to the number of pixels
CCD image sensors and the number of installed registrations
(4 * Npixels * Nframes). Feature is available only for cameras
a CCD -array . Used in conjunction with
function CCD_InitMeasuring. In new developments and for
all cameras based on CCD should be used
function CCD_InitMeasuringData. If your computer is connected to multiple devices , the ID
is used as an identifier of a CCD device . ID can
take the value 0,1,2 .
If only one device , the ID = 0 .
If the operation completed correctly, it
is TRUE.
"
call configuration dll attach , please tell me if I have
that there is no way with the parameters ? I function returns 0 and an empty array.
Number of pixels 512 , the number of frames - 1.
With sensor is also written a C program , there are measurements in normal mode.
Manufacturer dll writes that " memory is allocated in bytes.
GetMem (pData, Round (Np * SizeOf (DWORD) * Nf));
Double word 4 bytes. "
Help me figure out what's what.

Download All
0 Kudos
Message 1 of 2
(2,185 Views)

 

Your syntax of the function is all strange. Looks a bit like Pascal but also not quite.

First you seem to have the parameters wrong. You show you have two parameters configured starting with the array but this definition shows rather three parameters and starting with the ID value.

 

CCD_GetData (ID: Integer; pData: PDWORDArr): boolean; stdcall;

 

Also ID seems variable_name:type while Arr seems type:variable_name????????????????

 

No idea what pData or colon in there would mean.

 

In general your post is very unclear and somewhat incoherent. First the function is called CCD_GetData() with very strange parameter syntax. Then you say something about GetMem() with the parameter configuration that looks like what you did in the LabVIEW diagram but there it says CCD_GetData()!!!!!

 

I can't say if your idea of the function as implemented in LabVIEW is wrong, or the function "declaration" you wrote. One thing is for sure, passing a 0 value to the second parameter of your function is definitely not equivalent to "Np * SizeOf (DWORD) * Nf".
You should calculate this value as "Np * 4 * Nf" and pass this to the function. Also make sure that your array is really from the type DWORD which is an uInt32 in LabVIEW.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 2
(2,142 Views)