02-01-2023 06:26 AM - edited 02-01-2023 06:28 AM
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
02-09-2023 09:46 AM
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
02-09-2023 12:35 PM
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
02-09-2023 02:07 PM
@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!
02-10-2023 12:32 AM - edited 02-10-2023 12:33 AM
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. 😞
02-10-2023 01:25 AM
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..