Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
hi thank you vinoth ...
Okay you said that it is possible , but I was thinking that since baud rate is 57600 means data is coming too fast so plot will be also fast that we cant analyze anything in it... ?
Let me tell you that my data @ hyperterminal is like this
211 121
212 32
43 76
231 104...
hello there friends...
I just want to ask that is this possible to plot real time data at baud rate 57600..
If it is possible the which software is best for this either C++,VB,MATLAB..
Please guide me I want to plot my data real time , have already tried with MATLAB but baudrate is high and...
wait something going wrong :???:
When I changed the frequency 75 hz it sampled very well but not sampling well at 30 or 40 or 50 hz ..
this is plot of sampled at 75 HZ:shock:
9600/10 bits = 960 bits/sec
there are 4 character data 3 for my two ADC channel (10 bits) and 1 for CLRF
so 960/4=240Values/Sec
if I give 5 hz then 240/5 =48 sample/sec
and if I am giving 50hz then 240/50 =4.8samples/sec
If I am not wrong about above calculation ....?
See the result when 5 hz is...
I have given delay of 1 us ...
Data is coming too fast on the terminal ...
But there is not enough sample Like this
18
612
69
0
0
555
285
0
0
442
446
0
0
284
556
0
0
93
610
0
0
0
578
228
0
0
484
399
0...
I am using 9600 baud rate and 20Mhz crystal oscillator ..
ADC_Read read ADC outputs and UART1_Write writes the data means transmitting to serial port...
Yup I have changed loop timing in micros so it can loops as fast as possible...
Hello Friends...
here is my code for PIC16F877A using two 10bit ADC ..
unsigned int temp_res;
unsigned int temp_res1;
char buf2[6];
char buf[6];
int i;
void main() {
UART1_Init(9600);
delay_ms(100);
TRISA = 0xFF;
CMCON = 0x07;
TRISA = 0xFF; // PORTA is input...
hello friends,,,
I am just done in plotting real time data in simulink ... but there is only one problem i.e x-axis of the scope is not moving/ changing , I mean that all data is plotting on the same screen that if I have simulation stop time 1000 then X axis of scope squeezes the screen and...
yeah that's rite I had already tried this one too but the problem is that it is not working for my script i.e
fid=fopen('file.txt');
fseek(fid,81,'bof')
for i=1:40
A=fgetl(fid)
A = str2num(A)
end
fclose(fid);
I am getting A from here
A=fgetl(fid)
If i changed it to
A(i,:)=fgetl(fid)
So it...
hello friends ...
here is my simple code..
for i=1:100
pause(0.05)
y(:,:,i)=i+rand(1,3)
end
it generates "y" like this on command window
y(:,:,1) =
1.4091 1.4740 1.9090
y(:,:,2) =
2.5962 2.3290 2.4782
.
.
.
.
y(:,:,100) =
100.1526 100.8330 100.1919
and...
thanks ALOOOt...!!
Its working... :)
In my scope(simulink) my values along Y axis is changing ..
Any help that how to chagne X axis of scope with the loop.. so that it looks real time :)
Again thank u ...
hello There...
I want real time data view on Simulink ..
here is my code
fid=fopen('file.txt');
fseek(fid,94,'bof')
n=0;
for (n=0:6)
pause(0.5);
A = fgetl(fid)
A=str2num(A)
end
fclose(fid);
this takes line from a text file , I am just stuck that how do I update Base workspace as...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.