Hi, im making a program the measures various things. Throttle, brake, clutch, rpm, speed, ect. i have progressbars setup to show the pressure being applied to each axis. Everything works fine except for the clutch bar. Im using vb6 by the way. When using my program, it works fine for a little while, but after a few seconds i get an error 380 "invalid property value" on my clutch progress bar. Its setup the same as the throttle and brake, but those work fine. Is lfs sending something to my program it cantunderstand, or is there a fault withen my code.
the error occurs on the "pbclutch.value = format(packet.clutch * 100)" line. but i have no idea what is wrong. I have only started experimenting with outgauge today.
Private Sub theSocket_Received(lngSocket As Long, Data() As Byte)
If lngSocket = lngTheSocket Then
Dim Packet As OutGaugePacket
CopyMemory Packet, Data(0), LenB(Packet)
lblSpeed.Caption = Format(Packet.Speed * 3.6, "##0") & " KM/H @ " & _
Format(Packet.RPM, "####0") & " RPM"
lblturbopressure.Caption = Format(Packet.Turbo * 14.5037738, "##0") & " PSI"
lblfuel.Caption = Format(Packet.Fuel * 100, "##0") & "% Fuel"
pbthrottle.Value = Format(Packet.Throttle * 100)
pbbrake.Value = Format(Packet.Brake * 100)
pbclutch.Value = Format(Packet.Clutch * 100)
lblthrottle.Caption = Format(Packet.Throttle * 100, "##0") & "% throttle"
lblbrake.Caption = Format(Packet.Brake * 100, "##0") & "% brake"
lblclutch.Caption = Format(Packet.Clutch * 100, "##0") & "% clutch"
End If
End Sub
the error occurs on the "pbclutch.value = format(packet.clutch * 100)" line. but i have no idea what is wrong. I have only started experimenting with outgauge today.