# What are the VB6 commands to input data from 2 analog channels from an xbee system?

**URL:** <https://forums.digi.com/t/what-are-the-vb6-commands-to-input-data-from-2-analog-channels-from-an-xbee-system/13700>\
**Category:** Other & Legacy Products\
**Tags:** rf, vb6, mscomm, xbee\
**Created:** [October 7, 2014, 8:26am UTC](https://forums.digi.com/t/what-are-the-vb6-commands-to-input-data-from-2-analog-channels-from-an-xbee-system/13700 "2014-10-07T08:26:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rod1](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@Rod1](https://forums.digi.com/u/Rod1)\
**Post date:** [October 7, 2014, 8:26am UTC](https://forums.digi.com/t/what-are-the-vb6-commands-to-input-data-from-2-analog-channels-from-an-xbee-system/13700/1 "2014-10-07T08:26:51Z")

</div>

I have an Xbee/Shield/Redboard transmitter with sensors connected to two analog inputs. The receiver is an Xbee/Explorer. I’d like to capture 100 samples/sec for each channel using VB6 with mscomm. Any help with the commands would be appreciated.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [October 9, 2014, 11:38am UTC](https://forums.digi.com/t/what-are-the-vb6-commands-to-input-data-from-2-analog-channels-from-an-xbee-system/13700/2 "2014-10-09T11:38:35Z")

</div>

The ADC data will be sent out the UART of the XBee connected to the PC in Hex API frames. You are going to need to write your 3rd party application to read Hex API frames coming from the COM port. If you are not sure how to read serial data or access a COM port, I would suggest checking Microsoft web site for commands and functions for VB.
