LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Ctrl+D shortcut missing

I have LabWindows/CVI 7.1 on my computer.  I can not declare a variable using <Ctrl-D>.
0 Kudos
Message 1 of 7
(3,541 Views)
Hello AB-SP,
 
The Ctrl-D shortcut is used to declare a parameter variable.  If you used one of the built-in CVI functions, then use a variable as one of the parameters, you can then press Ctrl-D in the source code window, to declare a variable.  For instance, if you type:
 
GetCtrlVal(panelHandle
 
with the cursor at the end of the word panelHandle, and then press Ctrl-D, it will declare the variable panelHandle for you.  If you continue typing:
 
GetCtrlVal(panelHandle, control
 
and then press Ctrl-D, it will then declare the variable control for you, and so on.  Do you see the same behavior?
 
Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 7
(3,526 Views)

No, I do not get that behavior.  Nothing happens when I press Ctrl-D.

If I open a function panel and select "View" from the menu,  I can see "Declare Variable..." in the dropdown menu but there is no shortcut associated with it.

I tried loading the latest patch for LabWindows/CVI, but it didn't fix the problem.

 

0 Kudos
Message 3 of 7
(3,524 Views)

Hello AB-SP,

To clarify, do you see the "Declare Variable ..." entry under the View menu on the function panel, or the Code menu?  Also which OS are you using?

Thanks.

Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 4 of 7
(3,518 Views)

Sorry, that was a typo.  I see "Declare Variable..." in the "Code" menu.

I have Windows XP Professional, Version 2002 with Service Pack 1.

0 Kudos
Message 5 of 7
(3,517 Views)

Hello AB-SP,

Is it only the Declare Variable shortcut that doesn't appear?  It it is only that one option that doesn't have a shortcut, I suspect your default shortcuts got changes somehow, but you should be able to correct that situation rather quickly. 

If go to the Source Code Window, and expand the Options menu.  Select Change Shortcut Keys.  There you will see a list of all your shortcut settings.  Expand the "Code Menu" tree node.  From there, I'm assuming you don't have a shortcut set for "Declare Variable".  On my machine, it lists Ctrl-D beside that entry.  What you can do is right click on Declare Variable, and select Change Key.  Choose Ctrl-D or any other unused Key combination.  Click OK, and now if you open up your function panel and expand the Code menu, you should see the appropriate shortcut beside the "Declare Variable..." entry.

Let me know how this goes.  Thanks.

Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 6 of 7
(3,512 Views)
Thanks, Wendy.  That worked!!!
0 Kudos
Message 7 of 7
(3,510 Views)