1 / 10

USB Project

USB Project. Ian Coulter. USB Interface. USB Menu -Download HEX File -Send Trigger -Start DAQ. USB Interface. USB Menu -Download HEX File: Gives the USB its logic settings. Without this it cannot recognise the input commands. -Send Trigger: Must be on to receive data from the ADC

tauret
Download Presentation

USB Project

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. USB Project Ian Coulter

  2. USB Interface USB Menu -Download HEX File -Send Trigger -Start DAQ

  3. USB Interface USB Menu -Download HEX File: Gives the USB its logic settings. Without this it cannot recognise the input commands. -Send Trigger: Must be on to receive data from the ADC -Start DAQ: Takes data in from the ADC board and plots it on the display

  4. USB Interface The number of data readings per DAQ for each channel Choose single or continuous data acquisition Sends the command in the “Value to Write” box

  5. USB Interface Preset Menu -FPGA Reset -USB Reset -Store Data -Clear Status -Trigger -Send Text File

  6. Useful Commands FPGA Reset (aa ff) – Clears list of commands entered. Must be done before every new program. USB Reset (aa fe) – Removes logic settings from USB Send Text File (usb.txt) – Reads the commands from a text file “usb.txt” ADC Setup (aa 04) – Sets up to receive data from the ADC Test Mode (aa 06) – Uses test data (sawtooth pattern) After each command, click “Write To Endpoint”. DON’T PRESS ENTER!

  7. Typical Program • USB  Download HEX File  “adcusb.hex” • FPGA Reset (aa ff)  write to endpoint • ADC Setup (aa 04)  write to endpoint • Test Mode (aa 06)  write to endpoint • Choose other settings (# of readings, etc …) • USB  Start DAQ

  8. Typical Program

  9. Fixes & Problems • Added Test Mode & ADC Setup to the preset functions dropdown menu • Enabled it to read inputs from text file “usb.txt”

  10. The Future? • Work out which parts of code apply to the data transfer • Compile these into a DLL (Dynamic Link Library), a directory of commands • Enable the USB interface to read from this DLL • Enable Labview to call up DLL commands

More Related