On 22 May 2018 at 21:54, jeremy youngs <[email protected]> wrote:

> The question is how do I go about bench testing this system? I would like
> to verify pwm outputs before I connect hardware .

You can run HAL from the command line (I do this a lot when testing).
Halrun starts a HAL session, and from then on you can use
tab-completion to help type the commands.

halrun

loadrt hostmot2
loadrt hm2_7i90 ... and the rest of the line ...

loadrt threads
addf hm2_7i90.read thread1
addf hm2_7i90.write thread1
start

setp hm2_7i90.0.pwmgen.00.value 1 (use tab completion, I am guessing
the pin names)

> I also need to determine encoder count

loadusr halmeter pin hm2_7i90.0.encoder.00.rawcounts

Then twirl the shaft and look at the counts.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to