Below are shown the steps to take in order for the data transmission from the BS2 to MATLAB to take place.
Method 1: Indirect Communication
- 1. Have the following programs installed: Basic Stamp Editor, MATLAB, PLX-DAQ.
- 2. Have the sensors and BS2 connected, tested, and up and running.
- 3. Transfer information from the BS2 to PLX-DAQ (either through a data dump or real-time transfer).
- 4. Copy the information in PLX-DAQ and paste it into a new Excel document (optional*)
- 5. Transfer the information from PLX-DAQ to MATLAB.
- 6. Use MATLAB's advanced programming language to analyze and interpret the sensor information.
*Step 4 is optional because MATLAB usually reads the data in PLX-DAQ just fine but I use this step just in case.
Because there are numerous examples and forums available to help people connect the Basic Stamp Editor to PLX-DAQ, I will be focusing on how to connect PLX-DAQ to MATLAB. Just as the connection from the BS2 to the PLX-DAQ is setup almost entirely in the Basic Stamp Editor so the data transfer from the PLX-DAQ to MATLAB is done almost entirely in the MATLAB environment.
Method 2: Direct Communication
- 1. Have the following programs installed: Basic Stamp Editor, MATLAB.
- 2. Have the sensor(s) and BS2 connected, tested, and up and running.
- 3. Transfer information from the BS2 directly to MATLAB.
- 6. Use MATLAB's advanced programming language to analyze and interpret the information.
The following sections consist of specific examples of how I transferred data from the BS2 to MATLAB.