06-01-2012 03:54 PM
I've seen examples where the Font Number is "0" -- could this be Current Font?
06-14-2012 01:37 AM
If handling timings, Get date/time in seconds is very unreliable and can cause some ~10ms errors compared to Get Tick count.
/Y
06-14-2012 02:00 AM
@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.
06-14-2012 02:48 AM
This enables micro second benchmarking and time period calculation. Great Christian.
06-14-2012 02:12 PM
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.
06-14-2012 02:39 PM
@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
06-15-2012 12:39 PM
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.
06-15-2012 12:46 PM
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...
06-15-2012 12:57 PM
I just figured out how to turn on the boolean text for an ordinary boolean constant.
06-15-2012 01:08 PM
Same comment. And check your subject (see this?)