Potentiometers are generally analog inputs which can be easily read through the pins on the arduino ! refer to the analogIn functions and a simple schematic on the arduino playground on how to do it !
Further the only interface through which the arduino can talk to any other software on a host (PC) is basically through the serial port.
so having said that
analogin --> Arduino --> serial.print --> matlab code
By 500 data do you mean the number of signals , if so the waveform viewer within Quartus II shold still be a right fit as i remember debugging with a high signal count. A wise thing to do would be to see if the setting of the Simulation helps to achieve the same.
There are two different ways to validate the design :
1) A functional verification
2) In system verification
Functional verification is device independent and it could be done using a simulator in-built within Quartus II or dedicated tools like ModelSim, EDA Simulator Link tool from the mathworks. In-order to read the test vectors that your C code generated you will have to output the test vectors to a file and then model sim can read the text file's input.
The pre-requisite to get started is to explore how to write testbenches and this will easily solve the issue.
2) In system verification is a technique to test the circuitry that you designed within the programmable device like the FPGA/CPLD and there are dedicated tools that enable debugging as well as probing signals within the circuit. In quartus II you could use the Signal Tap II logic analyzer to achieve this .
Finally, as a design approach a HDL design always starts with a functional verification and i think that is what you should be doing first!
Potentiometers are generally analog inputs which can be easily read through the pins on the arduino ! refer to the analogIn functions and a simple schematic on the arduino playground on how to do it !
Further the only interface through which the arduino can talk to any other software on a host (PC) is basically through the serial port.
so having said that
analogin --> Arduino --> serial.print --> matlab code
i want to ask about the interface with arduino and matlab..i am now trying to get the data from potentiometer which is attached at my stepper motor shaft..can anybody tell me how to get the data from potentiometer through arduino board to my computer(MATLAB) and try to plot the graph at the same time?..i have the code to plot the graph but i cant run both files at the same..
either i run my motor or get data from potentiometer by turning the potentiometer myself..so how do i solve this??..
Hi Mustapha,
By 500 data do you mean the number of signals , if so the waveform viewer within Quartus II shold still be a right fit as i remember debugging with a high signal count. A wise thing to do would be to see if the setting of the Simulation helps to achieve the same.
An other option is to try this
http://www.altera.com/products/software/quartus-ii/modelsim/qts-modelsim-index.html
Since the tool is free and there is an excellent video demos by these guys !
Sreeram
Comment only
17 Feb 2010
Matlab Link to Quartus II
Uses Tcl script utility of the quartus II EDA tool to automate the design flow from a matlab GUI
thank you
the circuit is conceived in VHDL under II quartus, my problems it is to apply several data (5OO data) to the entries of the VHDL circuit (the publisher wevform is not sufficient). the data to apply are souvegarder in an one file text.
Comment only
16 Feb 2010
Matlab Link to Quartus II
Uses Tcl script utility of the quartus II EDA tool to automate the design flow from a matlab GUI
Hi Mustapha,
There are two different ways to validate the design :
1) A functional verification
2) In system verification
Functional verification is device independent and it could be done using a simulator in-built within Quartus II or dedicated tools like ModelSim, EDA Simulator Link tool from the mathworks. In-order to read the test vectors that your C code generated you will have to output the test vectors to a file and then model sim can read the text file's input.
The pre-requisite to get started is to explore how to write testbenches and this will easily solve the issue.
2) In system verification is a technique to test the circuitry that you designed within the programmable device like the FPGA/CPLD and there are dedicated tools that enable debugging as well as probing signals within the circuit. In quartus II you could use the Signal Tap II logic analyzer to achieve this .
Finally, as a design approach a HDL design always starts with a functional verification and i think that is what you should be doing first!
Hope this helps !
sreeram
Comment only
16 Feb 2010
Matlab Link to Quartus II
Uses Tcl script utility of the quartus II EDA tool to automate the design flow from a matlab GUI
I conceived a numeric circuit under quartusII and I want validated it by several data to apply to the entries of the circuit and to recover the exits,
the data of entries generate by a program in C language,
how to make? and thank you.
Comment only