Search found 24 matches

by fridlund
Nov 27, 2019 7:09
Forum: Hardware Interfaces / Communication
Topic: DIY hardware interface for simple data collection and robot control?
Replies: 62
Views: 38231

Re: DIY hardware interface for simple data collection and robot control?

OMG, so simple. That got me past the major hurdle. You know how something can be on the grocery-store shelf and you just can't find it?

I'm always that guy.

Thanks so much,
Alan
by fridlund
Nov 27, 2019 1:10
Forum: Hardware Interfaces / Communication
Topic: DIY hardware interface for simple data collection and robot control?
Replies: 62
Views: 38231

Re: DIY hardware interface for simple data collection and robot control?

Hi again MrSwiss, Once again I started to tackle the U3_HV and I am stuck right at the beginning! When I try to load the DLL for the U3 as follows, FB freezes before even going to the console screen: Dim LJ_lib As Any Ptr # Ifdef __FB_64BIT__ LJ_lib = DylibLoad("C:\Windows\System32\LabJackUD.dl...
by fridlund
Nov 26, 2019 18:40
Forum: Hardware Interfaces / Communication
Topic: DIY hardware interface for simple data collection and robot control?
Replies: 62
Views: 38231

Re: DIY hardware interface for simple data collection and robot control?

Hi MrSwiss, It's been several weeks since you uploaded the U12 code, and I'm indebted to you sir. I managed to get it running and, folllowing your lead, some of the other U12 functions as well. I needed a scrolling plot of 4 A/D inputs with some Digital I/O for my application and so I thought I'd up...
by fridlund
Oct 16, 2019 18:13
Forum: Hardware Interfaces / Communication
Topic: DIY hardware interface for simple data collection and robot control?
Replies: 62
Views: 38231

Re: DIY hardware interface for simple data collection and robot control?

Dear MrSwiss,
Thank you so much for the help. I'll give your sample code a go.
All the best,
Alan
by fridlund
Oct 15, 2019 0:39
Forum: Hardware Interfaces / Communication
Topic: DIY hardware interface for simple data collection and robot control?
Replies: 62
Views: 38231

Re: DIY hardware interface for simple data collection and robot control?

Hi Ms. Swiss, Re: the below, can you share any FB code you've written to use your LabJack U12? This looks like a simple DAQ that could work for my own lab applicaion as well. I just need the code to achieve A/D conversion of 4 channels, possibly some Digital I/O to 2 or 3 outputs. I see your applica...
by fridlund
Feb 21, 2017 4:09
Forum: Windows
Topic: Tablet PC (Wacom) Pen Programming?
Replies: 43
Views: 14874

Re: Tablet PC (Wacom) Pen Programming?

Thank you both for your advice and expertise. I'll try adapting my code as you suggest St_W according to the examples you provided and I'll get back to you. If it doesn't work I'll ask C_P for the gfxlib2 changes I need to make and I'll try to build the mod lib myself. I wish I had more time to dive...
by fridlund
Feb 13, 2017 22:31
Forum: Windows
Topic: Tablet PC (Wacom) Pen Programming?
Replies: 43
Views: 14874

Re: Tablet PC (Wacom) Pen Programming?

I regret that what you're proposing is beyond my knowledge. I had my application code working with the modded lib and have my hands full with just that (it's the basis of a psych experiment). I could upload my code here so you could mod it to work with the std lib, but I would not want to impose. I'...
by fridlund
Feb 13, 2017 3:21
Forum: Windows
Topic: Tablet PC (Wacom) Pen Programming?
Replies: 43
Views: 14874

Re: Tablet PC (Wacom) Pen Programming?

This is an old thread because I had to suspend the project for other priorities. I believe I have some time to pick it up again. I wonder if I could ask you to make modded libfbgfx files for FB 1.0.5 as you did for ver 0.90 so that I can resume with the newest version of FB? Thanks in advance.
Alan
by fridlund
Jul 04, 2013 5:10
Forum: Windows
Topic: Tablet PC (Wacom) Pen Programming?
Replies: 43
Views: 14874

Re: Tablet PC (Wacom) Pen Programming?

Whoops, forgot to copy your modded .a file over to the FB .90 LIB folder. That fixed it! All's well. Many thx.
by fridlund
Jul 03, 2013 19:54
Forum: Windows
Topic: Tablet PC (Wacom) Pen Programming?
Replies: 43
Views: 14874

Re: Tablet PC (Wacom) Pen Programming?

Thanks! I get this build error when I try to compile both my .BAS code and yours under FB .90 with the new gfx lib. C:\Program Files (x86)\FreeBASIC90\fbc -s gui "TiltTest.bas" "TILTTEST.RC" "Utils.bas" TiltTest.o:fake:(.text+0x3d): undefined reference to `fb_hWin32ExtW...
by fridlund
May 27, 2013 21:33
Forum: Windows
Topic: Tablet PC (Wacom) Pen Programming?
Replies: 43
Views: 14874

Re: Tablet PC (Wacom) Pen Programming?

Here's the code that works for me. It now displays the coords for the tablet surface as a whole, and within the FB window. Had to use a little hackery to get the latter, as you'll see. Haven't tried your latest solution, which is surely more elegant. I'll let you know whether the old gfxlib works wi...
by fridlund
May 25, 2013 18:56
Forum: Windows
Topic: Tablet PC (Wacom) Pen Programming?
Replies: 43
Views: 14874

Re: Tablet PC (Wacom) Pen Programming?

I think I discovered the problem. The GetClientRect func only returns values for the right and bottom values of the rectangle; top and right are designed to return zeroes. When I changed the code appropriately, it works! I'll post all my changes when they're in readable form. Thanks for all your hel...
by fridlund
May 25, 2013 18:10
Forum: Windows
Topic: Tablet PC (Wacom) Pen Programming?
Replies: 43
Views: 14874

Re: Tablet PC (Wacom) Pen Programming?

Sorry for the delay in getting back to you. The extra code to get and subtract off the client window top and left coordinates produced zeroes, leaving pt.x and pt.y to show the overall screen coordinates as before. Happy to try any other ideas, and I promise a quicker turnaround!
by fridlund
Apr 10, 2013 18:46
Forum: Windows
Topic: Tablet PC (Wacom) Pen Programming?
Replies: 43
Views: 14874

Re: Tablet PC (Wacom) Pen Programming?

I am grateful to everyone's efforts in getting to some code that lets me move forward with my research. I took the liberty of making a correction in how pen tilt is shown, and I broke out the X and Y components of tilt and a few other changes at the top. There's still one major issue, which is that ...
by fridlund
Mar 29, 2013 8:46
Forum: Windows
Topic: Tablet PC (Wacom) Pen Programming?
Replies: 43
Views: 14874

Re: Tablet PC (Wacom) Pen Programming?

Thanks for your continued effort. Almost every one of the new Windows 8 touchscreen hardware has Wacom-compatible drivers underneath, so I'm hoping someone with more programing savvy than I can try out and expt with your code. I would send you my Cintiq tablet to test on, but it weighs 30 lb and is ...