On 4 December 2013 16:12, Paul S. <[email protected]> wrote:

> Well, to start with, I'd like to test this driver's work from any GUI

Are you trying to operate a CNC machine, or something less conventional?
There is generally no direct connection between the GUI and the HAL
layer where the drivers run.

The simplest way to check your driver is likely to be with no GUI at all:
Open a terminal.

halrun
loadrt threads
loadrt my_gpio_driver
addf my_gpio_driver.read thread1
addf my_gpio_driver.write threads1
start

setp my_gpio_driver.output-pin-345 1
setp my_gpio_driver.output-pin-345 0

show pin  my_gpio_driver.input-pin-123

...
exit

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to