Hi All,
I have a scale connected via serial port and displayed data in a textbox. Problem is the displayed data is very 'flickering'. How can i use a timer control to keep the data in the text box refresh every 500ms or so?
Many Thanks.
User Profile
Collapse
-
Timer control to refresh textbox?
-
Hi Robbie,
think im getting somewhere now! however the actual displayed weight appears to be 'flashing' somewhat. may go from 0 to 1.454 (the 0 appears to be most prominant and the 1.454 is faint because its refresh rate is too quick or slow?)
someone suggested putting a timer function in to set the refresh rate of the text1.text .
im not sure how to implement this? any ideas? thanks. -
Thanks very much Robbie, i'll give this a go and keep you informed. :-)Leave a comment:
-
-
Hi Robbie,
OK... the default serial output from the scale is:
Polarity = 1chr$
Space = 1chr$
Weight = 7chr$
Space = 1chr$
Units = 5chr$
Stability = 1chr$
CR = 1chr$
LF = 1chr$
Definitions: Polarity, “-” sign if negative, blank if positive.
Weight, up to 6 numbers and 1 decimal, right justified, leading zero blanking.
Units, up to 5 characters....Leave a comment:
-
-
Its me|! someone told me to first convert to Val then put into the textbox then format.
i managed to convert to Val, put it in txtxbox but now the weight just 'concanteates'?
i.e. what should be 0.00 looks like:-
0.000.000.000.0 0 etc... how do i format and keep left?Leave a comment:
-
-
RS232 scale data string needs 'filtering' or 'parsing'?
Hi All,
I have a small form that allows scale weigh data to be diplayed in a textbox. i can communicate with the scale - tare, zero etc.
how do i filter the weight string or i think it may be called parsing? i'll try to explain: currently i can have the scale sending continuous weight data, but i can also set it to print every secon or so, this looks messy however 'cos the textbox flickers.
when the weight changes... -
Back Space textbox using Command_button
Hello Again,
i have a virtual keypad 0-9, i can type in stuff
text1.text = text1.text & "2"
when i press a command button,
how do i use the back space chr$08 to remove the last number entered?
i.e. a delete button? -
Thanks a lot, i did this and it works fine
Private Sub Command10_Click ()
Text2.Text = Text2.Text & "4"
End SubLeave a comment:
-
Command_button to textbox $ or input?
Hi All,
I have a virtual keypad - say 0-9, when i press the buttons i want the sequence of keypresses to appear in a textbox. at the moment when i type them in they just overwrite each other. i want them to step along similar to a calculator?
any ideas - currently i use:
(its on another pc so im guessing here)!
command1_click
text1.textbox.c aption
end sub
anyway that bit work... -
Ok sounds like what im after too. if say i have a numerical keypad 0-9, if i press 1 id like it to show in txtbox1, then if i press number 2 i'd like that to appear next to number 1 - 12. how is this possible, at the moment i use the :-
Private Sub Command7_Click( )
Text2.Text = Command7.Captio n
End Sub
when i press the next button it just overwrites?Leave a comment:
No activity results to display
Show More
Leave a comment: