Search the Community

Showing results for tags 'matlab'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • New Users Introduction
    • Announcements
  • Digilent Technical Forums
    • FPGA
    • Digilent Microcontroller Boards
    • Non-Digilent Microcontrollers
    • Add-on Boards
    • Scopes & Instruments and the WaveForms software
    • LabVIEW
    • FRC
    • Other
  • General Discussion
    • Project Vault
    • Learn
    • Suggestions & Feedback
    • Buy, Sell, Trade
    • Sales Questions
    • Off Topic
    • Educators
    • Technical Based Off-Topic Discussions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. Hi all, Maybe it's just a small detail that is missing but I don't know how to solve it exactly. I’m trying to communicate my laptop with my ZedBoard but for some reason, it suddenly stops. I follow the procedure indicated in instructions included with the ZedBoard package and are also indicated in this tutorial. I download the USB to UART adapter driver (controller version 3.13.0.59) by Cypress which controls the USB serial port (in this case COM9). The device is identified as Cypress-USB2UART-Ver1.0G. The settings form COM9 are like the figures. When I turn on the ZedBoard wi
  2. I'm a newbie here and I’m working on a inverter test bench project where I have two three-phase inverters connected through an inductive load. The idea is to emulate in real time the behave of an electrical machine. To be clearer, the first inverter is going to be tested (Device Under Test) and the second one plus the inductive load must behave like an electrical machine. To do so, we are going to use a FPGA board, which must have the following specifications: - Capable to drive both inverters switching at 50kHz (each inverter has 6 MOSFETs switching at this frequency) - 20 digital I
  3. Is it possible to control the power supply and set the voltage of the positive and negative respectively? The aquisition toolbox of matlab (2019a) doesn't allow the possibility of controlling the power supply. The closets solution seems to be to use a h-file library from the SDK (see below). However the header of the h-file (dwf.h) says "This spans all 4 main instruments supported by the WaveForms system: Analog In, Analog Out, Analog I/O, and Digital I/O", the text doesn't leave any information about that the supply can be controlles as well. Further, looking through the functions in t
  4. Dear all, I'm using Vivado 2018.3 and a Zybo Z7010 board. I have finally finished my project (I actually owe this forum much), and I am now trying to use the board without having to open nor Vivado neither the SDK. Basically, I know that I can program the QSPI flash memory of the board so that the program can run without having to upload it. How this works is still unclear, is switching from JTAG to QSPI enough or should I do something on Vivado? However, I am also using the Zynq processor which runs an application that I start from the SDK. Can I avoid opening the SDK?
  5. Hello everyone! I'm Harri, an EE Master's student. Me and my team are currently working on assignments for three different courses around the topics of FreeRTOS, digital filtering and hardware-in-the-loop with MATLAB and Simulink. We are using the Zybo Z7-10 board and Vivado/SDK v.2018.2. In the first project, we are trying to use the Xilinx port of FreeRTOS to run a control engineering state-space-model on the ARM side. The vision is to have the model, which is a DC-converter, run at 10 kHz and the output of the model is shown as PWM to the onboard RGB LED. The project should
  6. I am kind of new on electronics. I am trying to set a trigger connection to analog discovery 2(AD2) from matlab. Since matlab has a supporting package of AD2 for data acquisition tool, I tried to set a trigger with the function addTriggerConnection() but i got the message You cannot use "addTriggerConnection" with Digilent hardware. Is there any other suggestions on how to trigger data Recording from matlab data acquisition tool for AD2.
  7. Hey there I'm thinking about to get a AD2 for my project and I want to make sure, if everything will be working fine. I want to achive a closed loop with the AD2. I want to set a PWM to control a motor though the Matlab Data Acquisition Toolbox and check simultaneously the pulse signals of the hall sensor with the ADC. Is this possible? The ADC should work with 10Ms/s to get the data. The PWM will be around 20KHz Square/Sinus output. Thanks in advance
  8. Hi, I'am currently using my AD2 in Matlab 2018b and altough I'm capable of using some functionalities (the ADCs, for ex), I couldn't find a way of setting the power supply. Which, by the way, is doable in Waveforms. Does anyone know how can I set the DC power supply from Matlab? Thank you in advance for your time!
  9. Hello For a project I have to analyze two analog signals at a frequency of 78.4 kHz. Sampling rate must be at least 1 MHz. I have a Analog Discovery 2, I generate for now a signal square of 100kHz. I can observe this signal but only on a few periods. I wish I could get them back on a spreadsheet excel in order to treat them with Matlab. I can get a spreadsheet excel, but only with 8000 values, or I would need 1M values. Is it possible with a Analog Discovery 2 ?
  10. I wish to use the Analog Discovery 2 as a power supply for a set up which will involve variable currents through a helmholtz coil configuration in order to model the Upper Atmosphere's Magnetic Field. I will be running a real time model in Simulink that will contain values of the magnetic field in several directions. I have the coils set up so that a known current, and thus voltage, should be able to create the magnetic field in the center, which will be detected by a magnetometer. I would like to send the Simulink values to the Analog discovery to alter the voltage output of the Analog Discov
  11. 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') loadlibra
  12. It is my understanding that the dual processor in a ZYBO board can be used in parallel, each with their own code. I have a project where I need to run two parallel tasks, one of which was developed in SDK and the other in MATLAB using Embedded Coder. I know how to target a specific processor using Vivado/SDK, however, when using Embedded Coder in MATLAB this is more difficult to achieve and I haven't found a way to do it yet (i.e. I can upload my code onto the board but there's no indication of which processor it is using). Therefore, I was wondering if there is any way I can check the co
  13. Hi, I have been working on system generator Matlab r2017a. I have encountered a problem. I couldn't find the boards in hardware co-simulation.I need boards files to add. Can anyone help? Where can i find the files? Regards, Chandu
  14. Some questions about Matlab compatibility with Analog Discovery Module before I make a purchase. First, is the Analog Discovery hardware version 2 driver the same as version 1? Matlab tech rep says there is no listing for version 2. I want to make sure which versions are supported by matlab. Second, besides typical DAQ features, can Matlab control the digital I/O and the power supplies? I'm wondering if all the features of Analog Discover are supported by Matlab DAQ toolbox and Simulink? Thanks
  15. Hello All, I see that the data acquisition toolkit( MATLAB ) supports the original Discovery module. Has anyone tried the Discovery 2 with Matlab ? I am debating weather or not to get the toolkit. Thanks !
  16. Hello. I have to adjust the speed (baud), parity bit (if I want), stop bit. For both software alike. I would like to know if anyone has that code in VHDL / VERILOG ? (UART/JTAG)
  17. I hear you may be working on at Matlab interface for the AD2 but in the meantime it seems it would be possible to use the API in the SDK to talk to the AD2 directly. I am somewhat new to this and can see two ways to go. One would be to use VISA which Matlab supports through the instrument control toolbox. However when I install NI VISA I can't detect the AD2 so maybe it isn't VISA compatible? Am I missing something here? Another way would be to use the included Python scripts and call Python from Matlab (http://www.mathworks.com/help/matlab/call-python-libraries.html). This seems a littl
  18. Hello, I have created a TCP server on Xilinx Zynq 7000 Zedboard and TCP client on MATLAB on host computer. Zedboard and the host computer are connected through the Ethernet. The client requests the connection to the server, SYN, SYNACK and ACK packets are delivered successfully and the connection is established. (Packets are monitored on wireshark on the host computer). Now, If the client keeps sending the data continuously to the server, then server receives the data and process them. BUT the server crashes if I take some time interval in sending the data. For example: If I send data fro
  19. Dear, Hello, I've considered using Analog Discovery for 100MHz ( >20MHz) ADC. I have some questions about it. I found some discussion that Matlab does not provide connection to Analog Discovery 2. Have you ever used Matlab Data Acquisition Toolbox to connect Analog Discovery 2? I wonder if the data acquisition toolbox only support Analog Discovery (old version). I have one more question. I'd like to measure 4 channels simultaneously. Can I use two Analog Discovery modules simultaneously? and is it able to run two S/W to handle two Analog D
  20. I am trying to control the analog discovery 1 with MatLab commands for the project that i am on. We can control everything except the +-5v power supply. We need it to power an op-amp we have in the circuit. Does anyone know the MatLab command to turn on the Power Supply in the Analog Discovery?
  21. Good afternoon everyone, I am working on a project to connect the Zedboard and FMCOMMS2 using the HDL workflow advisor. What I want to do is to have the Zynq FPGA (PL, not the processor) generate samples of a sine wave and send these to the RF for transmission FMCOMMS2, and to have this system operating stand-alone, without any further connection to the PC running Simulink. It seems to me that, the way I have the project set up, I need to keep Simulink connected to the board, even if it is not doing any processing. If I disconnect the ZedBoard from the PC, I get an er
  22. Hi I want to record approx 50-1000 us long square wave signals from a separate waveform generator with Analog Discovery (Portable Analog Circuit Design Kit) via Matlab. The official Matlab code for recording with an Analog Discovery does not work (http://se.mathworks.com/help/daq/examples/getting-started-acquiring-data-with-digilent-analog-discovery.html?search). Instead, the program is continuously busy when executing startForeground(s) and does not produce results. The official Matlab code for waveform generation and acquisition at the same time (http://se.mathworks.com/help/d
  23. Hello, I am working on preparing Labs for my Circuit class using Digilent Analog Discovery (Real Analog - Circuits 1) and I have a question about MATLAB files. In a few labs, he mentions about required MATLAB files in order to complete the lab. For example, in Lab 12.4.1, this is the line that I have copied from the PDF document: "The calculations are simple, but rather tedious. The MATLAB m-file associated with this lab can be used to streamline these calculations. Run the m-file and input the appropriate resistance values when prompted. Assume that the inductor resistance is zero for the pr
  24. I would like to use the Analog Discovery via the MATLAB DAQ interface. I would like to output a custom signal to both AWG1 and AWG2 simultaneously. I am able to produce a signal on a single channel using the following code (where output1 is an array of 0s or 3.3s to produce a square wave). When I monitor this at the headphone jack I receive a frequency sweep in my right ear. s=daq.createSession('digilent') ; ch=s.addAnalogOutputChannel('AD1',1,'Voltage'); s.Rate=100e3; s.queueOutputData(output1.'); s.startForeground; If i change the second line to this: ch=s.addAnalogOutputChannel('AD1'
  25. Hello everyone, I have a quick question regarding the Zynq 7000-Development Board. I will be inputting a sound into the board, filtering and delaying the sound, and emitting the new sound through another speaker. My question is if the board has a built in audio codec to produce the new sound or will I have to develop some code for an audio codec? I have been looking at the product page and I haven't really noticed anything saying that it does. If I do need to produce code for an audio codec, would anyone have some links to help me get started in creating some code? VHDL or Matlab (I heard