summaryrefslogtreecommitdiff
path: root/dds_io_pub
diff options
context:
space:
mode:
Diffstat (limited to 'dds_io_pub')
-rw-r--r--dds_io_pub/Writer.cpp10
-rw-r--r--dds_io_pub/diasio.cpp4
2 files changed, 9 insertions, 5 deletions
diff --git a/dds_io_pub/Writer.cpp b/dds_io_pub/Writer.cpp
index f0b16f0..edd61ce 100644
--- a/dds_io_pub/Writer.cpp
+++ b/dds_io_pub/Writer.cpp
@@ -77,7 +77,7 @@ Writer::svc ()
struct timespec t_sleep;
t_sleep.tv_sec = 0;
- t_sleep.tv_nsec = 10000;
+ t_sleep.tv_nsec = 5000;
IOTest::Port port_obj;
::DDS::InstanceHandle_t handle = port_dw->_cxx_register (port_obj);
@@ -97,6 +97,8 @@ Writer::svc ()
lastval = actval;
port_obj.value = actval;
+
+ //std::cout<<"new: "<<lastval<<std::endl;
::DDS::ReturnCode_t ret = port_dw->write(port_obj, handle);
@@ -108,11 +110,11 @@ Writer::svc ()
if (ret == ::DDS::RETCODE_TIMEOUT)
timeout_writes_ ++;
- }
+ }
- nanosleep(&t_sleep, NULL);
+ nanosleep(&t_sleep, NULL);
- //cout<<".\n";
+ //cout<<".\n";
}
} catch (CORBA::Exception& e) {
diff --git a/dds_io_pub/diasio.cpp b/dds_io_pub/diasio.cpp
index 3e2ca02..f45392a 100644
--- a/dds_io_pub/diasio.cpp
+++ b/dds_io_pub/diasio.cpp
@@ -68,7 +68,9 @@ void DIASIO::set(TyuInt16 value){
TyuInt16 DIASIO::get(){
iopl( 3 );
- return inw( m_Bereich2 + S_AdresseOut );
+ TyuInt16 value = inw( m_Bereich2 + S_AdresseIn );
+ //fprintf(stderr, "value: %d\n", value); fflush(stderr);
+ return value;
}
void DIASIO::init(){