Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Requirements

The Data Capture Demo requires that the modules:

...

  1. Figure out the correct COM port number for the AnalogMAX DAQ1 board
    1. Open the device manager.
    2. Open ports and identify the port used by the AnalogMAX DAQ1 as visible in Figure 10.


      Figure 10: Device Manager for COM port identification

  2. Setup Visual Analog "External Tools..." custom menu item to launch adcapture.exe with commandline parameters
    1. Download "Visual Analog" from here.
    2. Install "Visual Analog"
    3. Start "Visual Analog" and open a "Blank canvas". After that, the window should look like Figure 11.


      Figure 11: VisualAnalog started

    4. Open the file "AnalogMAX_DAQ1_Capture.vac" from the downloaded zip-file via "File → Open...". The window should look like Figure 12


      Figure 12: VisualAnalog AnalogMAX_DAQ1_Capture.vac loaded

    5. Press "Tools → External Tools..." to prepare the usage of the adcapture.exe.
    6. Click "Add" in the opened window and insert the name "adcapture" in the "Display Text". Select the file "adcapture.exe" from the downloaded zip-file after using the button "Browse..." for the "File Name" and insert "COM14,115200 1024 c:\temp\capture.txt 7" for the "Arguments". The parameters are the COM port (COM port 14 in our case), the baud rate, the number of samples, the location to store the data and a value to adjust the system. Then, click on "Ok".
  3. Launch adcapture.exe and after completion click run to update the screen
    1. Select the above inserted tool by selecting "Tools → adcapture".
    2. A window shows the activity of the tool "adcapture", similar to Figure 13.



      Figure 13: Adcapture.exe output
    3. Then, using "F5" or "Canvas → Run" uses the information to create the graph in the previous window, as visible in Figure 14.


      Figure 14: VisualAnalog data interpretation

VisualAnalog parameter description (COM14,115200 1024 c:\temp\capture.txt 7)

  • COM14 - COM port which is used for the connection.
  • 115200 - Baud rate which is used for the connection.
  • 1024 - Amount of K samples to read (minimum 64).
  • c:\temp\capture.txt - File and path which specifies the storage of data.
  • 7 - Command to adjust the gain (4 - 1; 5 - 2; 6 - 4; 7 -8;).

Quick test with a terminal program

  1. Figure out the correct COM port number for the AnalogMAX DAQ1 board
    1. Open the device manager.
    2. Open ports and identify the port used by the AnalogMAX DAQ1 as visible in Figure 10.

  2. Open terminal and set the parameters (example use for putty).
    1. Set the connection type to Serial.
    2. Set the "Serial line" to your above found COM port.
    3. Set the "Speed" to 115200.
    4. Use "Open" to start the connection.
  3. Type following character for the appropriate usage.
    1. "?" to get the ID (AnalogMAX DAQ1 will return "1")
    2. "t" to trigger ADC capture into the memory - 1M samples.
    3. "." to get one ADC sample.
    4. "+" to get 128 samples.
    5. "*" to get 16*1024 samples.

VisualAnalog parameter description (COM14,115200 1024 c:\temp\capture.txt 7)

  • COM14 - COM port which is used for the connection.
  • 115200 - Baud rate which is used for the connection.
  • 1024 - Amount of K samples to read (minimum 64).
  • c:\temp\capture.txt - File and path which specifies the storage of data.
  • 7 - Command to adjust the gain (4 - 1; 5 - 2; 6 - 4; 7 -8;).

...

    1. .