Hi,
I am having a problem using a strip chart and two numeric controls.
I am running LabWindows/CVI 2010 Version 10.0.1 (434)
I have searched the database but did not find anything close to the problem I am having.
It's actually quite simple.
As you can see from the graph below I have a strip chart and two numeric controls.
The numeric controls are meant to adjust the starting and ending values
The numeric; "shot count start" works flawlessly.
The ending numeric called; "Shot Count End" has its value written into the starting X position of the strip chart when it changes. (The only time I change this X value is when the starting numeric changes. When the ending numeric value changes all I do is change the number of points to display.)
I have placed the steps I use for each case below the diagram
When a change is made to the starting numeric
1. Clear Chart Data ClearStripChart ( panel, TRI_PANEL_CHART)
2. Change set number of points SetCtrlAttribute( panel, TRI_PANEL_CHART, ATTR_POINTS_PER_SCREEN, numberOfPoints);
3. Set the new X offset SetCtrlAttribute( panel, TRI_PANEL_CHART, ATTR_XAXIS_OFFSET, (double)newStart);
4. Draw Chart
When a change is made to the ending numeric
1. Clear Chart Data ClearStripChart ( panel, TRI_PANEL_CHART)
2. Change set number of points SetCtrlAttribute( panel, TRI_PANEL_CHART, ATTR_POINTS_PER_SCREEN, numberOfPoints);
3. Draw Chart
I last thing I attempted was to make the callback for the numerics the same.
Here is a graph of the crazy update when change the ending numeric
Thanks in advance for any suggestions