5/22/2013 3:37 PM | |
Posts: 3 Rating:
|
Hello, is it possible to write kernel - space programs for CP1616 using DK1616 in linux os? If not, is there an alternative solution? |
6/7/2013 11:20 AM | |
Posts: 3 Rating:
|
Thank you, yes, I am using Linux (suse) with RTAI kernel extension and also mentioned development kit. However, I am wondering, if it automatically works in real time, or is there need to implement it manually. For example lets use example application included in DK1616 package (foud here) - pnioeasy_irt1, which is actually my problem. There is a method void DataExchange(PNIO_UINT32 dwHandle), which is called periodically according to bus frequency. It makes some changes in memory - memset((void *)g_OutputDevice[0].data, g_data, g_OutputDevice[0].length); Are these calls synchronized? Or in other words, is guaranteed, that everything to be done inside this method will fit into desired period? Because it is impossible to use RTAI timer - driver runs in kernel space and application in user space. Actually, I use this method only to write analog value to decentralized IO ET200S input and than mirror this value to its output. I measure these two signals with oscilloscope. It behaves as expected, however, seldom glitches in signal can be seen. It looks like some samples are missed. |
Follow us on