Jump to content

attila

Technical Forum Moderator
  • Posts

    6,649
  • Joined

  • Last visited

Everything posted by attila

  1. Hello, The USB Controller of Analog Discovery 2 is always powered from USB, therefore it needs a minimal USB power. Could you try using another USB cable or powered USB hub ?
  2. Does "USB Serial Converter" or any other device show up in Windows Device Manager when connecting the AD ?
  3. Hello, The USB packets are randomly lost or altered with Analog Discovery (1 & 2) on Raspberry Pi (1 & 2). With RPi1 this happens too often. With RPi2 it manages to configure the device, but later it receives wrong status information. Due to this, the application sees randomly having unpowered, 0V, 0A device... Similarly it could receive wrong acquisition data too. I suppose some low level USB library/firmware timeout issue is causing this problem. I have not yet tried RPi3 but it looks like the problem is the same. See the earlier post:
  4. Hi Jon, Could you provide more information ? Which OS are you using ? In case it is Windows: Do you see "USB Serial Converter" appearing in Windows Device Manager ? Make sure the driver version is not 2.12.4 For the solution see the following post: If the driver version is good, probably some other application did overwrite the EEPROM content. Try reprogramming it using the application I sent you in private message.
  5. Please try restarting the Mac without the AD2 connected, try using another USB port or USB hub. Let me know if it is working or you need further assistance.
  6. Hello, In virtual machine options try to disable USB 2.0 support, at least this helps me when using VirtualBox. I'm using 15' MacBookPro too with dual boot to OS-X and Windows using Boot Camp, and Analog Discovery is working well. The left side USB port on 13' MacBookPro seem to provide insufficient power. You might try the new cross-platform WaveForms3 beta version with Windows/OS-X/Linux support. https://forum.digilentinc.com/topic/98-waveforms3-beta/
  7. Hello, When connecting the device probably it was looking for driver update. The device should work with the provided driver as well with the one found by update. Having the device plugged, in Windows Device Manager under USB controller, select USB Serial Controller and try Update Driver software. As the device configuration is programmed the consumption increases a bit and having insufficient power could cause error. Please try the following: - Try to use different USB cable and computer plug. - Use the USB plug on the back of the PC, not the one on the front panel. - Use short cable, do not use long cable or cable extender. - Use powered USB-hub, avoid un-powered hub. - Try USB 2.0 plug of your computer or try using USB 2.0 hub. What is the model of your computer/laptop and which Windows version are you using?
  8. I don't have too much MatLab experience either. I don't even have it installed at the moment. Looking at the documentation the function calling and data passing should look like this: http://www.mathworks.com/help/matlab/matlab_external/working-with-pointers.html http://www.mathworks.com/help/matlab/matlab_external/passing-arguments-to-shared-library-functions.html ... % opened device id hdwf = phdwf.Value; % set parameter calllib('dwf', 'FDwfAnalogInFrequencySet', hdwf, double(20000000.0)) ... % configure and start scope acquisition calllib('dwf', 'FDwfAnalogInConfigure', hdwf, 0, 1) % wait to finish pstate = libpointer('int8Ptr',0); while true calllib('dwf', 'FDwfAnalogInStatus', hdwf, pstate) if pstate.Value == 2 % Done; break; end end pData = libpointer('doublePtr', zeros(1,8192)); % get the acquired samples for first channel (0) calllib('dwf', 'FDwfAnalogInStatusData', hdwf, 0, pData, 8192) display(pData.Value)
  9. The MatLab DAQ toolbox support for Analog Discovery offers limited functionality, but the underlying WaveForms SDK functions can be accessed too. For manual and examples in Python and C++ see the SDK located in the default Windows installation path: - 32bit C:Program FilesDigilentWaveFormsSDK - 64bit C:Program Files (x86)DigilentWaveFormsSDK function DWFtest(); % 32 bit system %hfile = 'C:Program FilesDigilentWaveFormsSDKincdwf.h'; %64 bit system hfile = 'C:Program Files (x86)DigilentWaveFormsSDKincdwf.h'; display(['Set variable hfile: ' hfile]); if ~libisloaded('dwf') loadlibrary('dwf', hfile); end islibloaded = libisloaded('dwf'); fprintf('Check if dwf library is loaded: islibloaded = %dn',islibloaded) % This is necessary to get the character strings pBuffer = libpointer('int8Ptr',zeros(32,1)); calllib('dwf','FDwfGetVersion',pBuffer); display(['Version: ' char(pBuffer.Value')]); %Just opening and making sure the device is in a known state phdwf = libpointer('int32Ptr',0); calllib('dwf','FDwfDeviceOpen',-1,phdwf); display(['FDwfDeviceOpen returned: ' num2str(phdwf.Value)]) % Close device and unload library if phdwf.Value > 0 calllib('dwf','FDwfDeviceCloseAll'); end unloadlibrary('dwf') end
  10. attila

    Cmod S6 Quad Spi

    The CMOD S6 has a 128Mbit (16MByte) S25FL128S QSPI Flash. https://www.digilentinc.com/Data/Products/CMOD-S6/Cmod%20S6_sch.pdf This can be programmed using Xilinx iMpact. 1. Create BIT file using ISE - make sure the Generate Programming File/ Properties/ Startup Options/ FPGA Start-Up Clock is CCLK - otherwise iMpact will prompt and fix this CCLK option - optional: to speed up the boot process increase the "Configuration Rate" and "Set SPI Configuration Bus Width" to 4 2. Create .MCS file - start iMpact, (press No then Cancel) - Create PROM File, SPI Flash, Configure Single FPGA, ->, 128M(bit), Add Storage Device, ->, browse desired "Output File Location", OK - Add Device - OK, locate the earlier ISE generated BIT file, No, OK, Generate File... 3. Flash programming - start iMpact, (press No then Cancel) - Boundary Scan, Initialize Chain - Right click on SPI/BPI above the FPGA symbol, Add SPI/BPI Flash, locate the .mcs file, SPI PROM, S25FL128S, (optional: for faster programming set Data Width 4) - Right click FLASH, Program, OK
  11. In case your Electronics Explorer board is not detected by WaveForms application try to do the followings: 1. Check if it is properly supplied with 12V and the Red Power LED is on? The USB controller is powered by this supply, connecting only the USB cable is not suffice. 2. Check if the Yellow USB LED is on when the USB cable is connected? Otherwise, try to use another micro USB cable and computer plug. 3. Remove the board supply, wait a minute then connect it back. Do this, to make sure that all the internal circuits are reset. 4. Check the Windows Device Manager if any new device is listed after you supply the board or connect the USB? It should appear: Digilent USB Device or Unknown Device. 5. In case you see Digilent USB Device but it is not detected by WaveForms: restart the computer, reinstall the application including the Adept Runtime section. 6. In case you see Unknown Device, verify the Hardware IDs under Properties, Details tab. If this is USBVID_04B4&PID_8613... Use this application reprogram the USB EEPROM: DigilentFX2Repair.exe
  12. During device opening internal chips are enabled and configured. This results in consumption increases, specially when the 100 MHz clock (PLL) is started. The needed current increases from 100mA to 500mA. In case the USB can't provide enough current the voltage drops below the minimal required for the device to operate and communication fails. In case you get “Device configuration failed (PLL 1)" or "Communication with the device failed.” error message: The device needs at least 2W/400mA from USB cable. To satisfy this: - Try to use different USB cable and computer plug. - Use the USB plug on the back of the PC, not the one on the front panel. - Use short cable, do not use long cable or cable extender. - Use powered USB-hub, avoid un-powered hub. - Use USB-Y cable to load power from two plugs. Device not detected by WaveForms: Open Windows Device Manager then connect the device and wait up to one minute for a device to appear: - USB Serial Converter, with warning - Connect the device directly to the computer's USB plug without using external hub. - Restart the computer. - Reinstall WaveForms, including the Adept Runtime section. - USB Serial Converter, without warning - Restart the computer. - Reinstall WaveForms, including the Adept Runtime section. - Other application might have erased the USB controller EEPROM (FT_Prog, programming cable drivers...) Use the "My device is not listed" button in WaveForms application Device Manager to reprogram the EEPROM. - Unknown Device Check the Hardware IDs under device Properties, Details tab - USBVID_0403&PID_6014 The USB driver is not installed. - Restart the computer. - Reinstall WaveForms, including the Adept Runtime section. - USBVID_0000&PID_0000 Device not identified or malfunction. See "Nothing shows up". - Nothing shows up: - Connect the device directly to the computer's USB plug without using external hub. - Try to use different USB cable and computer plug. The device or its plug might be damaged.
×
×
  • Create New...