LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Real Time Linux programming with Visual Studio Code C

Hello All,

 

I would like to develop real time system via NI Real Time Linux using C code. There is any possibilities to find example code, tutorial. I have already searched on every site but that I only found is a "Hello world" tutorial. I mainly interested in the Digital IO, GPIB, TCP/IP communication. How can I handle the signals etc.? Are there any NI course about the NI real time programming?

 

 

Thank you so much in advance.

 

I will be really appreciate if you can share some useful link, documentation or idea.

 

BR

 

 

0 Kudos
Message 1 of 6
(1,741 Views)

You are pretty much expecting the wrong thing here. NI realtime is in terms of programming simply Linux. And NI actually provides Visual Studio Code development environments for the NI Linux system.

 

A few links to check. There are more.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YIxsCAG&l=nl-NL

https://forums.ni.com/t5/NI-Linux-Real-Time-Documents/Archived-Developing-C-C-Code-for-NI-Linux-Real...

https://nilrt-docs.ni.com/

 

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 6
(1,646 Views)

Hello,

 

Thank you for your answer. I know, that labview could be the alternative option, but I have to say I'm not familiar with it. Unfortunately CVI/Windows has not supported yet.

 

Could you help me which way would be less painful? 

 

Thanks in advance.

 

Barnabás

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

@Barnabas wrote:

Hello,

 

Thank you for your answer. I know, that labview could be the alternative option, but I have to say I'm not familiar with it. Unfortunately CVI/Windows has not supported yet.

 

Could you help me which way would be less painful? 


Did you look at the links? You should, especially the last one!

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 6
(1,627 Views)

Hello,

 

Yes I have already seen the NI Linux Real-Time Documentation and Tutorials, but if I want to be honest, this documentation helps only how configure your IDE, and gives only one "Hello world" example. 😞

0 Kudos
Message 5 of 6
(1,602 Views)

For the rest you simply look at the API documentation. All the modern NI APIs are almost 100% compatible across platforms. They have an option to instal header files on your computer and for NI Linux those headers work too. You don’t need to.link extra import libraries in your project like on Windows since ELF shared libraries don’t need that.

 

The standard examples will mostly come with Windows project files but jf creating a project file for your platform is to troublesome you may better reconsider if this is the path you want to go down..

Rolf Kalbermatter
My Blog
0 Kudos
Message 6 of 6
(1,584 Views)