1.三相总功率转换为标幺值
2.输出功率前先更新功率 3.输出QG数据的时候少了一个seperator,补上 Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
parent
46f890b77b
commit
f26ffd4ab0
|
|
@ -132,28 +132,14 @@ void CIMExporter::exportTo(const QString& path,const QString &rootID)
|
|||
{
|
||||
continue;
|
||||
}
|
||||
// writer<<elements.first()->length<<"\t"<<elements.first()->id<<"\t";
|
||||
writer<<seqN++<<seperator;
|
||||
writer<<l.fromNum<<seperator;
|
||||
writer<<l.toNum<<seperator;
|
||||
// if(l.id==rootID && static_cast<int>(l.length)==0)
|
||||
// {
|
||||
// writer<<0.01<<seperator;
|
||||
// writer<<0.01<<seperator;
|
||||
// writer<<0<<seperator;
|
||||
// writer<<0<<seperator;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
writer<<l.line->r<<seperator;
|
||||
writer<<l.line->x<<seperator;
|
||||
writer<<l.line->b1<<seperator;
|
||||
writer<<l.line->b2<<seperator;
|
||||
// }
|
||||
writer<<l.line->r<<seperator;
|
||||
writer<<l.line->x<<seperator;
|
||||
writer<<l.line->b1<<seperator;
|
||||
writer<<l.line->b2<<seperator;
|
||||
writer<<endLine;
|
||||
// writer<<"type"<<seperator;
|
||||
// writer<<l.id<<"\t";
|
||||
// writer<<l.length<<"\r\n";
|
||||
}
|
||||
|
||||
//输出刀闸
|
||||
|
|
@ -321,7 +307,7 @@ void CIMExporter::exportTo(const QString& path,const QString &rootID)
|
|||
writer<<endLine;
|
||||
writer<<0<<endLine;//数据间隔
|
||||
writer<<0<<endLine;//数据间隔
|
||||
writer<<1<< seperator<<1<< seperator<<balanceNum<<1<< seperator<<1.05<< seperator<< -100<< seperator<<100<< seperator<<0<< seperator<<0<< seperator<<0<< seperator<<0<< seperator;
|
||||
writer<<1<< seperator<<1<< seperator<<balanceNum<<seperator<<1<< seperator<<1.05<< seperator<< -100<< seperator<<100<< seperator<<0<< seperator<<0<< seperator<<0<< seperator<<0<< seperator;
|
||||
writer<<endLine;
|
||||
writer<<0<<endLine;//数据间隔
|
||||
writer<<0<<endLine;//数据间隔
|
||||
|
|
|
|||
|
|
@ -152,6 +152,10 @@ bool LoadInfo::updateByTime(const QTime& time)
|
|||
{
|
||||
this->ph3P=0;
|
||||
}
|
||||
else
|
||||
{
|
||||
this->ph3P/=1000;//转换为标幺值
|
||||
}
|
||||
// std::cout<<"nb "<<sep.at(5).toStdString()<<std::endl;
|
||||
// std::cout<<this->ph3P<<std::endl;
|
||||
this->ph3Q=this->trimDoubleQuotation(sep.at(6)).toDouble(&ok3PhQ);
|
||||
|
|
@ -159,6 +163,10 @@ bool LoadInfo::updateByTime(const QTime& time)
|
|||
{
|
||||
this->ph3Q=0;
|
||||
}
|
||||
else
|
||||
{
|
||||
this->ph3Q/=1000;
|
||||
}
|
||||
// std::cout<<"nb "<<sep.at(6).toStdString()<<std::endl;
|
||||
// std::cout<<this->ph3Q<<std::endl;
|
||||
ret=true;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ void Task::doAgainstTaskFile(ElementHashtable &eleHT)
|
|||
{
|
||||
LoadMapping lm;
|
||||
lm.load("D:/Project/佛山项目/数据/搭网架参数文件/","D:/Project/佛山项目/数据/匹配的数据/","D:/Project/佛山项目/数据/exception.txt");//单例,执行一次行了。
|
||||
lm.broadcastUpdateByTime(QTime(0,0,0));
|
||||
QFile file(this->taskFile);
|
||||
QString line;
|
||||
QStringList sep;
|
||||
|
|
|
|||
Loading…
Reference in New Issue