Board-Instrumentation-Framework icon indicating copy to clipboard operation
Board-Instrumentation-Framework copied to clipboard

MACRos with OnDemand do not work in a dynamic grid

Open PatrickKutch opened this issue 2 years ago • 0 comments

 <GridMacro Name="CPU_FREQ">
        <Grid row="$(NextRowAlias)" column="$(CurrentColumnAlias)" Height="$(CHART_HEIGHT)" Width="95%">
            <OnDemand TriggeredIdToken=".">
                <NamespaceTriggerPattern>$(NS)</NamespaceTriggerPattern>
                <IDTriggerPattern>CPU.CoreCount</IDTriggerPattern>
            </OnDemand>

            <Widget File="CPU\ChartBarFrequency.xml" row="1" column="1" Height="100%g" Width="100%g">
                <Title>CPU Frequency</Title>
                <xAxis MaxEntries="$(TriggeredValue)" />
                <yAxis Label="CPU Frequency (GHz)" MaxValue="$(FrequencyMax)" />
                <MinionSrc ID="CPU.Frequency" Namespace="$(NS)" Scale="$(CPU_FREQ_SCALE)" />
                <StyleOverride>
                    <Item>-fx-legend-visible:false;-fx-bar-gap:1;-fx-category-gap:1;</Item>
                </StyleOverride>
            </Widget>
        </Grid>
    </GridMacro>

	<DynamicGrid row="$(CurrentRowAlias)" column="$(CurrentColumnAlias)">
		<GridFile Source="$(AppDir)\Grid.Util.Frequency.xml"  ID="1"/>
		<GridFile Source="$(AppDir)\Grid.Util.Frequency.Power.xml"  ID="2"/>
		<Initial ID="1"/>
		<MinionSrc ID="ChartFlip" Namespace="DemoNamespace"/>
	</DynamicGrid>

PatrickKutch avatar Jun 29 '23 15:06 PatrickKutch