LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

inverse of comment on excluded lines

If you have excluded lines and you try to save the file, CVI does a popup trlling you to resolve the exclusion.  One option is to comment out the excluded lines, and the CVI editor hacks in a C99 / C++ style "//" line comment for eachof the excluded lines.

 

But, if you've done this and then want to include these lines and undo the commenting, how do you do it except for manually uncommenting each line? 

 

Other IDE's can do this, I don't imagine it would be terribly hard to implement if there isn't some way to do it now that I haven't tumbled upon ...

 

Menchar

0 Kudos
Message 1 of 6
(3,938 Views)

Hi Menchar,

 

What version of CVI are you using? I am having problems recreating this issue, as far as I can tell, you should be able to save your code with parts excluded with out issue. Maybe you could post an example of the type of code that is causing this error?

 

Thanks

Scott M.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(3,917 Views)

I am using an external compiler, and if I try to compile after making changes that I haven't saved, it does a popup saying I need to save first.  If I choose save, if I then have excluded lines, it does another popup and says I have to resolve the excluded lines.

 

One option is to comment them, and CVI does it automatically then, putting // in front of each excluded line.

 

At some later point, when I want to use the previously excluded (but now commented) lines, I don't see any way to automaticcaly uncomment the lines that CVI commented for me on my behalf.

 

Menchar

0 Kudos
Message 3 of 6
(3,909 Views)

Hi Menchar,

 

Sorry I didn't quite get your issue the first time, I get it now.

 

Unfortunately there is no feature is CVI to automatically uncomment sections of your code, I do understand that this would be useful so I will submit it as a product suggestion.

 

I hope uncommenting your code manually isn't to much of an issue.

 

Thanks

Scott M

Applications Engineer
National Instruments
0 Kudos
Message 4 of 6
(3,879 Views)

hi,

   before NI add this feature to IDE,you can use "Find and repleace dialog"

   specialy with "regular expresion" and "selected text only options" checked on

   you still need to select text manualy, but this relative easy compared to manual editing 🙂

   and you have control what section will be uncommented when multiple in one file exist

   Dialog settings:

     Find:^//

     repleace:

 

 

P.S.     string "^//" cause  to repleace only string "//" at start of line so no other coments will be deleted

Message Edited by OVR_CZ on 11-12-2009 09:59 AM
Message 5 of 6
(3,863 Views)

I use RE's all the time.

 

But I shouldn't have to hack out an RE every time I want to uncomment a block of statements.

 

Other IDE's do this as a matter of course, e.g.  Visual Studio.

0 Kudos
Message 6 of 6
(3,825 Views)