LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scale Y axis manually using Knob control ?

Hello guys,

 

Is there a way I can manually control the scale of Y axis using a DIAL or KNOB for waveform graphs ? 

 

Please see attached VI. 

 

Thanks.

Abhilash S Nair

Research Assistant @ Photonic Devices and Systems lab

[ LabView professional Development System - Version 11.0 - 32-bit ]

LabView Gear:
1. NI PXI-7951R & NI 5761
2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021

OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
MEMORY - [ 16.0 GB RAM ]
GPU - [ NVIDIA GeForce GT 530 ]
0 Kudos
Message 1 of 8
(4,171 Views)

right click on waveform chart, create property node is your friend....

 

Spoiler
scale2_VI.png

 

0 Kudos
Message 2 of 8
(4,167 Views)

I accept that property node works. But the waveforms I am expecting doesnt have any fixed Y range. Sometimes it may be on 4300 otherwise on 10,000 range. So each time I cant keep changing the knob range. Please find the attached Vi to see what I tried. 

Abhilash S Nair

Research Assistant @ Photonic Devices and Systems lab

[ LabView professional Development System - Version 11.0 - 32-bit ]

LabView Gear:
1. NI PXI-7951R & NI 5761
2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021

OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
MEMORY - [ 16.0 GB RAM ]
GPU - [ NVIDIA GeForce GT 530 ]
0 Kudos
Message 3 of 8
(4,162 Views)

What if the minimum and maximum range automatically adjusts itself, just like how we have autoscale enable. And then I can manually and easily control the the range of Y I want. Right now the waveform is out of range from the given values, enabling the autoscale brings it into position.

 

 

Just like a oscilloscoe,

Abhilash S Nair

Research Assistant @ Photonic Devices and Systems lab

[ LabView professional Development System - Version 11.0 - 32-bit ]

LabView Gear:
1. NI PXI-7951R & NI 5761
2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021

OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
MEMORY - [ 16.0 GB RAM ]
GPU - [ NVIDIA GeForce GT 530 ]
0 Kudos
Message 4 of 8
(4,158 Views)

then autoscale the graph with wiring the Y value to the knob maximum property node with an additional value for some leg room.

Message 5 of 8
(4,154 Views)

Oh we can do that! ... Let me try. Thank you

 

Abhi 

Abhilash S Nair

Research Assistant @ Photonic Devices and Systems lab

[ LabView professional Development System - Version 11.0 - 32-bit ]

LabView Gear:
1. NI PXI-7951R & NI 5761
2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021

OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
MEMORY - [ 16.0 GB RAM ]
GPU - [ NVIDIA GeForce GT 530 ]
0 Kudos
Message 6 of 8
(4,152 Views)

Last question, how can I get the Y value from the autoscaled graph ? Is that also using property Node.

Abhilash S Nair

Research Assistant @ Photonic Devices and Systems lab

[ LabView professional Development System - Version 11.0 - 32-bit ]

LabView Gear:
1. NI PXI-7951R & NI 5761
2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021

OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
MEMORY - [ 16.0 GB RAM ]
GPU - [ NVIDIA GeForce GT 530 ]
0 Kudos
Message 7 of 8
(4,147 Views)

get it from your data array......use "array max & min" function, take the max and wire the knb property node max value, with some added leg room value.

 

Spoiler
Sampling%20and%20DSP[2]_BD.png

 

Message 8 of 8
(4,144 Views)