Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » API

Post new topic   Reply to topic
anyone can help me to check this code
View previous topic :: View next topic  
Author Message
chyoli
Newbie


Joined: 11 Apr 2006
Posts: 1

PostPosted: Apr 11th, 2006 02:01 AM    Post subject: anyone can help me to check this code Reply with quote

Private Sub Timer1_Timer()

If (ecgDataPlot > 1000 And ecgDataPlot < 2850) Then
yarr2(k) = ecgDataPlot 'substituted by Mserial.input and convert
Call Plot
k = k + 1
If (k > 998) Then 'to make sure the no of element in array does not exceed 1000
k = 0
i = 0
j = 0 'also have to call function to write existing array into file
Call WriteFile
End If
End If


End Sub

=====================================================
Sub PlotOpen()
openyarr1(0) = 2554
If (i < 10000) Then
openyarr1(i + 1) = openyarr2(i)
i = i + 1
Else: i = 0
End If

If (j < 10000) Then
Picture1.Line (xx, 3500 - openyarr1(j))-(xx + 15, 3500 - openyarr2(j)), vbBlack
xx = xx + 15
If (xx > 4905) Then
xx = 0
Picture1.Cls
End If
j = j + 1
Else: j = 0
End If

End Sub
=====================================================
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » API All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic