LabVIEWwilliam hill官网
直播中

hzlxiuzhu

9年用户 52经验值
擅长:252297
私信 关注
[问答]

调用库函数节点报错?

我想问一下调用库函数,我哪儿调用错了。竟然一直报错,我能保证的是我的程序没有问题。只是问题发生在这个调用库函数上了。
下面是指令描述:
bwtekReadTemperature
int bwtekReadTemperature
(
int nCommand,
int *nADValue, \ AD Value Range: 0 - 4095
double *nTemperature, \ Temperature will be in Celsius
int nChannel
);
This function is for reading the temperature of the CCD Detector OR read the ambient temperature.

nCommand is a flag of specific temperature: 0x10 for CCD detector temperature, 0x11 for ambient temperature reading.
*nADValue is a pointer to an integer return value. It is reserved.
*nTemperature is a pointer to float pointer value of temperature. The temperature units are degrees Celsius.
nChannel is used to address a specific spectrometer device to be operated when multiple spectrometer devices are involved. Users must call the bwtekSetupChannel function to determine which channel numbers are available. A total of 32 spectrometer devices may be connected at one time, where the nChannel value will range from 0 – 31. Default is 0. If only one spectrometer is connected to computer, set nChannel to 0.

RETURN
If the function call is successful, a positive integer will be returned, else a negative integer will be returned.

我编写的指令



















  • Channel.png
  • Temperature.png
  • ADValue.png
  • Command.png
  • 返回类型.jpg

回帖(3)

彭青枫

2018-10-24 14:55:50
函数有错,用llb需要在函数名之前加入一些关键字,建议参照例程的格式
1 举报
  • hzlxiuzhu: 函数错在哪儿,麻烦直接指出来,方便么?

hzlxiuzhu

2018-10-25 10:25:15
函数错在哪儿?方便直接指出来么?
举报

彭青枫

2018-11-11 18:47:18
_declspec(dllexport)  需要加在c文件的函数声明之前
举报

更多回帖

发帖
×
20
完善资料,
赚取积分