LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic scale problem

Solved!
Go to solution

That's a rather important detail to have left out! And since you also did not deem it important to post the code you've written, I can only assume that the while loop includes the function that is programatically setting the vertical, so of course you cannot manually change it. Even if it doesn't include the vertical function, the code is always placing the scope in remote mode so you can't switch it to manual.

 

Why would you want to manually change the scope? Why don't you change the setting in the code? Your problem does not seem to be related to you being new to LabVIEW but being new to instruments and remote control.

0 Kudos
Message 11 of 16
(1,196 Views)

As I mentioned before, I did not write any code. Just used the driver examples and used the labview built in "while" function.

I have very few programmable skills and I am noob to labview and remote control but not noob to instruments. Always used them directly with no need for remote.

So you are telling me that the only way to make this happen is to change the built in "while" function code, right?

0 Kudos
Message 12 of 16
(1,193 Views)
Just checked that even without the while loop, the scope always changes to 2V/div no matter what kind of signal I inject to it.
0 Kudos
Message 13 of 16
(1,191 Views)
Solution
Accepted by topic author Phobia

You modified the example and placed a while loop around somthing. Since you did not attach the code, I have no idea where you placed the while loop. If you placed it around the entire code, it sets the vertical range with each iteration of the loop.

 

The example VI sets the vertical range to 10V. It does not matter what signal you insert. Running manually, the range does not automatically change when a signal changes either (unless you press the autorange button). Look at the front panel of the VI. Those settings will override whatever you have manually set. There are additional constants on the block diagram that will override any manual settings. That's the whole point of the VI.

Message 14 of 16
(1,187 Views)

I just noticed what I was doing wrong.

Thanks very much for your help and time.

0 Kudos
Message 15 of 16
(1,180 Views)

Hi, Phobia

 

I met the same problem as yours, when using the given examples, the vertical range changes on oscilloscope rather than VI. So I wonder if you have solved the problem and how, thanks!

0 Kudos
Message 16 of 16
(1,134 Views)