Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

VB Code problem

Dear All!
I want to use visual basic to build a htm which used to indicate the value of knob from labview through Datasocker.
But it can't work properly, the code as follow.


Private Sub CWKnob1_PointerValueChanged(ByVal Pointer As Long, Value As Variant)
CWKnob1.Value = CWDataSocket9.Data
End Sub


Is the code has problem?

Thank you very much
0 Kudos
Message 1 of 2
(3,004 Views)
You need to use the Value property of the CWData object. For example, the code above would be changed to this:

Private Sub CWKnob1_PointerValueChanged(ByVal Pointer As Long, Value As Variant)
CWKnob1.Value = CWDataSocket9.Data.Value
End Sub

- Elton
0 Kudos
Message 2 of 2
(3,004 Views)