100 likes | 192 Views
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
E N D
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 -Start DAQ: Takes data in from the ADC board and plots it on the display
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
USB Interface Preset Menu -FPGA Reset -USB Reset -Store Data -Clear Status -Trigger -Send Text File
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!
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
Fixes & Problems • Added Test Mode & ADC Setup to the preset functions dropdown menu • Enabled it to read inputs from text file “usb.txt”
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