...
To do this manually, it was covered in the CurConvert Options doc.
Common Errors
Most common errors are below.
- Make sure the numeric point doesn't include units. If so, you'll get an error similar to the below but with the unit it has.
curErr:
haystack::UnknownNameErr: codeToName: 0%
pointExt::EnumDef.codeToName (EnumDefs.fan:137)
pointExt::EnumNumberToStrConvert.doConvert (PointConvert.fan:709)
pointExt::EnumConvert.convert (PointConvert.fan:694)
connExt::ConnPoint.updateCurOk (ConnPoint.fan:150)
haystackExt::HaystackConn.syncPoint (HaystackConn.fan:219)
haystackExt::HaystackConn.onPoll (HaystackConn.fan:367)
fan.sys.List.each (List.java:588)
haystack::GbGrid.each (GridBuilder.fan:350)
haystackExt::HaystackConn.onPoll (HaystackConn.fan:357)
connExt::Conn.doPoll (Conn.fan:897)
connExt::ConnActor.receive (ConnActor.fan:165)
concurrent::Actor._dispatch (Actor.java:234)
concurrent::Actor._work (Actor.java:204)
concurrent::ThreadPool$Worker.run (ThreadPool.java:262)- There is a way around this if you make the curConvert as "numberToHex() strToNumber() enumNumberToStr(foo)". If writable, writeConvert is something like this but with unit using "enumStrToNumber(foo) as(%)".