From 72c2c73a1e518310a254606a5878190c6e6c5b05 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 20 Aug 2008 00:27:16 +0000 Subject: [PATCH] Added comment about using gpct_encoder demo with 660x boards. --- demo/gpct_encoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demo/gpct_encoder.c b/demo/gpct_encoder.c index f535424..d36f9f3 100644 --- a/demo/gpct_encoder.c +++ b/demo/gpct_encoder.c @@ -45,6 +45,8 @@ int ni_gpct_start_encoder(comedi_t *device, unsigned subdevice, comedi_set_gate_source(device, subdevice, 0, 0, NI_GPCT_DISABLED_GATE_SELECT); comedi_set_gate_source(device, subdevice, 0, 1, NI_GPCT_DISABLED_GATE_SELECT); + /* note, the comedi_set_other_source calls will fail on 660x boards, since they + * don't support user selection of the inputs used for the A/B/Z signals. */ comedi_set_other_source(device, subdevice, 0, NI_GPCT_SOURCE_ENCODER_A, a); comedi_set_other_source(device, subdevice, 0, NI_GPCT_SOURCE_ENCODER_B, b); comedi_set_other_source(device, subdevice, 0, NI_GPCT_SOURCE_ENCODER_Z, z); -- 2.26.2