Search found 1184 matches

by Dinosaur
Apr 02, 2019 14:25
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57265

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Do you have any Timer examples where you use it to stop/start an event. The normal FB Timer call is just not cutting it on the BBB. Obviously in the code below I am calling the Timer far to often, but I am getting variations of 400 uSec. #INCLUDE ONCE "BBB/pruio.bi" #INCLUDE ONCE &q...
by Dinosaur
Mar 28, 2019 15:15
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57265

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF

libpruio = Version 0.6.4b
all the others are 0.6.4a

Regards
Edit: Reinstalling the -dev & -bas & -doc solved the problem.
by Dinosaur
Mar 28, 2019 14:52
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57265

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF

Only did what you suggested.
sudo apt update
sudo apt --only-upgrade install libpruio*


Regards
by Dinosaur
Mar 28, 2019 14:14
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57265

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Since the update I am having the following error even on running SOS. Malloc(): Memory corruption: 0x1685f68 This only happens when using your examples as you wrote them If I convert them to Dim Shared io as PruIo With io End With Then no errors, as with my GUI application, it all runs very w...
by Dinosaur
Mar 28, 2019 0:41
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57265

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Powered up the new BBB and had errors running examples. (Memory Error) So figured I need to erase the on board mmcblk1 as a first step. Made the mistake of doing sudo dd if=/dev/zero bs=512 count=1024 of=/dev/mmcblk0 and wiped my disk. OK, a few hours lost, no big deal. Did sudo dd if=/dev/ze...
by Dinosaur
Mar 27, 2019 17:02
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57265

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF You have done well. I have tested by turning all 20 outputs On, and in one sequence shut them all down at once. Whilst running with my current setup, the loop time is about 35 micro Sec.(I have removed all usb coms) During the period of shutting 20 outputs Off, it goes to about 65. I can impr...
by Dinosaur
Mar 26, 2019 20:31
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57265

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Check out the source code at SUB GpioUdt::setGpio() (the WITH *Top block). One of my weaknesses, reading other peoples code. I have no idea what you are doing there. Will figure out a long hand way. REgards Edit: How do I Dim Share the line: VAR io = NEW PruIo so that I dont have to keep Dele...
by Dinosaur
Mar 26, 2019 15:43
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57265

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF

I have found and used the example of .gpio->raw(n) for input
but can't seem to find an example on how to use it for Output.

Regards
EDIT: Guess that's not possible as there will be a mixture of I/P's and O/P's
by Dinosaur
Mar 20, 2019 15:23
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57265

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF I have ordered my pcb's and will have 4 to play with in about 10 days. The board is the same size as the BBB without cutouts for Ethernet etc. By utilising a Male to Male pin header in the BBB and a Female on the underside of my board, there will be clearance. It has: 8 Opto inputs (5 to 24 v...
by Dinosaur
Mar 19, 2019 21:25
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57265

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF

Why are you pinmuxing P9_21 first to subsystem GPIOSS-0 (mode 7) and immediately remuxing to PWMSS-0-PwmB (mode 3).

Learning to achieve what I need without becoming expert at it.

Regards
by Dinosaur
Mar 19, 2019 14:06
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57265

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Another puzzle I have simplified the code to minimal (more for my understanding) to create a frequency. Normally I wouldn't use goto's #INCLUDE ONCE "BBB/pruio.bi" #INCLUDE ONCE "BBB/pruio_pins.bi" VAR io = NEW PruIo WITH *io IF .Gpio->config(P9_21, PRUIO_GPIO_OUT0) THEN G...
by Dinosaur
Mar 15, 2019 21:21
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57265

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Finished the board design and just to double check that all the Inputs and Outputs will be available, I wrote a quick test and connected 4 led's on P8,7 8 9 and 10. Turning the led's On works as expected, but turning them Off by pressing 9, only turns 7 & 8 off and then hangs the program....
by Dinosaur
Mar 12, 2019 19:35
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57265

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Taking my time designing the board. I have assigned 20 O/P's and 8 I/P Was contemplating putting jumpers on each O/P & I/P so that the connection to the BBB could be broken by removing the jumper. But the amount of drill holes on the C/Brd goes through the roof. The cape won't have any ro...
by Dinosaur
Mar 10, 2019 17:54
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57265

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF Sorry , one more question. On your colour chart you show P9-14,16,21,22 & 42 as Multi Feature Digital, which I assumed means they are attached to a PRU. However, neither one is shown on the mode charts as PRU. They are shown as various uses depending on Mode. On P8-7,8,9,10 (Timers 4-7) a...
by Dinosaur
Mar 10, 2019 14:29
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 57265

Re: libpruio (BB D/A - I/O fast and easy)

Hi TJF

Got it, thanks

Regards

Go to advanced search