Search found 1162 matches

by Dinosaur
Apr 21, 2019 14:53
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 341
Views: 52757

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

Hi TJF Below result of my One Shot timer test after the changes you made. Conclusions in comments. #INCLUDE ONCE "BBB/pruio.bi" #INCLUDE ONCE "BBB/pruio_pins.bi" '================================================================== 'This test sets O/P P8-07 for single shot of Dur1 ...
by Dinosaur
Apr 20, 2019 19:19
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 341
Views: 52757

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

Hi TJF Running your example code "as is" I am having the same problem as I did before. 1. Sync of clocks doesn't seem to work reliably. The "Gate" will be different by 1/2 cycle of the clock, and I think this is caused by the instructions: IF .Pwm->Sync(&b000) THEN ?"fai...
by Dinosaur
Apr 20, 2019 1:36
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 341
Views: 52757

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

Hi TJF Many thanks for the update and time you are spending on this. It is worth noting that from all the browsing I have done, there are very few libraries for the BBB. Considering that so many young students are using (or trying to) Arduino & RPi and BBB, your effort will result in more FB par...
by Dinosaur
Apr 06, 2019 19:54
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 341
Views: 52757

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

Hi TJF Additional information for you. The code below does NOT produce any output to the Picoscope the first time I run it after powering the BBB On. Every time there after it works perfectly. (Will email a pdf to you with Picoscope output.) #INCLUDE ONCE "BBB/pruio.bi" #INCLUDE ONCE "...
by Dinosaur
Apr 06, 2019 18:13
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 341
Views: 52757

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

Hi TJF Fixing the single shot would be preferable, no rush , I will keep developing (and also look for alternatives) One further question on Config() I notice that the behaviour changes if I use Config(0,0) or (1,0) or any combination thereof. What is the correct way. Can I call config after setting...
by Dinosaur
Apr 06, 2019 14:18
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 341
Views: 52757

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

Hi TJF

Many thanks for you detailed reply, will have to think about how to handle the pulse count.
I found and fixed a mis-scaling bug.

Will you update your site so that I can test it as well ?

Received my boards yesterday, so will solder one together and test as well.

Regards
by Dinosaur
Apr 04, 2019 20:24
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 341
Views: 52757

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

Hi TJF Is this a fault or something I have mis-understood. If I set P9-14 Pwm1A to 50 Hz then set P9-16 PWM1B to 5 Hz Both channels run at 5Hz. So, to gate 50Hz for the duration 5Hz, I have had to use P9-14 and P8-13. However, that doesn't allow me to sync the channels. Edit: Sorry, each set of pwm'...
by Dinosaur
Apr 03, 2019 18:51
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 341
Views: 52757

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

Hi TJF No panic on anything, if you get the timer SetValue working correctly, it will be used. To be honest, I don't really understand your target. So I cannot give any hints for optimization. To be able to; 1: Set & Read GPIO Done & working 2: Set a Timed Pulse output (ie: P8_07 Hi for 350 ...
by Dinosaur
Apr 02, 2019 14:25
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 341
Views: 52757

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: 341
Views: 52757

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: 341
Views: 52757

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: 341
Views: 52757

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: 341
Views: 52757

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: 341
Views: 52757

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: 341
Views: 52757

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...

Go to advanced search