From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Datasockets Help

I am working on an application that collects an array of data from four IR
sensors. I would like to have this application send the data over our LAN to
a computer that the operator or engineer will use.

Could someone point me in the right direction? To start just a simple
application that sends a small array from one PC and charts it on the second
PC.

Confused
Doug
0 Kudos
Message 1 of 2
(3,403 Views)
> I am working on an application that collects an array of data from four IR
> sensors. I would like to have this application send the data over our LAN
to
> a computer that the operator or engineer will use.
>
> Could someone point me in the right direction? To start just a simple
> application that sends a small array from one PC and charts it on the
second
> PC.

Doug,

Have you checked out the DSReader and DSWriter sample programs? If you run
the DataSocket server and then launch those two examples, you'll see an
example that is pretty close to what you are doing. The DSWriter is an
example of your data collection. In the example, arrays of sine wave data
of varying frequency are computed and sent to the DataSocket server. The
DSReader example can connect to t
he DataSocket server to read those data
packets. You can run the examples on your own machine or on two different
machines. If you are running on different machines, be sure to adjust the
URL so that it points to the right place.

Hope that helps!

Jason
0 Kudos
Message 2 of 2
(3,403 Views)