You say “dedicated computer”. Desktop system? Embedded system? Does it
have a network card in it? Do you have TCP/IP or QNet or both configured?
Will your data acquisition program suffer if you shove a network card in and
start blasting data across it (missing interrupts and so on)? (By the way,
a “target” would seem to imply an embedded system)
If you have TCP/IP set up, you need to read up on how to use it (from within
C, we can suggest references). Then it’ll be obvious exactly what to do.
If you have QNet set up, you need to read up on QNX’s inter-process
communication or messaging (send/receive/reply, channels and so on,
specifically in the “across the network” environment - QNX can suggest
references). Then it’ll be obvious exactly what to do.
If you have neither set up, you need to set one or the other up.
Pardon me if I took too much of a rudimentary approach, just a wild guess
since I didn’t seem to find enough information to place your question in
context.
-Warren “Seek, and you shall find more questions” Peece
“Charles” <caw2@po.cwru.edu> wrote in message
news:a8fsbv$sth$1@inn.qnx.com…
Hi all,
Networking question, I’m looking for any input or ideas here. Should I
be
using C++ code, or Perl, or Python? My task is as follows:
We have 2 computers.
I have a C++ thread running on a dedicated computer. This computer’s
sole purpose is to get an interrupt, get analog input data, process it
(like, multiply it times 5), and write that value to analog output.
Now I would like to have this thread buzzing away on my dedicated
computer,
and change that multiplication value of 5 to, say, 8, using the other
computer, and I really want to use the Ethernet port! I would also like
the
dedicated computer to relay a message back to the supervisory computer,
like
“ok, analog now reads 3.348” or something.
Thanks for any help you can offer!
-Charles