I'm not clear on how to use any of the two methods to do what I need to get done. Do you mean I should set the RTnet SYNC start time with the "cycle_start" variable in relation to my 1ms thread? Sorry the documentation is a bit vague on the ioctrl calls for RTnet so I don't have alot to go on.
Michael On 5/16/07, Jan Kiszka <[EMAIL PROTECTED]> wrote: > Michael Smith wrote: > > What my system needs to do is to run multiple computers on a RTnet > > network but their threads (100us, 1ms and 10ms) needs to be kept in > > sync with each other across the network. My RTnet TDMA cycle is > > running at 1ms. > > The way I hoped to do it is to keep all the 1ms RTAI threads in sync > > with the RTNet's 1ms TDMA cycle by using the "rtmac_waitinfo" > > information from the RTMAC_RTIOC_WAITONCYCLE_EX IOCTL call. By > > calculating the offset between the RTAI 1ms thread and the expected > > Sync timing of the RTnet TDMA I wanted to use aperiodic thread > > synchronization to adjust the thread timing of all the threads to run > > in pace with RTnet's 1ms SYNC. > > Why not using the synchronism of WAITONCYCLE_EX directly? Even if you > don't use it, doing some calculations with offsets and scheduled cycle > starts and then calling rt_sleep_until should provide solution, no? > > > Do you know of any other way to keep the scheduling in pace with the > > TDMA cycle? I want to keep from doing any manual scheduling by using > > timer interrupts and the like if at all possible. > > > > Michael > > > > Jan > > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users