Activity for Derik Hunter

  • Derik Hunter Derik Hunter posted a comment on discussion Getting Started

    Thank you for your reply. You are correct, I do not see the error message with Version B. But I would still like to understand why Version A does not work. Furthermore, I set my application to use the linux kernel module. As the callback mechanism is not available with the kernel module, I understand I have to use oplk_waitSyncEvent(..) in my thread's run method, followed by calls oplk_exchangeProcessImageIn() and oplk_exchangeProcessImageOut() (or rather this->exchangeProcessImageData() in my case)....

  • Derik Hunter Derik Hunter posted a comment on discussion Getting Started

    Hello Martin, Unfortunately, I could not resolve this issue. Could you share the adjustments you made? Thanks!

  • Derik Hunter Derik Hunter posted a comment on discussion Getting Started

    Hello Powerlink-Team-Kalycito, Thank you for your quick response. Here is a code snippet that demonstrates what I am doing: class SyncHandler { std::thread m_thread; std::condition_variable m_condVar; std::mutex m_mutex; INT8 digitalIn01_l; PI_IN* pProcessImageIn; const PI_OUT* pProcessImageOut; // class is a Singleton static SyncHandler& getInstance() { static SyncHandler instance; return instance; } void SyncHandler::startThread() { m_thread = std::thread(&SyncHandler::run, this); } tOplkError...

  • Derik Hunter Derik Hunter posted a comment on discussion Getting Started

    Hello again, one (hopefully simple) question: Is it possible to run openPOWERLINK nodes on a virtual network for easier developping and debugging purposes? I tried using a Virtualbox network but without success (CN is being configured by MN but won't become operational) , I tried running MN and CN on the same machine, both nodes accessing the same network interface (via PCAP). Also without access (no communication at all). I noticed that once I start demo_mn_console, a virtual network device is added...

  • Derik Hunter Derik Hunter posted a comment on discussion Getting Started

    Hello! I am in the process of implementing a CN in C++ for a Linux target. I am currently struggling with how to implement the data synchronization. I could not find any guidelines for how to use the openPOWERLINK library, so I followed the examples in the app folder. In particular, I used the demo_mn_qt application as kind of a blueprint from my CN. So similarly, I implemented a SyncEventHandler that will run an endless loop in its own thread and wait for a SyncEvent by means of a conditional variable....

  • Derik Hunter Derik Hunter posted a comment on discussion Getting Started

    Hallo again! I observed that once I add "Empty" entries in the TPDO configuration of a CN, the demo stops working. This seems to occur if the "Empty" entries are added inbetween actual objects or before them using the openCONFIGURATOR-Eclipse-Plugin (but not if added at the end, where they are by default). With the thereby updated configuration, the demo application MN either cannot configure the CN (see console output) and the CN remains in non operational state, or the configuration appears to...

  • Derik Hunter Derik Hunter posted a comment on discussion Getting Started

    Hallo, I am playing around with the demo application of openPOWERLINK 2.7.0. I connect two linux machines. One acts as CN (running demo_cn_console), the other one as MN (running demo_mn_console). Communication is working nicely until I add ERR_ErrorRegister to the TPDO channel of the CN. For instance, if I add it as 1A00/03 using the XDD Eclipse Plugin and recompile the MN, then I observe an error message at the MN's console output: 018/07/24-16:14:06 EVENT CFM_PROGRESS Node= 1, Object 0x1600/002,...

1