FTDI EEPROM update
This is only needed once for rev -01 PCB boards from initial shipment!
- Connect your AnalogMAX DAQ2 via USB with your computer.
- Change FTDI FT2232H Port B to "OPTO Isolate" mode.
- Download FT_Prog 22.214.171.1242 from here.
- Install FT_Prog.
- Start FT_Prog.
The window should look like Figure 1.Figure 1: FT_Prog started
- Press "F5" or select "DEVICES → Scan and Parse" to find the FTDI chip.
The window should look like Figure 2.Figure 2: FT_Prog port scanned
- Open the "Hardware Specific → Port B → Hardware" as visible in Figure 2.
- Select "OPTO Isolate" on the right side, as visible in Figure 3.Figure 3: FT_Prog "OPTO Isolate" selected
- Then, press "Ctrl+P" or select "DEVICES → PROGRAM" to change your FTDI FT2232H Port B to "OPTO Isolate" mode.
- Press "Program" in the new window, as visible in Figure 4.Figure 4: FT_Prog "Program Devices"
- After that, press "Cycle Ports" in the window shown in Figure 4 and then press "Close".
- After pressing "F5" and opening the path "Hardware Specific → Port B → Hardware", as visible in Figure 2, the value "OPTO Isolate" should be selected.
FPGA image update
- Download the files for this demo here.
- Program the FPGA with new POF file.
- Download Quartus Prime Software (Version 18.1) (Lite Edition is sufficient) from here.
- Install Quartus Prime.
- Install Arrow-USB-Blaster-Setup-2.2.exe from here.
- Start the Quartus Prime Programmer. The window should look like Figure 5.Figure 5: Quartus Prime Programmer started
Press "Hardware Setup..." and select "Arrow-USB-Blaster [USBX]" in "Currently selected hardware" as visible in Figure 6, whereby the "X" in [USBX] is a placeholder.Figure 6: Quartus Prime Programmer Hardware Setup
Then, press "Close" and return to the previous window. The window should look like Figure 7.Figure 7: Quartus Prime Programmer Hardware Devices Setup
After that, use "Add File..." to select the file "TEI0016-01.pof" from the downloaded zip-file to program the FPGA. The window should look like Figure 8.Figure 8: Quartus Prime Programmer POF selected
Mark the "Program/Configure" box for the selected file. Then, the window should look like Figure 9.Figure 9: Quartus Prime Programmer POF selected
- To program the FPGA use the button "Start".
- The Quartus Prime Programmer can be closed.
Integration with Visual Analog
- Figure out the correct COM port number for the AnalogMAX DAQ2 board.
- Open the device manager.
Open ports and identify the port used by the AnalogMAX DAQ2 as visible in Figure 10.Figure 10: Device Manager for COM port identification
- Setup Visual Analog "External Tools..." custom menu item to launch adcapture.exe with commandline parameters.
- Download "Visual Analog" from here.
- Install "Visual Analog"
Start "Visual Analog" and open a "Blank canvas". After that, the window should look like Figure 11.Figure 11: VisualAnalog started
Open the file "AnalogMAX_DAQ2_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
- Then change the Sample Frequency in the "Pattern Loader" to 0,5 MHz as shown in Figure 13. Attention: The "," has to be used and not the ".".
- After that, change the "Resolution" and the "Alignment" to 16 Bit by clicking on the "Input Formater".Figure 13: VisualAnalog Sample Frequency changed
- Press "Tools → External Tools..." to prepare the usage of the adcapture.exe.
- 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".
- Insert "COM20,115200 1024 c:\temp\capture.txt 7" for the "Arguments", whereby the COM port has to be the above found port. The parameters are the COM port (COM port 20 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".
- Launch adcapture.exe and after completion click run to update the screen.
- Select the above inserted tool by selecting "Tools → adcapture".
A window shows the activity of the tool "adcapture", as visible in Figure 14.Figure 14: Adcapture.exe output
Then, using "F5" or "Canvas → Run" uses the information to create the graph in the previous window, as visible in Figure 15.Figure 15: VisualAnalog data interpretation
Quick test with a terminal program
- Figure out the correct COM port number for the AnalogMAX DAQ2 board
- Open the device manager.
Open ports and identify the port used by the AnalogMAX DAQ2 as visible in Figure 10.
- Open terminal and set the parameters (example use for putty).
- Set the connection type to Serial.
- Set the "Serial line" to your above found COM port.
- Set the "Speed" to 115200.
- Use "Open" to start the connection.
- Type following character for the appropriate usage.
- "?" to get the ID (AnalogMAX DAQ2 will return "2")
- "t" to trigger ADC capture into the memory - 1M samples.
- "." to get one ADC sample.
- "+" to get 128 samples.
- "*" to get 16*1024 samples.
VisualAnalog parameter description (COM20,115200 1024 c:\temp\capture.txt 7)
- COM20 - 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;).