LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove oscilloscope default setup after running a VI

Hi everybody,
I work with LabView 8, windows 2000 and a Tektronix TDS 1002 among others...
I make several Vis run one after the other and one of them require default setup but I would like to remove those for next Vis.
I've tried to find a reset function but inside this one there is a Default instrument setup vi !!
I would like a function doing the same as if you push the "Undo default setup" button manually on the scope.
Have you some ideas about this ?
 
Thanks
0 Kudos
Message 1 of 9
(3,574 Views)
In the reset function, the *RST command is issued and then the default instrument setup just sends the commands HEAD ON and VERB OFF. What exactly does the scope do when you push the 'undo' button? Does it return the instrument to all states before the reset is issued?
0 Kudos
Message 2 of 9
(3,568 Views)

Hi Dennis,

Yeah, the "undo" button return the instrument to the previous settings. Settings done manually or via Labview in my case.

 

0 Kudos
Message 3 of 9
(3,558 Views)
Unless there is a command 'undo' that corresponds to the button, then you will have to cache the settings. You could create a cluster that contains all of the settings and keep it in a shift register. Maybe even an array of clusters where one element is the current settings and another element is a previous group of settings.
0 Kudos
Message 4 of 9
(3,541 Views)

Dear Dennis,

Your solution seems complex... In fact I just want to inhibit the default setup and not especially recover previous settings...

Do you know any function doing this ?

Thanks

0 Kudos
Message 5 of 9
(3,535 Views)
If you don't want to set the scope to it's default settings, don't issue the reset command. It's your program and you can write it to do whatever you want. Usually, the reset is part of the intitialize function and this would only be called once at the very beginning of the program to bring an instrument to a known state. The init function has a Boolean input for reset that you can set to false. If you don't want the utitlity default function to be called when you do call the reset function, delete it. Since the utility turns the header on and verbose mode off, you will probably have to modify the VI that gets the data from the scope though.
0 Kudos
Message 6 of 9
(3,530 Views)

Dennis,

In fact I've just discovered the root of my issue : the previous acquisition is triggered in normal mode and so I just found the reset solution to remove this setting for the next acquisition.

So now when I remove the reset which put default setup in the 2nd VI, the same waveform than the previous VI is plotted because the second VI has kept the single shot configuration. So I have to find a way to set again the auto mode for this VI but the problem is this setting can be only changed in the "configure trigger.vi" function and I don't use this one in the 2nd VI...

I know it can be not so clear I hope you will understand what I mean...

Don't hesitate to ask for more explanations...

Thank you a lot

0 Kudos
Message 7 of 9
(3,524 Views)
It's not clear to me at all. If you need to change the trigger mode before calling the second VI, then just call the "configure trigger.vi" before calling the second VI or put it in the second VI. You have a bunch of lower level functions in the driver that you can use whenever you want in the program and if there is a lower level function that does something you don't want, you can modify it or add a simple VISA Write at any point to send a single command to the instrument. Maybe if you posted your program (7.1 please) I or someone else could get an idea of why you are having some difficulty.
Message 8 of 9
(3,518 Views)

Hey Dennis,

I will try this, sorry if I surprise you with my issues which seem very easy to solve according to you Smiley Wink. Labview is always something new for me and I have to learn every day thanks to people like you Smiley Tongue.

0 Kudos
Message 9 of 9
(3,506 Views)