NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Active Participant
Bob_Schor
Posts: 341
0 Kudos

Re: Use font preset indices to refer to "system" "app" etc. fonts.

I've seen examples where the Font Number is "0" -- could this be Current Font?

Active Participant
Yamaeda
Posts: 1,801

Re: Use font preset indices to refer to "system" "app" etc. fonts.

If handling timings, Get date/time in seconds is very unreliable and can cause some ~10ms errors compared to Get Tick count.

 

/Y

LabVIEW 8.2 - 2012
"Only dead fish swim downstream"
"My life for Kudos!"
"Dumb people repeat old mistakes - smart ones create new ones."
Knight of NI
altenbach
Posts: 22,878

Re: Use font preset indices to refer to "system" "app" etc. fonts.


Yamaeda wrote:

If handling timings, Get date/time in seconds is very unreliable and can cause some ~10ms errors compared to Get Tick count.


Don't forget "High Resolution Relative Seconds.vi" found in .../vi.lib/utility. Another good option, especially for benchmarking.


LabVIEW Champion . Oh, by the way, I work for peanutsKudos .

Active Participant
P@Anand
Posts: 1,617
0 Kudos

Re: Use font preset indices to refer to "system" "app" etc. fonts.

This enables micro second benchmarking and time period calculation. Great Christian.

-----

I don't believe in Hard work. I love my work :smileyhappy:
Trusted Enthusiast
Darin.K
Posts: 3,353

Wrapping Code in For Loops without Autoindexing

I posted this tidbit in an undisclosed location so I'll repeat it here in the open for everyone else.  If you have some code involving arrays of various dimensions and decide later to wrap it in a For Loop you get all autoindexing tunnels.  This might be ok, but many times I only want a small fraction of them to autoindex, so there is a lot of right-clicking going on.  As an alternative I will wrap the code in a While Loop instead and then Right-Click and Replace With For Loop.  Now all of the tunnels are non-indexing and I only have to change a small number of them.

 

WrapWithWhileLoopNugget.png

Knight of NI
Knight of NI
Ben
Posts: 16,091

Re: Wrapping Code in For Loops without Autoindexing


Darin.K wrote:

....  As an alternative I will wrap the code in a While Loop instead and then Right-Click and Replace With For Loop.  ...


 

Ah the old "wrap and switch" trick. Nice!

 

I never thought of that (it hard to think clearly when you are cussing quietly to yourself) but it will definately save me some time!

 

Thank you!

 

Ben

 

Ben Rayner
Who is NOT John Galt... yet... just building Rayner's Ridge

Active Participant
pcardinale
Posts: 345

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

You can put constants on the front panel (they act like controls), and controls on the block diagram (they act like constants).

Most of the aren't too useful, but here are two that I like: A boolean constant on the FP makes a cute control, and a labeled square button on the BD is neat because it has boolean text.

Active Participant X.
Active Participant
X.
Posts: 1,433
0 Kudos

Re: booleans in the wrong place

Cute. How do you do that though? If I drop a constant on the FP, it turns into the default Boolean control and if I drop a Boolean control onto the BD, it turns into a constant...

X 1995-2012
Active Participant
pcardinale
Posts: 345
0 Kudos

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

I just figured out how to turn on the boolean text for an ordinary boolean constant.

Active Participant X.
Active Participant
X.
Posts: 1,433
0 Kudos

Re: booleans in the wrong place

Same comment. And check your subject (see this?)

X 1995-2012
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page