LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Use Visual Studio Code as editor for LabWindows/CVI projects

Does someone know if it's possible to use Microsoft Visual Studio Code (this is not the "old well-known" Visual Studio) as an editor for LabWindows/CVI projects?

 

Every CVI developer knows the the editor itself is really poor (compared to what is available).

 

I think NI could/should consider the idea to develop a plugin for this editor (someone in the past proposed to switch to Eclipse).

In this way NI can concentrate its efforts in developing analysis libraries and integrating "common" third parties libraries (web, JSON, OPC-UA, ...) relying over:

  • a standard compiler (LLVM/CLANG)
  • a standard and actively developed editor
Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
Message 1 of 8
(6,377 Views)

I would be very interested in making our own extension for VSCode for CVI. For compilation, it would need to utilize the command line.

 

How hard can it be? 😉

0 Kudos
Message 2 of 8
(2,080 Views)

Stay tuned everyone... 🤗

Message 3 of 8
(1,843 Views)

👀

I can't wait for news on this topic...

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 4 of 8
(1,825 Views)

I’m reviving this year-old post to make sure you know about this: LabWindows/CVI Project Manager 

I’ve been using it for a few days now as a complete replacement for the LabWindows IDE, and - aside from a couple of things I miss and a few minor bugs - there is simply no comparison


I haven't yet found a way to contact the author to provide feedback.

Carlo A.
Megaris srl
Italy

Message 5 of 8
(81 Views)

Thanks.

 

I'm not able to find any reference of the author nowhere.

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 6 of 8
(68 Views)

Hello, I did some serious stalking 😀 and I've finally found his github

https://github.com/monkeyAtheist/VScode_Ext_CVI 

 

Carlo A.
Megaris srl
Italy

0 Kudos
Message 7 of 8
(65 Views)

@carlox wrote:

Hello, I did some serious stalking 😀 and I've finally found his github

https://github.com/monkeyAtheist/VScode_Ext_CVI 

 


I simply generated Rust bindings from the CVI headers using bindgen, and now I’m using Rust as the main programming language. CVI’s documentation covers building a project with an external compiler, but nothing says that the compiler has to be C ultimately — the Rust works just as well. All calls from Rust into CVI functions are unsafe, of course, because they go through FFI, the parameters the same. AI can generate Rust code as long as you tell it that you already have CVI bindings available. I’m using GitHub Copilot for this, and it works well. To edit the *.uir panel files obviously I still use CVI, which I keep open side‑by‑side with JetBrains RustRover, my IDE. Bindgen runs on every build to ensure the control IDs are always up to date. The callbacks are handled through the .obj file using CVI’s external‑compiler support, and everything is linked together with the CVI libraries — and it works.

0 Kudos
Message 8 of 8
(7 Views)