help with scale regex
Hi there,
iv'e been trying to setup a new custom scale on bartender but have been unsuccessful in using the proper Regex syntax in order to extract the weight from the string.
the string is as follows: ww000000 kg.
the digits represent the current weight on the scale Tare included.
iv'e tried using (<NetWeight>^.{4}\K\d+) as the last four digits are enough for the weight but it's just not working.
any help would be appreciated
-
Peter Thane
★ BarTender Hero ★
I dont know the scale or the protocol but can you bring in the full sting onto the label? If so then you could move that field off the side of the label and manipulate the data in a separate (say Object Value) text object linked to the scale input field as required (ie trim the characters that are not needed)
0 -
Mickey Weisberg
★ BarTender Hero ★
Hi peter,
thanks for the quick response.
honestly i cant even pull the string into the label using data entry.if i run a test connection on the custom scale iv'e installed i get this:
but once i run a test on the scale control properties i cant pull any info:
and i cant pull the data trough the data entry either:0 -
Peter Thane
★ BarTender Hero ★
Have you tried enabling the Capture stable weight automatically option? Or did you add the manual capture button to you scale display?
0 -
Mickey Weisberg
★ BarTender Hero ★
i added the manual capture on the custom protocol which is attributed to the specific scale im trying to use.
0 -
Peter Thane
★ BarTender Hero ★
It looks to me like your config is incomplete. In the Help system:
As you are trying to do a manual capture I think you will also need to add a button to enable this
(I could be wrong but it has been a while since I last had to configure a scale setup manually)
0 -
Mickey Weisberg
★ BarTender Hero ★
the scale is set to transmit the data upon pressing "R" which i have defined in the custom protocol.
Iv'e tried adding the capture button as suggested but it's greyed out and i cant seem to be able to press it.neither on the actualy printing screen:
I think my issue is somthing to do with the regex commands actually.
0 -
Peter Thane
★ BarTender Hero ★
Did you add the/configure the add Request Stable Weight command too?
0
请先登录再写评论。
评论
7 条评论