Oh, thanks for explaining. I’ve just obtained from Kelvin of Diamond a suit
of program for their A/D board (DMM-32-AT) and trying to learn from them.
What I concern about writing these stuffs is that I don’t know the rules of
QNX. I have just read the article “Talking to hardware under QNX Neutrino”
and the use of ThreadCtl in accessing IO privilege. Do know other stuff that
I should aware of?
Derek
Bill Caroselli (Q-TPS) <QTPS@EarthLink.net> wrote in message
news:a7vjsf$eir$1@inn.qnx.com…
OK. Let me explain.
The hardware that I worked with simply had you read or write an IO port
and
get back an 8 bit or 16 bit value (for different hardware). Their
documentation told you how to translate to/from the binary to millivolts
or
volts. So your basic set() or get() function becomes a input or output
byte
or word with a multiplier to/from the units of measure that you want to
use.
Second step, I wanted to know when an input value changed. SO I wrote a
driver that woke up every say 10 ms and polled all the input ports. It
stored those values in a table. Now when someone wants to know a value
you
didn’t have to read the IO port just look it up in the table and translate
it. But since I didn’t want the application(s) to be woken up every 10
ms,
each application would register a min/max threshold. If the input voltage
reached or exceeded a threshold then that application would be woken up by
the driver.
Let em know if you still need help.
“kwchan” <> kawachan@hko.gcn.gov.hk> > wrote in message
news:a7tu75$6v3$> 1@inn.qnx.com> …
Yes, you can say it is very simple until you have gain much experience
but
sure not for the beginners especially for all QNX beginners!
“Bill Caroselli (Q-TPS)” <> QTPS@EarthLink.net> > ¼¶¼g©ó¶l¥ó
news:a7su3p$f1n$> 1@inn.qnx.com> …
I’m hoping you meant NOT difficult. I have written A/D, D/A and DIO
for
several pieces of hardware.
If you think this is difficult, give me the spec sheet for your
hardware
and
I’ll write a driver for you.
Bill Caroselli - 1-(626) 824-7983
Q-TPS Consulting
QTPS@Earthlink.net
“kwchan” <> kawachan@hko.gcn.gov.hk> > wrote in message
news:a7rlbu$4vk$> 1@nntp.qnx.com> …
It is difficult to write the A/D D/A stuff and can you tell how it
was
done?
My application only requires to take one samples per second from
several
A/D
channels.
K.W.Chan
“Lawrence R. Sweet” <> larry@fuelcelltechnologies.ca> > ¼¶¼g©ó¶l¥ó
news:a7qbpk$guk$> 1@inn.qnx.com> …
Yes, we wrote our own routines to do the A/D, D/A
stuff. Our sales rep said that they are currently working
on adding QNX support to their generic driver software.
“Derek Chan” <> kawachan@hko.gov.hk> > wrote in message
news:a7pnsu$35h$> 1@inn.qnx.com> …
Did you use the A/D converters?
Did Diamond solve problems related to QNX?
Derek
Lawrence R. Sweet <> lrsweet@cogeco.ca> > wrote in message
news:a7o7na$dt$> 1@inn.qnx.com> …
We use this board with QNX 4.25. Everything seems to work ok
although
we
did have a problem using a NI GPIB card. When we installed
the
GPIB
card
the CPU failed to boot. We needed to get a special card with
some
pull
ups/downs to solve the problem. Diamond says the fix will be
goin
into
RevD
of the board in the next few months.
Larry
“Derek Chan” <> kawachan@hko.gov.hk> > wrote in message
news:a7cime$fhb$> 1@inn.qnx.com> …
This board comes from Diamond Systems. Does any one has
experience
using
this CPU board for embedding QNX6?
This board features a low power CPU ZFx86, 16 x 16 bit A/D,
4
x
12
bits
D/A,
4 serial ports, 2 USB ports, IrDA, parallel port, IDE. These
combination
fulfill most of the requirements for embedded data
acquisition
applications.
Does any one know if there are any similar products in the
market?
Thanks in advance for any advice.
Derek
\