LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Micro-Nuggets !!! ~~~~ Post 'em if you got 'em

Controls appearing on the diagram is a bug and not a supported feature. I very much recommend that you do not build VIs with them and report any ways you find to create them so that we can fix the editor.


Christina Rogers
Principal Product Owner, LabVIEW R&D
Message 171 of 368
(2,370 Views)

@Christina R wrote:

Controls appearing on the diagram is a bug and not a supported feature. I very much recommend that you do not build VIs with them and report any ways you find to create them so that we can fix the editor.


 

Awww Christina.  Now you went and spoiled all their fun...  Smiley Sad

- tbob

Inventor of the WORM Global
Message 172 of 368
(2,335 Views)

When selecting physical channels within NI Hardware such "NI DAQ Example Acq&Graph Voltage-Int Clk"

 

You could type:  Dev1/ai3, Dev1/ai1

 

To select Channel 1 and Channel 3

 

Or you can click browse and hold down ctrl and select individual Channels.

 

DAQ3.png

 

DAQ2.png

 

-SS



Message 173 of 368
(2,322 Views)

Lil' nugget to extract enum text:

Enum to Text.png

Message 174 of 368
(2,277 Views)

@JonN wrote:

Lil' nugget to extract enum text:

Enum to Text.png


You can also use Scan from string to convert text to Enum, quite useful. 🙂 /Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 175 of 368
(2,211 Views)

It's kind of complicated, so the easiest thing to do is just copy the one I posted, then change the boolean text to what you want.

If you really want to create one from scratch, here's how:Turn_in_BT_on_BC.png

Message 176 of 368
(2,188 Views)

The editor won't let you do it.  It takes scritpting.  I discovered this while checking the error handling in a utility I was working on.  I had it do something I was sure would throw an error, namely, put a constant on the FP; but instead of getting an error, I got a constant on the FP.  Maybe it's best if I don't post the details.

0 Kudos
Message 177 of 368
(2,184 Views)

I really hope no one is under the impression that everything you can do with Scripting is safe to do. Many Scripting properties and methods having poor or non-existent error handling. It's a powerful feature but requires careful, responsible use.


Christina Rogers
Principal Product Owner, LabVIEW R&D
Message 178 of 368
(2,131 Views)
How can we tell if we are being safe and responsible? Can it really hurt anything by putting a constant on the front panel?
=====================
LabVIEW 2012


0 Kudos
Message 179 of 368
(2,096 Views)

The nature of this thread is drifting.

 

I have started a thread fragment in the Breakpoint to continue the discussion of scripting here.

 

Ben

 

 

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 180 of 368
(2,083 Views)