LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Autoscale

Solved!
Go to solution

Hi,

 

I am creating a VI for acquiring ECG signals. I have attached a screenshot of my VI. I have following doubts.

I would appreciate if you could help me in solving them.

 

1. I want manual autoscaling of the Y axis i.e. Amplitude. That is it will autoscale only when you click a button on the front panel. Can you please tell me how to do it?

2. I want  "window duration" parameter on the front panel for adujusting the widow duration of X axis. How to do that?

 

Thank you.

 

 

 
0 Kudos
Message 1 of 4
(2,874 Views)
Solution
Accepted by topic author abcdd

(There is no screenshot in your post.)

 

To autoscale once, you would use the "Scale fit" proerty wired with a 1 (0:do not autoscale, 1:Autoscale once now, 2:autoscale)

 

Put the property node inside a case structure connected to a latched boolean button.

 

To adjust the range of the x-axis, you can set the range also with a property node.

0 Kudos
Message 2 of 4
(2,865 Views)

ECGvi.png

 

Hi,

 

Thanks for your reply. Here is the screenshot of my VI. I need to attach the property node inside the case structure right?

 

Thanks in advance.

0 Kudos
Message 3 of 4
(2,831 Views)

(Screenshots are nearly useless and you don't have a case structure yet. It is always better to attach an actual VI.)

 

Yes, place a case structure inside the WHILE loop, place the property node inside the true case, and trigger it with a latch action button as needed.

0 Kudos
Message 4 of 4
(2,824 Views)