LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Show/Hide indicator or control pragmatically

Solved!
Go to solution

Hello all,

 

Phew back to labview after a long ternious work with electronics and mathematica. 

 


 

Question : How can I change the appearance of any indicator or control programitically. I have a button on front panel which when clicked should display the indicator or not.

 

How can I do that ?

 

Thanks Smiley Happy

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 9
(10,283 Views)

Create a property node and write a true or false to the 'visible" property whenever the visibility should change.

Message 2 of 9
(10,281 Views)

Thank you. It has been very helpful.

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 9
(10,271 Views)

Why am I not able to reproduce the same effect with data[64] array ?? I use the same method of provoking visible property node via a boolean button ; in this case a slide button called "show readings" ... Why is this happening ? 

 

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 9
(10,266 Views)

Attach your VI.  There is no reason I can see why it wouldn't work.  It must be related to something we can't see in your small piece of screenshot.

0 Kudos
Message 5 of 9
(10,251 Views)

Please find the attached VI

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 9
(10,240 Views)
Solution
Accepted by topic author abikutn

Since you placed the property node inside the DSP case, it will only work if that case executes. Does it?

 

Why are you using a local variable instead of the terminal directly?

 

Is this a subVI? How are you actually running this? If this is a toplevel VI, you should place a parallel loop with an event structure to toggle the visibility independet of the state of the main loop.

0 Kudos
Message 7 of 9
(10,232 Views)

I had to delete the broken code since I don't have your FPGA nodes.  Then I was able to run your VI just fine.

 

How are you running your VI?  You don't have any while loop.  Are your running it as a subVI in another VI which has a loop?  You don't have any terminals attached to your connector panel.

 

If you haven't set your selector to DSP before running your VI, then your code that sets the visibility of the control won't run.

0 Kudos
Message 8 of 9
(10,230 Views)

Yes thats correct. It depends purely on case.

 

Thank you. @ 

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 9 of 9
(10,189 Views)