09-04-2020 01:23 PM - edited 09-04-2020 01:58 PM
I would like to play a 2D line graph, such that it starts with x axis zoomed at x-begin (fixed) at first value of x axis and x-end to the changing x value of X channel.
So it is like a band cursor with P1 at fixed value (1 in my case) and P2 is changing to play value.
Also I would like to display Y axis value at the play location, in a textbox display type.
Is there any trick to achieve this result ?
10-07-2020 04:53 PM
Hey Amit,
My first thought is to use a VIEW Area1 as the "overview" of the full curve where indeed the band cursor starts at the far left (X1) of the X axis and ends at the desired instantaneous position (X2). If you have a second VIEW Area2 set to zoom in "Scroll Cursor Range" mode, it will automatically show you the correct instantaneous zoom with X1 on the far left and X2 on the far right. Depending how you want to "play" X2 forward, you can even use VIEW Area1 to zoom within itself and dispatch with the need for VIEW Area2. It's just easier to set this up as two areas so you can manually move the X2 cursor in VIEW Area1 to change the display in VIEW Area2.
This method also enables you to show the instantaneous Y2 value in the legend or in a textbox Area.
You can manually enter the desired X2 position in the VIEW "Coordinates" window, or you can programmatically move X2 forward at some predetermined rate in a VBScript that runs while you stare at the VIEW panel.
Brad Turpin
Principal Technical Support Engineer
National Instruments