11-07-2011 08:22 PM
Hello,
I am having an issue with a simple VI I am trying to create that displays test data.
A little background on the setup:
I have an Agilent 34970A data logger recording thermocouple data every 30 seconds which gets appended to a .csv file. My VI opens the data log; reads the contents; manipulates the data; and displays the data on a mixed signal graph. I have one main loop that reads in the data every 30 seconds and another loop inside the main loop that completes approximatly every second to allow changes made to scale controls to take effect so the user doesn't have to wait too long. Because the data logs are allowed to become very long (logs are stopped and re-started daily) it is necessary to allow the user to define, at minimum, the X scale as it is usually the case that the user only cares about what is happening in the last hour or so. The snippet below shows the portion of my block diagram for displaying the data and the user control of the scales.
The problem occurs when the user defines custom scales using the controls shown below. The graph updates as desired however every time the inner loop completes the graph gets refreshed with the default auto scale values before getting set again to the custom scale values causing the graph to "Blip" once a second which is distracting and silly.
Does anyone have any suggestions for me?
Thank You,
Ken
11-07-2011 11:15 PM
Are the axes set to autoscale? In this case they will autoscale whenever data is written to the terminal.
11-09-2011 02:57 PM
Ken,
How are you setting your default scales? For the x-scale to return to the default value, it seems like you must be telling it to within the loop. I know I just set up a super simple program, with a loop to set the x-scale and I didn't see any blipping. Maybe I need a little more insight into how the settings for your graph are set up.