adfasdfa
This commit is contained in:
@ -63,7 +63,7 @@ int main() {
|
||||
for (int i = 0; i < portNameList.size(); ++i) {
|
||||
printf("portName:%s\n",portNameList[i].portName);
|
||||
}
|
||||
std::string portname="COM20";
|
||||
std::string portname="COM24";
|
||||
serialport->init(portname.c_str(),BaudRate921600 ,ParityNone,DataBits8,StopOne,FlowNone,512*512);
|
||||
serialport->setOperateMode(SynchronousOperate);
|
||||
//serialport->setReadIntervalTimeout(10000);
|
||||
@ -82,6 +82,15 @@ int main() {
|
||||
IS3Set_Serial_FUN(SerialWrite,SerailRead);
|
||||
IS3SensorInit();
|
||||
uint16_t *buffforread=new uint16_t[1000];
|
||||
// while (1) {
|
||||
// IS3SetShutterOpen(0);
|
||||
// IS3GetData(buffforread,1000);
|
||||
// IS3SetShutterOpen(1);
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
STRsensorinfo_C info= IS3Get_SensorInfo();
|
||||
//输出info
|
||||
printf("--------------------------------------\nSensorName:%s\n",info.SensorName);
|
||||
@ -103,7 +112,7 @@ int main() {
|
||||
printf("a3:%f\n",info.a3);
|
||||
printf("a4:%f\n",info.a4 );
|
||||
|
||||
// IS3OptSnenser(80);
|
||||
IS3OptSnenser(80);
|
||||
while (1) {
|
||||
IS3GetData(buffforread,200);
|
||||
}
|
||||
|
Reference in New Issue
Block a user