有關於設定時間參數 |
尚未結案
|
terry000
一般會員 發表:17 回覆:14 積分:6 註冊:2003-10-22 發送簡訊給我 |
請問一下~程式的y軸是電壓~~~~已設定好~~~~
但是現在程式的x軸是做每格為20~~~~~從0到500的動作
請問一下要如何才可以把它改成類似示波器中的時間參數~~~~
煩請各位大大給予寶貴的意見~~~謝謝各位~^^ void __fastcall TForm1::CReceiveData(TObject *Sender)
{ String Buf,Buf1;
int i,j; //Byte 0..255 unsigned 8-bit
byte Receviebyte[4095]; DynamicArray tempByte; tempByte=C->ReadInputByte(); Memo1->Text=tempByte.Length; for(i=0;i {
Receviebyte[i]=StrToInt(tempByte[i]); Buf=IntToStr(tempByte[i]) ';'; Buf1=IntToStr(Receviebyte[i]); Memo2->Text=Memo2->Text Buf " "; //show the data on the picture
int index2;
for(index2=500;index2>=1;index2--)
{data[index2]=data[index2-1];}
data[0]=StrToFloat(Buf1)*5/255; Series1->Clear(); //加入Data至Series1
int index1;
for(index1=0;index1<=500;index1 )
{Series1->AddY(data[index1],"",clRed);} } tempByte.Length=0;
}
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |