burt4munger Posted April 23, 2012 Share Posted April 23, 2012 I'm running DAQFactory 5.87 build 1953 on a 1920x1080 monitor, and am having problems with the linear gauge control. I'm using it to show the time in hours from 0 to 24. I've set the range 0 to 24, major tick count at 24, and minor tick count to 3 (15min). I expected that a number like "10" would show up as a pointer on the 10 on the scale, but it not only consistently misses the mark (appearing closer to 9.6), the major tick 12 is missing. There could be something I'm missing, but I'm guessing something is getting incorrect information for the screen resolution to be able to determine the bar end point coordinates. I've attached a screen shot and the ctl file that produced it. The problem exists for both vertical and horizontal bar orientation. LinearGaugeProblem.ctl Link to comment Share on other sites More sharing options...
AzeoTech Posted April 23, 2012 Share Posted April 23, 2012 The issue is the labels. First, look at the labels. You'll see that "12" is missing. This is because your range is from 0 - 24, and you have 24 ticks selected. You really need n+1 ticks, 25, to properly segment it (because you need one at each end) Otherwise, the spacing in the ticks is actually slightly more than 1. Then, you have the precision of the labels set to 0, so its not displaying the decimal part. If you just set the label precision to 2, you'll see the ticks are actually at 1.04, 2.09, 3.13, etc. and so the gauge is displaying correctly. Also, btw: you actually have two gauges right on top of each other. One is hidden underneath. Link to comment Share on other sites More sharing options...
burt4munger Posted April 23, 2012 Author Share Posted April 23, 2012 doh! I like a quick fix. thought it might be something I was doing...have to up the coffee dose that late at night. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.