调用库函数节点报错?

2019-07-17 09:37发布

我想问一下调用库函数,我哪儿调用错了。竟然一直报错,我能保证的是我的程序没有问题。只是问题发生在这个调用库函数上了。
下面是指令描述:
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条回答
小风风12580
1楼-- · 2019-07-17 12:40
 精彩回答 2  元偷偷看……
hzlxiuzhu
2楼-- · 2019-07-17 17:13
函数错在哪儿?方便直接指出来么?
小风风12580
3楼-- · 2019-07-17 19:19
_declspec(dllexport)  需要加在c文件的函数声明之前

一周热门 更多>