Jump to content

Share your favorite tips and shortcuts


Recommended Posts

But i am now convinced to stay with the autotool...
Agreed. It's great.

Why don't you use an enum for the selection so that your code is auto-documented, as the enum string will end up in the selector case?

For one thing, not all case structures use enums. You might use a numeric or a string because you can build that dynamically. For another, Didier refered to listing the main tasks in the case. Doing that would make your enum string too long.

This only changes the properties of this particular instance...

Thanks, I hadn't noticed that.
Link to comment
  • Replies 123
  • Created
  • Last Reply

Top Posters In This Topic

I don't see this posted, if it is, oh well. Make your coercion dots stand out by making them bright red:

Enough folks liked this so red is now the default color in LV8.2.

New tip that may not be known:

Common frustration: Have a structure node on diagram. Drop a string control inside it and start typing. At some point the string reaches the boundary of the node. If you have autogrow turned on, your structure will start stretching. If you have autogrow turned off, your string will vanish under the edge of the structure. Either way, not desirable. So you click away from the string, resize it, maybe turn on scrollbars, then start typing again.

But... from LV7.0 forward...

After you drop the string control, type for a while. When the string reaches the max width that you want, hit shift+Enter. Keep typing. The string will now wordwrap at the current width, and grow vertically. When you reach the maximum desired height, hit shift+Enter again. The vertical scrollbar will appear and the string will now scroll instead of growing any further.

Sorry... the trick doesn't work on free labels. Perhaps someday...

Link to comment
Enough folks liked this so red is now the default color in LV8.2.

New tip that may not be known:

Common frustration: Have a structure node on diagram. Drop a string control inside it and start typing. At some point the string reaches the boundary of the node. If you have autogrow turned on, your structure will start stretching. If you have autogrow turned off, your string will vanish under the edge of the structure. Either way, not desirable. So you click away from the string, resize it, maybe turn on scrollbars, then start typing again.

But... from LV7.0 forward...

After you drop the string control, type for a while. When the string reaches the max width that you want, hit shift+Enter. Keep typing. The string will now wordwrap at the current width, and grow vertically. When you reach the maximum desired height, hit shift+Enter again. The vertical scrollbar will appear and the string will now scroll instead of growing any further.

Sorry... the trick doesn't work on free labels. Perhaps someday...

Thank you Stephen!

You have made at least four developers very happy today. Myself and the first three engineers I talked too.

I also added a link so the Nugget Master can find his way here.

Ben

Link to comment
Use Ctrl-Z to undo changes after the mouse button is released. I sometimes find it useful to have more than just the default 8 undo steps (I have it set to 50). To change it go to Tools -> Options... -> Block Diagram and remove the check next to "Use Default" and enter your own value.

In LV 8.2, it's under Options... -> Environment. Excellent tip by the way.

Link to comment

I like using the "disable code" structure as a cool little "scratch pad" in my block diagram. If I need something in there I can either drag it into my code or drag copy and paste. It's especially useful when working with mulitple property nodes on mulitple controls and indicators.

Link to comment
  • 1 month later...
If you view the radix of a numeric on a control or indicator you can change the formatting by clicking the radix and selecting a new one (hex/oct/bin/decimal/etc). This comes in really handy sometimes while debugging since you can change the radix on the fly without having to stop everything and start over.

Speaking of which, a 'p' is used for SI notation... anybody know what 'p' is for?

My guess is that it stands for "prefix", since the symbol used with the number represents a prefix (eg, milli-).

Link to comment

As we all know, we can run a VI by clicking the run arrow button

post-121-1163179211.png?width=400

, Ctrl+R, the stepping arrows buttons

post-121-1163179222.png?width=400

or finally the run continously button

post-121-1163179443.png?width=400

. I just found out that in LV 8.2 there is another way to directly run the stepping arrows buttons using a keyboard shortcut.

There is a direct mapping between CTRL + Direction Keys

post-121-1163179947.png?width=400

(Ctrl+down, Ctrl+up and Ctrl+right) and

post-121-1163179222.png?width=400

(the stepping arrows buttons).

This is pretty cool :thumbup:

Note: too bad the Ctrl + Back does not reverse the execution! :P

PJM

Link to comment
As we all know, we can run a VI by clicking the run arrow button

post-121-1163179211.png?width=400

, Ctrl+R, the stepping arrows buttons

post-121-1163179222.png?width=400

or finally the run continously button

post-121-1163179443.png?width=400

. I just found out that in LV 8.2 there is another way to directly run the stepping arrows buttons using a keyboard shortcut.

There is a direct mapping between CTRL + Direction Keys

post-121-1163179947.png?width=400

(Ctrl+down, Ctrl+up and Ctrl+right) and

post-121-1163179222.png?width=400

(the stepping arrows buttons).

This is pretty cool :thumbup:

Note: too bad the Ctrl + Back does not reverse the execution! :P

PJM

Nice tip PJM!

Thank you.

BTW:

p = pico

P =Peta

I believe...

Ben

Link to comment
PS: check out "Long-haired freaky people need not apply" under the "Safety" section :laugh:

Yes, NI has humourous employees, although having said that I'm assuming that one of them (Colin) probably wasn't laughing when he tried out the experimental diet cola. (hint: Ctrl+F)

Cool app. I never knew it was there.

Peter

Link to comment
Hi all

Have you see that we have a free (i think) graphics library with labview (exist in 7.0, after i don't know) .

Look at : National Instruments\Shared\Graphics and run symfac1.exe

Regards

Eric ;)

OK, folks, what am I missing here? I have PDS 8.0 and 8.20 installed on my laptop, and I don't have a 'Graphics' folder under my 'Shared' folder. Does this come with a toolkit I don't have, like Vision?

Somewhat puzzled,

Dave :unsure:

Link to comment
I though it was part of the LabVIEW DSC package, but I may be wrong.

PJM

I don't think it's part of DSC - I've got the Symbol Factory, but I don't have DSC installed... Are you sure you're looking in the Shared folder under National Instruments, and not one somewhere else (like under LabVIEW)?

Link to comment
  • 3 weeks later...

Here's one that I wouldn't even consider a trick until somebody I was debugging some code with was recently wow'd by it...

While executing a VI:

If you right click on an Array Index Display of a control, indicator or probe, you can select 'Show Last Element' to go to the last element of the array.

In development mode:

If you want to look at the last element of an array control or indicator, right click on the Index Display and select Advanced-->Show Last Element (there is no 'Advanced' menu for probes so it always works by just right clicking).

Link to comment
Here's one that I wouldn't even consider a trick until somebody I was debugging some code with was recently wow'd by it...

OK, I'll fess up -- it was me, Omar wow'ed with this trick. I guess I'm starting to fall into the "old dog" learning (not so) new tricks, category.

Thanks, Omar!

-Jim

Link to comment

New tips

If you hold ctrl key and right click on the right border of flat sequence, the sequence size increase symmetriquely.

In fact it's not specific of flat, if do that on all dots borders of structure you increase size (up and low in vertical direction,right and left in horizontal and in the corner in the both direction).You must have something in structure

Eric

Link to comment
  • 4 weeks later...
  • 6 months later...

Hi all,

When I want to test a bit of the diagram in isolation: I select it, then <Ctrl> + C, N, E, V to paste into a new VI diagram (just a handy combination).

Guess someone has already mentioned <shift> + Enter for adding a new entry in a enum after the current one.

Bye for now.

-Martin

Link to comment
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.