Skip to content
Snippets Groups Projects
Commit ad67240a authored by Gwenaelle ABEILLE's avatar Gwenaelle ABEILLE
Browse files

bug on attributes corrected.

parent 5f0faec6
No related branches found
No related tags found
No related merge requests found
static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/InputOutput/ADLINK/SingleShotDIO/src/SingleShotDIO.cpp,v 1.6 2004-10-18 08:21:14 abeilleg Exp $";
static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/InputOutput/ADLINK/SingleShotDIO/src/SingleShotDIO.cpp,v 1.7 2005-09-20 10:09:11 abeilleg Exp $";
//+=============================================================================
//
// file : SingleShotDIO.cpp
......@@ -13,9 +13,12 @@ static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/InputOutput/AD
//
// $Author: abeilleg $
//
// $Revision: 1.6 $
// $Revision: 1.7 $
//
// $Log: not supported by cvs2svn $
// Revision 1.6 2004/10/18 08:21:14 abeilleg
// minor changes.
//
// Revision 1.5 2004/09/30 13:23:58 abeilleg
// minor changes.
//
......@@ -546,7 +549,7 @@ void SingleShotDIO::write_attr_hardware(vector<long> &attr_list)
Tango::DevVarLongStringArray ls;
ls.svalue.length(1);
ls.lvalue.length(1);
ls.svalue[0] = CORBA::string_dup("PortA");
ls.svalue[0] = CORBA::string_dup("PA");
ls.lvalue[0] = attr_PortA_write;
this->write_port(&ls);
}
......@@ -581,7 +584,7 @@ void SingleShotDIO::write_attr_hardware(vector<long> &attr_list)
Tango::DevVarLongStringArray ls;
ls.svalue.length(1);
ls.lvalue.length(1);
ls.svalue[0] = CORBA::string_dup("PortB");
ls.svalue[0] = CORBA::string_dup("PB");
ls.lvalue[0] = attr_PortB_write;
this->write_port(&ls);
}
......@@ -612,7 +615,7 @@ void SingleShotDIO::write_attr_hardware(vector<long> &attr_list)
Tango::DevVarLongStringArray ls;
ls.svalue.length(1);
ls.lvalue.length(1);
ls.svalue[0] = CORBA::string_dup("PortC");
ls.svalue[0] = CORBA::string_dup("PC");
ls.lvalue[0] = attr_PortC_write;
this->write_port(&ls);
}
......@@ -643,7 +646,7 @@ void SingleShotDIO::write_attr_hardware(vector<long> &attr_list)
Tango::DevVarLongStringArray ls;
ls.svalue.length(1);
ls.lvalue.length(1);
ls.svalue[0] = CORBA::string_dup("PortD");
ls.svalue[0] = CORBA::string_dup("PD");
ls.lvalue[0] = attr_PortD_write;
this->write_port(&ls);
}
......@@ -674,7 +677,7 @@ void SingleShotDIO::write_attr_hardware(vector<long> &attr_list)
Tango::DevVarLongStringArray ls;
ls.svalue.length(1);
ls.lvalue.length(1);
ls.svalue[0] = CORBA::string_dup("PortE");
ls.svalue[0] = CORBA::string_dup("PE");
ls.lvalue[0] = attr_PortE_write;
this->write_port(&ls);
}
......@@ -691,7 +694,7 @@ void SingleShotDIO::write_attr_hardware(vector<long> &attr_list)
Tango::DevVarLongStringArray ls;
ls.svalue.length(1);
ls.lvalue.length(1);
ls.svalue[0] = CORBA::string_dup("PortE");
ls.svalue[0] = CORBA::string_dup("PE");
ls.lvalue[0] = attr_PortE_write;
this->write_port(&ls);
}
......@@ -706,7 +709,7 @@ void SingleShotDIO::write_attr_hardware(vector<long> &attr_list)
Tango::DevVarLongStringArray ls;
ls.svalue.length(1);
ls.lvalue.length(1);
ls.svalue[0] = CORBA::string_dup("PortF");
ls.svalue[0] = CORBA::string_dup("PF");
ls.lvalue[0] = attr_PortF_write;
this->write_port(&ls);
}
......@@ -723,7 +726,7 @@ void SingleShotDIO::write_attr_hardware(vector<long> &attr_list)
Tango::DevVarLongStringArray ls;
ls.svalue.length(1);
ls.lvalue.length(1);
ls.svalue[0] = CORBA::string_dup("PortF");
ls.svalue[0] = CORBA::string_dup("PF");
ls.lvalue[0] = attr_PortF_write;
this->write_port(&ls);
}
......@@ -744,7 +747,7 @@ void SingleShotDIO::write_attr_hardware(vector<long> &attr_list)
Tango::DevVarLongStringArray ls;
ls.svalue.length(1);
ls.lvalue.length(1);
ls.svalue[0] = CORBA::string_dup("PortG");
ls.svalue[0] = CORBA::string_dup("PG");
ls.lvalue[0] = attr_PortG_write;
this->write_port(&ls);
}
......@@ -765,7 +768,7 @@ void SingleShotDIO::write_attr_hardware(vector<long> &attr_list)
Tango::DevVarLongStringArray ls;
ls.svalue.length(1);
ls.lvalue.length(1);
ls.svalue[0] = CORBA::string_dup("PortH");
ls.svalue[0] = CORBA::string_dup("PH");
ls.lvalue[0] = attr_PortH_write;
this->write_port(&ls);
}
......@@ -790,25 +793,25 @@ void SingleShotDIO::read_attr_hardware(vector<long> &attr_list)
if(boardType == adl::PCI7248)
{
if(portAdirection == "IN")
pa = this->read_port("PortA");
pa = this->read_port("PA");
if(portBdirection == "IN")
pb = this->read_port("PortB");
pb = this->read_port("PB");
if(portCdirection == "IN")
pc = this->read_port("PortC");
pc = this->read_port("PC");
if(portDdirection == "IN")
pd = this->read_port("PortD");
pd = this->read_port("PD");
if(portEdirection == "IN")
pe = this->read_port("PortE");
pe = this->read_port("PE");
if(portFdirection == "IN")
pf = this->read_port("PortF");
pf = this->read_port("PF");
}
else
{
pa = this->read_port("PortA");
pb = this->read_port("PortB");
pc = this->read_port("PortC");
pd = this->read_port("PortD");
pa = this->read_port("PA");
pb = this->read_port("PB");
pc = this->read_port("PC");
pd = this->read_port("PD");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment