修复连续采集时没有时间间隔导致通讯失败从而导致无有法正常连续采集的问题 修改如下

if (this.caijidirection=="UP")
            {
                await this.GetDataDrection("UP",caijiavgNumber);
                await  delay(100)

            }
            if (this.caijidirection=="DOWN")
               { await this.GetDataDrection("DOWN",caijiavgNumber);
                await  delay(100)
               }

            if (this.caijidirection=="ALL")
            {
                await this.GetDataDrection("UP",caijiavgNumber);
                await  delay(100)
                await this.GetDataDrection("DOWN",caijiavgNumber);
                await  delay(100)
            }
            if(this.caijidirection=="DARK")
            {
                await this.GetDataDrection("DARK",caijiavgNumber);
                await  delay(100)
            }
This commit is contained in:
xin
2024-07-03 11:05:42 +08:00
parent 9536fad4c8
commit d582d9a82b
2 changed files with 13 additions and 4 deletions

View File

@ -8,7 +8,7 @@
}, },
"package": { "package": {
"productName": "SpectralPlot", "productName": "SpectralPlot",
"version": "0.4.14" "version": "0.4.141"
}, },
"tauri": { "tauri": {

View File

@ -92,18 +92,27 @@ export default {
if (caijimoshi=="advanced_mode") if (caijimoshi=="advanced_mode")
{ {
if (this.caijidirection=="UP") if (this.caijidirection=="UP")
await this.GetDataDrection("UP",caijiavgNumber); {
await this.GetDataDrection("UP",caijiavgNumber);
await delay(100)
}
if (this.caijidirection=="DOWN") if (this.caijidirection=="DOWN")
await this.GetDataDrection("DOWN",caijiavgNumber); { await this.GetDataDrection("DOWN",caijiavgNumber);
await delay(100)
}
if (this.caijidirection=="ALL") if (this.caijidirection=="ALL")
{ {
await this.GetDataDrection("UP",caijiavgNumber); await this.GetDataDrection("UP",caijiavgNumber);
await delay(1000) await delay(100)
await this.GetDataDrection("DOWN",caijiavgNumber); await this.GetDataDrection("DOWN",caijiavgNumber);
await delay(100)
} }
if(this.caijidirection=="DARK") if(this.caijidirection=="DARK")
{ {
await this.GetDataDrection("DARK",caijiavgNumber); await this.GetDataDrection("DARK",caijiavgNumber);
await delay(100)
} }