- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to plot potentiometer output values in Matlab. The plotted values are correct, but I don't like how it's plotted. I would like to get a simple ''line'', like on the picture nr.1, but my plot looks like the picture nr 2. So I don't know if that is wrong, since the values are correct but I can't get the ''line''...??? I get the ''line'' when I do the same thing with arduino.There are pictures, Matlab and PSoC code in attachments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Put the
ADC_IsEndConversion(ADC_WAIT_FOR_RESULT);
into the main-loop.
You may use CyDelay(milliseconds) instead of for(i=0;i<100000;i++) {...
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried but it's still the same problem 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use this to get best fit line y = mx + b. That should clean up your data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We used this to plot the data for Log amplifiers. That had to match a spec line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could you give the plot without using the delimiter from 0-4. I just want to see how much the amplitude is? does davidmo.m give the right output ?
Best Regards,
VSRS