完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我想问一下调用库函数,我哪儿调用错了。竟然一直报错,我能保证的是我的程序没有问题。只是问题发生在这个调用库函数上了。
下面是指令描述: 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. 我编写的指令
|
|
相关推荐
3个回答
|
|
|
|
|
|
_declspec(dllexport) 需要加在c文件的函数声明之前
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1053 浏览 1 评论
790 浏览 0 评论
654 浏览 0 评论
1242 浏览 1 评论
Labview在生成安装文件的时候,提示“在本计算机上找不到已选定的某些安装程序”
1482 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-26 17:11 , Processed in 0.426750 second(s), Total 45, Slave 37 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号