LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically generating controls

In this thread

http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=236#M236

you will find a set of picture control examples. In post # 4 I give a link to the "Obfuse code" thread where in post #52

http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=147#M147

I posted an example that can be used to create an arbitrary number of controls and postition them such that they are performing a random walk.

This example gives you most of what you need to implement virtual controls in LV.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 11 of 13
(1,365 Views)
And this link will show the XControl example.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 12 of 13
(1,298 Views)
Hi,

one more comment:
when you don't need switches to represent the booleans you can still go with numeric indicators!
Just switch the representation to 'binary' and set the number of digits with a property node...

When you only need to display values you can also use string indicators. Format your values using 'Format to string' and a corresponding format string like '%02b %02d %02b'  (for 2 bits, integer from 0-15, 2 bits).
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 13
(1,292 Views)