06-21-2015 03:46 AM
Hi , i did a search in the community and i cant find what im looking for.
Im using arduino to sample 10s of a signal , with resolution of 8bit and samplin rate of 5.25Khz , i stored the samples into byte array size 52500 . I need to send this array using serial communication , store it , as array , and plot it on a graph , the plot will be after the array is received in labvew , i dont need a real time plotting . only an array and the plot of it . any ideas ? VI examples ?
06-21-2015 04:27 AM
06-21-2015 04:56 AM
i've just download it . but i prefer the standard way.
06-21-2015 05:02 AM
06-21-2015 05:19 AM
Here is why i made in Labview :
and i write a simple code just to check , here is the code :
void setup() {
// put your setup code here, to run once:
Serial1.begin(9600);
Serial.begin(9600);
}
byte arr[] = {1,2,3,4,5,6,7,8,9,10};
int F_Start = 0 ;
int i = 0 ;
void loop() {
// put your main code here, to run repeatedly:
if (F_Start == 0 ) {
analogReadResolution(8);
for ( i=0 ; i<10 ; i++) {
//arr[i] = analogRead(A0) ;
Serial.println(arr[i]);
Serial1.println(arr[i]);
if ( i == 9 ){
F_Start = 1 ;
}
}
}
}
the final code will have a byte array of size about 55000.
i don't know what im doing wrong.
06-21-2015 05:33 AM
06-21-2015 05:45 AM
I'm really new to labview and i hardly understand what you meant for , can you please modify it , the way you think it should work ?
06-21-2015 06:08 AM
06-21-2015 09:04 AM - edited 06-21-2015 09:04 AM
i've change the VI , it seems that it receive the data , and shows the chart real time.
what i need is to save it to array and when i push stop on the while loop , it shows me the plot of the received array.
few hours im trying to solve it and without success.
hope you can help me .
06-21-2015 09:47 AM