+
+
- OPT
+ OPT
-
+
+
+
+
+
+
+
- 采集向下数据
+ 采集向下数据
+
+
+
+
+
+
+
-
-
Shutter_Time:{{DataDown.shutter_time}}
-
-
-
+
+
+
+
+
+
+
加入列表
+
+
+ {{ data.shutter_time }}
+ {{ data.value_lable }}
+
+
清空列表
@@ -593,8 +975,8 @@ export default {
-
- 导入已有文件
+
+ 导入已有文件
计算
adsfsdsadfsdf
设置
@@ -602,16 +984,16 @@ export default {
diff --git a/src/components/menubox/SetCalibrateback.vue b/src/components/menubox/SetCalibrateback.vue
new file mode 100644
index 0000000..fe266f6
--- /dev/null
+++ b/src/components/menubox/SetCalibrateback.vue
@@ -0,0 +1,640 @@
+
+
+
+
+
+
+
+ 导入灯数据
+
+
+
+
+
+ value:{{LampData.value_lable}}
+
+
+
+
+
+
+
+
+
+ OPT
+
+
+
+
+
+
+
+ 采集向上数据
+
+
+
+
+
+
+
+
+
+ Shutter_Time:{{DataUP.shutter_time}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ OPT
+
+
+
+
+
+
+
+ 采集向下数据
+
+
+
+
+
+
+
+
+
+ Shutter_Time:{{DataDown.shutter_time}}
+
+
+
+
+
+
+
+
+
+
+
+ 导入已有文件
+ 计算
+ adsfsdsadfsdf
+ 设置
+
+
+
+
diff --git a/src/components/menubox/SetWavelenth.vue b/src/components/menubox/SetWavelenth.vue
index 5272337..7bfd37e 100644
--- a/src/components/menubox/SetWavelenth.vue
+++ b/src/components/menubox/SetWavelenth.vue
@@ -123,9 +123,10 @@ export default {
}
]
};
+ let bandnum=this.Devinfo.bandnum-1;
this.option.xAxis.max =coeff[3];
- this.option.xAxis.min = 2048*2048*2048*coeff[0]+2048*2048*coeff[1]+2048*coeff[2]+coeff[3];
+ this.option.xAxis.min = bandnum*bandnum*bandnum*coeff[0]+bandnum*bandnum*coeff[1]+bandnum*coeff[2]+coeff[3];
chart.setOption(this.option);
chart.dispatchAction({
diff --git a/src/components/menubox/SetWavelenthcoeff.vue b/src/components/menubox/SetWavelenthcoeff.vue
new file mode 100644
index 0000000..82d3a1c
--- /dev/null
+++ b/src/components/menubox/SetWavelenthcoeff.vue
@@ -0,0 +1,881 @@
+
+
+
+
+
+
+
+
+
+
+
+ a0
+
+
+
+
+ a1
+
+
+
+
+ a2
+
+
+
+
+ a3
+
+
+
+
+
+
+ a0
+
+
+
+
+ a1
+
+
+
+
+ a2
+
+
+
+
+ a3
+
+
+
+
+
+
+
+ 设置
+ 恢复
+
+
+
+
+
+
+
+
+
+
+
+
寻峰
+
采集
+
+
{{
+ shutter_time_up.toFixed(2) }} ms
+
{{
+ sensor_gain_up.toFixed(2) }}
+
计算
+
+
+
+
+
+
+
+
+
+ 像素
+ 启用
+ 波长
+
+
+
+
+ {{ peak[2] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
寻峰
+
采集
+
{{
+ sensor_gain_down.toFixed(2) }}
+
{{
+ shutter_time_down.toFixed(2) }} ms
+
计算
+
+
+
+
+
+
+ 像素
+ 启用
+ 波长
+
+
+
+
+ {{ peak[2] }}
+
+
+
+
+
+ {{ item }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/siderleft.vue b/src/components/siderleft.vue
index 7aaf3f0..64619c7 100644
--- a/src/components/siderleft.vue
+++ b/src/components/siderleft.vue
@@ -6,7 +6,7 @@ import {ref} from 'vue';
import Mycard from "./mycard.vue";
import EventBus from "../eventBus.js";
import {fs} from "@tauri-apps/api";
-
+import SerialportMethod from "./SerialPort/SerialportMethod.js";
export default {
name: "siderleft",
components: {Mycard},
@@ -87,7 +87,8 @@ export default {
isenable:false,
begin:"00:00",
end:"23:59",
- }
+ },
+ continuessave:false,
}
},
async mounted() {
@@ -113,6 +114,10 @@ export default {
this.Dispatcher.begin=configdata.Dispatcher.begin
if (typeof(configdata.Dispatcher.end)!="undefined")
this.Dispatcher.end=configdata.Dispatcher.end
+ if (typeof(configdata.sensor_typeforset)!="undefined")
+ this.sensor_typeforset=configdata.sensor_typeforset
+
+ await SerialportMethod.Set_Dev_Type(this.sensor_typeforset);;
var ports = this.listSerialPorts();
@@ -170,9 +175,10 @@ export default {
-
+
高光谱传感器
- IS11
+ IS3
+ IS11
@@ -252,7 +258,8 @@ export default {
{{ DOWNStr }}
DARK
ALL
- RAD_UP
+ RAD_UP
+
RAD_DOWN
REF
@@ -284,16 +291,18 @@ export default {
- 连续保存
+ style="min-width:60%;margin: auto;" v-show="!continuecaiji">
+ 连续
- 停止保存
+ style="min-width:60%;margin: auto;" v-show="continuecaiji">
+ 停止
-
+
+ 保存
+
diff --git a/src/components/siderleftmethod.js b/src/components/siderleftmethod.js
index 8cdf65e..d1abd22 100644
--- a/src/components/siderleftmethod.js
+++ b/src/components/siderleftmethod.js
@@ -17,6 +17,7 @@ export default {
configdata.useSG=this.dataprocessconfig.useSG;
configdata.usehighpass=this.dataprocessconfig.usehighpass;
configdata.Dispatcher=this.Dispatcher;
+ configdata.sensor_typeforset=this.sensor_typeforset;
fs.writeFile("config.json", JSON.stringify(configdata));
EventBus.emit('showbox', {title: "系统", body: "保存配置成功",interval:10});
this.isSpecialmodeshow=true;
@@ -111,8 +112,11 @@ export default {
await this.GetoneData("",Number(this.caijiavgNumber));
var aa={code:"Space"}
- await this.handlekeydown(aa);
- await delay(50);
+ if(this.continuessave)
+ { await this.handlekeydown(aa);
+ await delay(50);
+ }
+
// if (this.cajitimesjiange>0)
// await delay(this.cajitimesjiange*1000-50);
//等待期间每一秒检查一次是否停止
@@ -180,7 +184,7 @@ export default {
//datatosave 保存
console.log(this.datatosave)
var data={};
- if (this.caijidirection=="UP"||this.caijidirection=="DARK")
+ if (this.caijidirection=="UP"||this.caijidirection=="DARK"||this.caijidirection=="RAD_UP")
{
data =this.dataup;
}else {
@@ -277,7 +281,7 @@ export default {
else
{
var datatosave={};
- if (this.caijidirection=="UP")
+ if (this.caijidirection=="UP"||this.caijidirection=="RAD_UP")
{
datatosave=this.dataup;
@@ -359,7 +363,7 @@ export default {
}else{
filepath=this.Pathtosave;
}
-
+ filepath=this.pathofdir+"/"+this.Filename+this.nowNumber+"_"+this.caijidirection+".csv";
await fs.writeFile( filepath, strcsv);
eventBus.emit('showbox', {title: "系统", body: "保存数据 "+ filepath+" OK",interval:10});
}else