The Operation Could Not Be Performed Within LabWindows/CVI

Updated Nov 17, 2022

Reported In

Software

  • LabWindows/CVI

Issue Details

When generating code for my User Interface within LabWindows/CVI, I get the following message:

The operation could not be performed
 
Some of the code generates but is not runnable. This can be seen with the message in the following image. 

Code and message

Solution

This is can occur when legacy formatting is enabled within the Editor Preferences. This can be disabled by:
  1. Opening a C File in the editor.
  2. Go to Options >> Editor Preferences.
  3. Under the Formatting section uncheck Use CVI legacy formatting.
CVI Editor Preferences.png