Hi Grant,
I did as u told u,still unable to process the data and plot it on the chart.....
I attached my program testing20.vi ....for finding the problem..
could u please see the vi..and suggest some solutions....
As u said the array should also be persistent.....and my doubt is the other variable like dulen1,dulen2,dulen3,dulen4,...should also be persistent...in order to calculate the parameter
duLength,.......similarly the parameter uwpackagespeed and uwdrumspeed should be persistent.(in my point of view....)
objective of the program is to read the serial port byte and byte ...and plotting it
And the byte are sent in format like
format: Header , MSB ,data,checksum..
Header, LSB ,data,checksum..
so i need to recogize this format in my mathscript node ...the main thing is ,...... in 4 bytes the data is only of 1byte....
In my program , i am plotting length(x-axis) versus packagespeed and drumspeed(y-axis)..
here the length parameter itself 4 byte of data.....i have to collect it byte by byte of data ,...from the 4 byte format(math script gets called 16 times to collect these 4 data bytes
from 4 byte format)... and packagespeed and drumspeed is of 2 byte.......
if u have any questions please ask me...
Eagerly awaiting for ur reply....
Regards
rajasekar