LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I have the same exact control appearing twice on the front panel?

Hi Ben,

We need the .ctl file with that one to execute it.
Message 21 of 49
(4,727 Views)
Sorry!

You know I checked as soon as I posted but it turns out it found it on my hard drive!

Here its is with out the typdef.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 22 of 49
(4,731 Views)
Nope. I still don't get it.
If I try to edit your array in 7.1 and replace the index display with any other numeric control it still does nothing.
Is this something that was dropped in 7.1 or just something I don't understand.
What is the exact sequence you use to replace the index display?

___________________
Try to take over the world!
0 Kudos
Message 23 of 49
(4,718 Views)
The key (I believe) is U32.


1) Create array with cluster

2) Edit slider and save as U32.

3) pop-up on array and advanced >>> Customize

4) Switch to edit mode

5) Select index pop-up replace with U32 from step #2.

6) Save replace etc... Do a lot more customizing.... done.


If I could set the range of the slider at run time I'd be in good shape.

The attached zip illustrates this in LV 6.1 and 7.1. The quick demo I am posting here demonstrate the requied parts and makes it clear the index can be replaced.

Please share any cool ideas this technique yields.

Ben

Message Edited by Ben on 06-22-2005 07:00 PM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 24 of 49
(4,665 Views)
Yes, it seems the datatype has to be identical, so U32 it is.



@Ben wrote:
If I could set the range of the slider at run time I'd be in good shape.


Ah, but you can.
Simply right click on the slide until you stop seeing array options ("add dimension") and then create a property node. It will be for the slide. If you right click it and select Link To you can see that it's not in the list of controls, but it still works.

I am definitely going to make one of these for personal use, because I hate the current index display, but I wonder whether this should be considered stable enough to sell. It's easier and cleaner than using the current Properties method and it seems to me that this should be considered stable. After all, it's standard control custumization.

Any other cool ideas?

___________________
Try to take over the world!
Message 25 of 49
(4,642 Views)
I have used it at least two applications without any reported issues.

The property node for the index is news to me.

Nice catch tst!

This may be a better idea than I thought.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 26 of 49
(4,635 Views)
Great.
So we see a case where reporting an "unuseful but interesting" thing in the Interesting Stuff thread has caused Ben to publish a VERY useful and interesting thing. That's a definite reason to link to interesting things that you see, boys and girls.
Now all we need to do is combine Alten's trick with Ben's and you have an array which can be controlled from several places. Is there a use case for that?

___________________
Try to take over the world!
Message 27 of 49
(4,623 Views)
You guys should read the LabVIEW Discussion Forum. You sometimes learn useful tricks like here (2001!)


LabVIEW, C'est LabVIEW

Message 28 of 49
(4,615 Views)
I don't have time to read the forum. I'm too busy writing it.

___________________
Try to take over the world!
Message 29 of 49
(4,604 Views)
OK, let's do the calculation:

At 127605 post in LabVIEW alone, and assuming 10 seconds to read a post, it would take ~1.5 months of reading nothing but posts for 8 hours/day.

I'll just re-invent the wheel instead. 🙂
Message 30 of 49
(4,596 Views)