Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

SCB 68 pin configuration for NI PCI 6229


The problem is that I tried looking for the pin-out diagram or the pin-configuration of the SCB 68 connector block compatible with NI PCI-6229 card but couldn't find it. I tried looking at the NI site but ended up reading a lot of pdfs, all in vain.
Essentially I am trying to execute the first sample program from comedi demo directory and it gives me random values between 0 to 65535 although I tried different values of subdevices and channel and supplied a particular pin (digital I/O pin) with a high voltage during this time. Now, I am sure that connector block and the card are in working condition.
Can somebody of you, please help me out with this? I am in kind of urgent need of this information.

Specification:
Software:
Ubuntu 9.04 ext3
RTAI 3.7
comedi 0.7.76
code I tried executing::
#include <stdio.h>   /* for printf() */
#include <comedilib.h>
int subdev = 0;         /* change this to your input subdevice */
int chan = 0;           /* change this to your channel */
int range = 0;          /* more on this later */
int aref = AREF_GROUND; /* more on this later */
                                                         
int main(int argc,char *argv[]){
  comedi_t *it;
  lsampl_t data;
  it=comedi_open("/dev/comedi0");
  comedi_data_read(it,subdev,chan,range,aref, & data);
  printf("%d\n",data);
  return 0;
}


One more thing, I arranged the switches in the connector block as per mentioned viz. S3, S1 and S2 not in their default (factory) configuration and grounded pin 12 and supplied a high(5 V) on the pin 11.

Can you tell me the correct values of channel and sub-device for this pin layout. I am trying Digital input/output.

Moreover, where do I look for the pin configuration.

Regards,

0 Kudos
Message 1 of 2
(3,440 Views)
one more thing, I am running it in the preferred mode.
0 Kudos
Message 2 of 2
(3,439 Views)