All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Sample code about counter for quadrature encoder in S526 DAQ board
@ 2011-01-13 20:16 Kim, Jonghyun (NIH/CC) [F]
  2011-01-17 23:26 ` Alexis Berlemont
  0 siblings, 1 reply; 2+ messages in thread
From: Kim, Jonghyun (NIH/CC) [F] @ 2011-01-13 20:16 UTC (permalink / raw)
  To: xenomai@xenomai.org

Hi.

I wanna use S526 DAQ board under Xenomai 2.5.x.
The major aim of S526 board is to measure angle by using quadrature encoder.

In contrast to AD and DA function of S526 board (e.g. insn_read and insn_write), 
I was not able to find any sample code about counter function for quadrature encoder.

Could I get a sample code about counter for quadrature encoder in S526 board?
(insn_read and insn_write are good example of the sample code)

Or, how can I use the counter function of S526 board?

Thanks,


Jonghyun

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai-help] Sample code about counter for quadrature encoder in S526 DAQ board
  2011-01-13 20:16 [Xenomai-help] Sample code about counter for quadrature encoder in S526 DAQ board Kim, Jonghyun (NIH/CC) [F]
@ 2011-01-17 23:26 ` Alexis Berlemont
  0 siblings, 0 replies; 2+ messages in thread
From: Alexis Berlemont @ 2011-01-17 23:26 UTC (permalink / raw)
  To: Kim, Jonghyun (NIH/CC) [F]; +Cc: xenomai@xenomai.org

Hi,

Kim, Jonghyun (NIH/CC) [F] wrote:
> Hi.
> 

Sorry for the late reply.

> I wanna use S526 DAQ board under Xenomai 2.5.x.
> The major aim of S526 board is to measure angle by using quadrature encoder.
> 
> In contrast to AD and DA function of S526 board (e.g. insn_read and insn_write), 
> I was not able to find any sample code about counter function for quadrature encoder.
> 
> Could I get a sample code about counter for quadrature encoder in S526 board?
> (insn_read and insn_write are good example of the sample code)
> 

No sample program is available for this board. The main reason is that
we did not have enough time to work on a unified user-space API which
would work with any acquisition board (instead of developing a
specific test program for each board).

Simon ported the driver starting from the comedi version. In this
solution, the board registers were configured in user space thanks to
a configuration instruction.

A4L_INSN_CONFIG_GPCT_QUADRATURE_ENCODER:
		/*
		 * data[0]: Application Type
		 * data[1]: Counter Mode Register Value
		 * data[2]: Pre-load Register Value
		 * data[3]: Conter Control Register
		 */
A4L_INSN_CONFIG_GPCT_SINGLE_PULSE_GENERATOR:
		/*
		 * data[0]: Application Type
		 * data[1]: Counter Mode Register Value
		 * data[2]: Pre-load Register 0 Value
		 * data[3]: Pre-load Register 1 Value
		 * data[4]: Conter Control Register
		 */
A4L_INSN_CONFIG_GPCT_PULSE_TRAIN_GENERATOR:
		/*
		 * data[0]: Application Type
		 * data[1]: Counter Mode Register Value
		 * data[2]: Pre-load Register 0 Value
		 * data[3]: Pre-load Register 1 Value
		 * data[4]: Conter Control Register
		 */

> Or, how can I use the counter function of S526 board?
> 
> Thanks,
> 
> 
> Jonghyun
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help

-- 
Alexis.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-17 23:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-13 20:16 [Xenomai-help] Sample code about counter for quadrature encoder in S526 DAQ board Kim, Jonghyun (NIH/CC) [F]
2011-01-17 23:26 ` Alexis Berlemont

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.