21 Mar 2017 16:51 #90014 by DavidJ
Replied by DavidJ on topic Pokeys
Thanks very much - I fee confident enough to try this now. Will give it a go as soon as the weather warms up a little (computer is in the garage, next to the Mill).
05 Apr 2017 06:02 #90915 by jbunch
Replied by jbunch on topic Pokeys
Thank you for the information.

I was able to setup and use in 2.8.pre you do have to install the -dev version as well so you can compile the halfile.
It also works with the matrix keyboard inside of pokeys as well as the pins. Very handy for your interface.

24 May 2017 10:02 #93585 by borisz
Replied by borisz on topic Pokeys

If you'll have some questions or problems with PoKeys, please open a ticket in the support section on the www.poscope.com .
You'll get an answer from the hardware developers.
07 Aug 2017 23:43 #97135 by juanelo1221
Replied by juanelo1221 on topic Pokeys
Hi, my name is Juan and I have some troubles follow the Fixer steps.

I'm new using HAL and some configurations on LINUX, I can't compile linuxcnc pokeys component with: sudo halcompile ./pokeys.comp the terminal send me an error "halcompile: command not found."

I run the sudo apt-get install linuxcnc-dev to install the HAL components but that don't solve the problem.

And I have a doubt in this part:

"These will also install the library in /usr/lib folder and copy the header file to /usr/include. Sudo is required to gain write access to these two folders"

I have to copy the library installed in /usr/lib and paste it in /usr/include? And the file is libPokeys.so?

Sorry but really I don't undestand.

Thank you so much for your time and patience.
07 Aug 2017 23:56 #97140 by andypugh
Replied by andypugh on topic Pokeys
Maybe you are using an old LinuxCNC version. Try sudo comp --install ... " We changed the name of the compiler as there was an unfortunate name-clash with a different package.
08 Aug 2017 00:08 #97141 by juanelo1221
Replied by juanelo1221 on topic Pokeys
Thank you andypugh.
Now the terminalshowme this:

gcc -Os -g -I. -I/usr/realtime-3.4-9-rtai-686-pae/include -I. -I/usr/realtime-3.4-9-rtai-686-pae/include -I/usr/include/i386-linux-gnu -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -fno-math-errno -funsafe-math-optimizations -fno-rounding-math -fno-signaling-nans -fcx-limited-range -mhard-float -DRTAI=3 -fno-fast-math -mieee-fp -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/usr/include/linuxcnc -Wframe-larger-than=2560 -URTAPI -U__MODULE__ -DULAPI -Os -o pokeys /tmp/tmpyQnOT4/pokeys.c -Wl,-rpath,/lib -L/lib -llinuxcnchal
/tmp/ccukRjQY.o: In function `user_mainloop':
/tmp/tmpyQnOT4/pokeys.comp:27: undefined reference to `PK_ConnectToDeviceWSerial'
/tmp/tmpyQnOT4/pokeys.comp:31: undefined reference to `PK_DigitalIOGet'
/tmp/tmpyQnOT4/pokeys.comp:31: undefined reference to `PK_AnalogIOGet'
/tmp/tmpyQnOT4/pokeys.comp:37: undefined reference to `PK_DisconnectDevice'
collect2: error: ld returned 1 exit status
make: *** [pokeys] Error 1

why send me an error?

Thank you
08 Aug 2017 00:11 #97142 by andypugh
Replied by andypugh on topic Pokeys
I suspect that you don't have the pokeys.h library from the very first link in the very first post.
08 Aug 2017 00:17 #97144 by juanelo1221
Replied by juanelo1221 on topic Pokeys
In the files downloaded from pokeyslib I have this file PoKeysLib.h, do I have to move it to a specific address?

Thank you
08 Aug 2017 00:42 #97148 by andypugh
Replied by andypugh on topic Pokeys
Yes, and you might have to compile the library too.
Are there instructions on the site where the file came from?
08 Aug 2017 01:03 #97150 by juanelo1221
Replied by juanelo1221 on topic Pokeys
Yes, I first installed:
sudo apt-get install libusb-1.0-0
sudo apt-get install libusb-1.0-0-dev

Then in the folder downloaded I ran the "sudo make -f Makefile.noqmake install"
and the terminal show me
cp libPokeys.so/usr/lib
cp PokeysLib.h /usr/include

then I tray to compile pokeys.comp

I created the file pokeys.comp with the code posted by FIXER in the first post:
component pokeys "PoKeys IO driver, by Mit Zot";

option userspace yes;

pin out bit in-# [55];
pin out unsigned ain-# [3];
pin out bit err;
pin in unsigned devSerial;
pin out bit alive;

license "GPL";

#include "PoKeysLib.h"
#include <unistd.h>   /* UNIX standard function definitions */

sPoKeysDevice * dev=0;
int i=0;

void user_mainloop(void) 
       FOR_ALL_INSTS() {

	 while(dev == NULL)dev = PK_ConnectToDeviceWSerial(devSerial, 2000);  //waits for usb device
	 if ((PK_DigitalIOGet(dev) == PK_OK) && (PK_AnalogIOGet(dev) == PK_OK)){  //gets IO data and checks return value 
		for(i=0;i<54;i++)in(i)=!dev->Pins[i].DigitalValueGet;           //just transfers values
         else{             		  //on connection error
		dev=NULL;  		  //tries to reconnect

In the same folder where I have the downloaded files, is this correct?

Thank you.
Time to create page: 0.134 seconds
Powered by Kunena Forum