A dynamic bowtie filter can modulate flux along both fan and view angles for reduced dose, scatter, and required detector dynamic range. Reducing the dynamic range requirement is crucial for photon counting detectors. One approach, the piecewise-linear attenuator (Hsieh and Pelc, Med Phys 2013), has shown promising results both in simulations and an initial prototype. Multiple wedges, each covering a different range of fan angle, are moved in the axial direction to change their attenuating thickness as seen in an axial slice. We report on an implementation of a filter with precision components and a control algorithm targeted for operation on a table-top system. Algorithms for optimizing wedge position and mA modulation and for correcting bowtie-specific beam-hardening artifacts are proposed. In experiments, the error between expected and observed bowtie transmission was ~2% on average and ~7% at maximum for a chest phantom. Within object boundaries, the observed flux dynamic ranges of 42, for a chest phantom, and 25, for an abdomen phantom were achieved, corresponding to a reduction factor of 5 and 11 from the object scans without the bowtie. With beam hardening correction, the mean CT number in soft tissue regions was improved by 79 HU on average, and deviated by 7 HU on average from clinical scanner CT images. The implemented piecewise-linear attenuator is able to dynamically adjust its thickness with high precision to achieve flexible flux control.