Jump to content

hello

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

hello's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. Hello, There is a program that uses PCI-QUAD04, and I want to use two encoder channels of USB-1808 to make the program work the same way. PCI-QUAD04 and USB-1808 use different functions and RegNum are different, so I want to get help on how to change them. err = cbC7266Config(vSet.cntboard, ch, X1_QUAD, NORMAL_MODE, BINARY_ENCODING, RESET_CTR, DISABLED, CARRY_BORROW, DISABLED); -> cbCConfigScan(helpme) err = cbCLoad32(vSet.cntboard, COUNT1+ch, 0); // start value err = cbCLoad32(vSet.cntboard, PRESET1+ch, 100000); // end value err = cbCLoad32(vSet.cntboard, PRESCALER1+ch, 1); // filter 0 ~ 255 -> cbCLoad32(vSet.cntboard, LOADREG0(correct?) +ch, 0); cbCLoad32(vSet.cntboard, MINLIMITREG0(?) +ch, 100000); cbCLoad32(vSet.cntboard, MAXLIMITREG0(?) +ch, 1); Thanks.
  2. Hello, I am trying to measure thickness of the hollow disc, so that use usb-1808 with 2 analog channels and 2 rotary encoders. I try to find out of encoder input test in the Instacal but there is no encoder test menu in usb-1808. And I used function(cbCConfigScan, cbAInScan), but an error occured. There was no error in other devices, but an error occurred in usb-1808. err = cbCConfigScan(vSet.board, ch, BIT_32, CTR_DEBOUNCE3500ns, CTR_TRIGGER_AFTER_STABLE, CTR_RISING_EDGE, CTR_TICK20PT83ns, ch); I used this command on USB-QUAD08 and no error occurred, but when I used this command on USB-1808, an error occurred.(error code 137) int rate = 1800; err = cbAInScan(vSet.board, 0, 7, 2880000, &rate, vSet.inrange, ScanBuff, BACKGROUND | CONTINUOUS); I used this command on USB-1608G and no error occurred, but when I used this command on USB-1808, an error occurred.(error code 35) Would you let me know how to catch the encoder signal? Your kind advice would be appreciated.
×
×
  • Create New...