我想在labview环境下调用一个CCD的dll文件。
下面这个函数是在内存中为图像开辟一块内存。
INT is_AllocImageMem (HIDS hf, INT width, INT height, INT bitspixel, char** ppcImgMem,
INT* pid)
Parameters:
hf- Camera handle
width -Width of image
height -Height of image
bitspixel -Colour depth of image (bits per pixel)
ppcImgMem -Contains pointer to start of memory location
pid -Contains the ID for this memory location
我不知道对于char** ppcImgMem这个参数在CLF节点中怎么设置。
类型肯定是字符串的,字符串格式选择“C字符串指针”时,char** ppcImgMem返回的字符串是空。字符串格式选择“Pascal字符串指针”时。返回为乱码。选择其他2种句柄格式时,程序出错。
研究了几天,也没有把程序调通,请各位高手帮忙!