7i77 testers wanted

More
31 May 2012 06:25 #20521 by maxvdh
Replied by maxvdh on topic Re:7i77 testers wanted
Got it, thanks. Any idea why HAL scope has suddenly stopped working? I need it to tune my PID loops.

Please Log in or Create an account to join the conversation.

More
01 Jun 2012 12:04 #20555 by andypugh
Replied by andypugh on topic Re:7i77 testers wanted
maxvdh wrote:

Got it, thanks. Any idea why HAL scope has suddenly stopped working? I need it to tune my PID loops.


Give us a clue. In what way is it not working? Is there an error message?

Please Log in or Create an account to join the conversation.

More
01 Jun 2012 21:33 #20579 by maxvdh
Replied by maxvdh on topic Re:7i77 testers wanted
Sorry I think I mentioned it before. I am able to turn on HAL scope. Then when I try to assign a pin to channel 1, it closes and will not open again. Please see errors below:
halscope: could not set record length: 'MAXCHAN 0'
halscope: too many active channels: 'CHAN 2'
halscope: object not found: 'PIN '
halscope: could not set vertical scale: 'VSCALE 0'
halscope: could not set vertical position: 'VPOS 0.500000'
halscope: could not set vertical offset: 'VOFF 0.000000e+00'
halscope: too many active channels: 'CHAN 1'
halscope: could not set vertical scale: 'VSCALE 0'
halscope: could not set vertical position: 'VPOS 0.501441'
halscope: could not set vertical offset: 'VOFF 0.000000e+00'
halscope: config file 'autosave.halscope' caused 10 warnings

Please Log in or Create an account to join the conversation.

More
01 Jun 2012 21:35 #20580 by andypugh
Replied by andypugh on topic Re:7i77 testers wanted
maxvdh wrote:

halscope: config file 'autosave.halscope' caused 10 warnings


Try deleting autosave.halscope

Please Log in or Create an account to join the conversation.

More
01 Jun 2012 21:38 #20581 by maxvdh
Replied by maxvdh on topic Re:7i77 testers wanted
That's it. Thank you

Please Log in or Create an account to join the conversation.

More
23 Jun 2012 02:10 #21206 by cmorley
Replied by cmorley on topic Re:7i77 testers wanted
PCW wrote:


2. HM2 encoder "Counter mode" which is an up/down count mode
as opposed to the normal reversable quadrature mode is not suitable
for MPGs so this should be set false


I wonder about this. If one is using a real MPG the count mode is suitable, that is why PNCconf uses it.
if you use quadrature then you can get counts in between the 'detents'
If you MPG is not perfect you can get inconsistent counts for the same 'detent' position.
By using count mode you get one count for every quadrature sequence on an MPG that would be 100 counts
which divides nicely in everything and if your MPG is one quadrature count off at a detent it still outputs consistently.

Is there another reason this is not suitable?

Chris M

Please Log in or Create an account to join the conversation.

More
23 Jun 2012 02:16 #21208 by andypugh
Replied by andypugh on topic Re:7i77 testers wanted
cmorley wrote:

Is there another reason this is not suitable?

Counter-mode only counts up in the case of the software counter.
The Mesa encoder is a little different, as that takes the B channel as a direction, and the way quadrature works means that it still works bidirectionally as long as the quadrature is good and the B-phase is connected.

Please Log in or Create an account to join the conversation.

More
23 Jun 2012 03:24 #21212 by cmorley
Replied by cmorley on topic Re:7i77 testers wanted
PNCconf does not use software counters. but it is good info that they work differently.

Please Log in or Create an account to join the conversation.

More
23 Jun 2012 03:28 #21213 by cmorley
Replied by cmorley on topic Re:7i77 testers wanted
ahh yes software encoder has a x4 mode that can be set false for the same effect.

Please Log in or Create an account to join the conversation.

More
23 Jun 2012 04:10 - 23 Jun 2012 04:43 #21214 by PCW
Replied by PCW on topic Re:7i77 testers wanted
"Is there another reason this is not suitable?"

Yes, the Hostmot2 encoder counter firmware in "counter mode"
is an up down counter, which is not the same as a 1X quadrature counter.

A 1X quadrature counter counts

up on the rising edge of A
down on the falling edge of A
when B is high


The hostmot 2 counter always counts on the rising edge of A (ignoring the falling edge),
counting up when B is high and down when B is low

The reason this does not make a good 1X quadrature encoder counter
is easy to imagine if you think of teasing the dial on a MPG at the A edge
Say B is high, now every time A falls and rises the counter counts up even though
the dial has not moved from the edge of A

The counter mode was made for counting single sensors and frequency counting

There is a workaround for this on the 7I76,7I77,and 7I69 with the latest firmware,
these all have 2 channel (A,B only no index) 1x encoder counters (1x is default) built-in
one of their sserial "modes" (inputs 0 through 3 on the 7I77 are used for 2 encoders for example)
the 7I76 and 7I77 encoder modes also set the input threshold to 2.5V on those pins
Last edit: 23 Jun 2012 04:43 by PCW. Reason: clarify

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.166 seconds
Powered by Kunena Forum