05-16-2011 08:38 PM
I'm interested in using a LS7166 counter timer with a USB-6009 DAQ.
Currently, my code can write the required programming sequences and will read manually generated bytes of data. However, the LS7166 seems perfectly content to ignore my pleads to communicate. I'd like to know if anyone else in this community has had any experience with this chip or its cousin, the LS266R1.
I am open to suggestions. If anyone has related code, please post in this thread. I am so stuck I would happily Paypal 20 bucks to the first individual who can generate code and a hardware schematic to get these devices to behave correctly. (As a side note, this is a hobbyist controls project, not a school/college assignment).
Hardware interface:
I am currently interfacing the chip with the 12 digital in/out pins of the DAQ. Since the 6009 requires an invertor to read TTL signals, I've
temporarily connected the 8pin data bus to the 8 analog DAQ input pins to read outputs of the LS7166. (All writes are performed with the 12 digital lines).
Pin assignments:
DAQ Pin IC
Related links:
USB-6009 manual: http://www.ni.com/pdf/manuals/371303l.pdf
LS7166 manual: http://www.lsicsi.com/pdfs/Data_Sheets/LS7166.pdf
05-18-2011 09:16 AM
bcdzt5,
Taking a look at your application, it seems that you attempting a fairly unique task with National Instruments hardware. This is mainly because many of our products include counters and will perform counter tasks in a much more straightforward manner than using an external device such as the LS7166.
In order for any engineers or fellow forum posters to provide help, it would be benefecial for you to post specific questions that are related to configuring our hardware to work with the device. If the questions are related to how the LS7166 works, or how to configure it, then those questions might be better suited for LSI/CSI.
If you would like to pay someone to build your application, National Instruments offers Alliance partners (NI.com/alliance) that offer services for hire.
Regards,
Aaron
05-19-2011 10:25 PM
Aaron,
While NI certainly offers devices that can read quadrature signals in a more straightforward method, I find their cost prohibitively expensive (~550USD+). I don't believe my application justifies that nice of equipment .
My hope is that another forum member has had experience with interfacing this counter chip and that this member would be willing to share code. (I believe my code should work, but has some unseen bug).
A specific question I have for this thread relating to the 6009 is whether or not the DIO is reliable enough to program ICs. Analog loop-back testing of the DIO signals doesn't show any glitches, but I may not be sampling fast enough. Does the 6009 ever exhibit glitching*?
*I'm defining glitching as extraneous short duration pulses that could could confuse a microcontoller.
Regards,
-Brandon | bcdzt5