1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| Module Module1
Dim spectro As New axSpectro.Spectro
Sub Main()
Dim Data As String
Dim iT As Integer = 100
spectro.integrationTime = iT
Data = spectro.dataline(average:=1, count:=1)
Dim i As Integer = 1
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
For Each elements As String In Data.Split(" ")
If i > 5 And i < 12 Or i > 15 And i < 25 Or i > 30 Then
' Traitement de chaques éléments récupérés, par exemple en affichant un msgbox :
MsgBox(elements)
End If
i = i + 1
Next
End Sub
End Module |