On Friday 23 April 2010 17:42, Matt Jackson wrote: > Hello, > > I've got a simple question about output devices in RTW. > > We can generate synthetic output data using any of the source elements > or via some closed-loop system as function of the inputs. However, these > are all internal to the kernel module. > > How do you expose the outputs to Pdcom? For example, it would be nice to > exercise the discrete outputs via the controls from testmanager or some > other external process via the Pdcom interface. I'm sure this is > possible but I'm at a loss as to how to do it. Download pdcom, unpack, configure and install. Check out the directory example/
It helps to know that the pdcom library does not do any system calls, like socket() connect(), etc. The client implementation is responsible for the communication to port 2345 where the etherlab_buddy is running on. In your application, you must reimplement the virtual methods of class Process class so that you receive the signals it generates. Then when the signal Process::sigConnected() arrives, use Process::findVariable() to get handles to the variables you require. After successfully finding all variables, you can use Variable::subscribe() to subscribe to them periodically. You can also use Variable::setValue() on parameters to send values to the real time process. - Richard PS: The previous reply slipped out under my fingers before it was finished :( > > Thanks. > > Matt Jackson > Hardware Design Engineer > JT3 LLC - RDESI > > _______________________________________________ > etherlab-users mailing list > [email protected] > http://lists.etherlab.org/mailman/listinfo/etherlab-users -- ------------------------------------------------------------------------ Richard Hacker Ingenieurgemeinschaft IgH Gesellschaft für Ingenieurleistungen mbH Heinz-Baecker-Str. 34 D-45356 Essen Tel.: +49 201 / 360-14-16 Fax.: +49 201 / 360-14-14 Mobil: +49 175 6822089 E-mail: [email protected] ------------------------------------------------------------------------ _______________________________________________ etherlab-users mailing list [email protected] http://lists.etherlab.org/mailman/listinfo/etherlab-users
