在撰写《LabVIEW编程思想》时,我遇到了困惑。
LabVIEW是一种编程语言,或者说LabVIEW是一种图形化编程语言,绝对没错!
LabVIEW是一种通用编程语言?,对此划问号。

理由是LabVIEW是一种基于可视化操作系统下的编程语言,而C、C++、Java则不然。
假如,LabVIEW是一种通用编程语言,它可以用来编写操作系统吗?我认为不行!


带着这个疑问,在NI的LabVIEW论坛上我发了个帖子。这 里

问到:


Can use The LabVIEW to write operating system?
Why?
 I think not!Because it is based on visual operating system.
 My English is not good, forgive me!

大意:
LabVIEW可以用来编写操作系统吗?
为什么?
我认为不行,因为它是基于可视化操作系统的。
我的英文不好,见谅!
 

Norbert回到:

No, you cannot use LabVIEW to write your own operating system. It has nothing to do with using visual programming.

The reason is that the code which is compiled by your code (the language name is "G") is not a machine code directly executable by a PC. You will need an appropriate Run Time Engine (RTE) for LV code to execute and this RTE needs existing OS's like Windows or certain Linux Distributions.

Norbert

大意:(翻译的是否准确请指正)
现在,无法用LabVIEW来写你的操作系统,这与可视化程序无关。
LabVIEW所编译的代码不是可以直接运行在PC上的可执行代码,LV代码的运行需要一个运行时(RTE),而RTE需要特定的操作系统支持的,比如windows或Linux。
 

又问到:
Thank you Norbert!
By The reason.....
LabVIEW is not a Generic programming languages, is not?
Why?

大意:
Norbert,非常感谢你!
基于这个原因,LabVIEW不是一种通用编程语言?对吗?
为什么?


Norbert又回到:
LV is a generic programming language. It is best compared to C#: C# code needs a RTE as well. The RTE for C# is called ".Net Framework" and has to be installed on the system in order to run C# applications.

I do not know if there are ways to implement OS's in C#, but there is some possible way in LV as well:

If the target you have is a uProcessor, you can use LV Embedded in order to work with this.

hope this helps,

Norbert

大意:
LabVIEW是一种通用编程语言。这与C#一样:C#代码同样也是需要一个被称为:".Net Framework" 的RTE安装在C#应用平台上。
我不清楚用C#可以实现什么样的操作系统,但是使用LabVIEW有可能行,比如,你的目标机是一个微处理器,可以用 LV Embedded作这个工作。
希望对你有用,
 

继续问到:

Is there a ".Net Framework" in LV RTM for Windows?

大意:
那windows平台下的LabVIEW RTE 包含
".Net Framework"吗?
 

Norbert继续回到:
Well, my comparison between LV and .NET was simply....a comparison. So the LV Run Time Engine has nothing to do with the .NET Framework.....

The LV RTE has to be installed seperatly. It is available for free for download at ni.com, but it is also installed with the LV development environment.

Please note that RTM is often the abbreviation for Run Time Menu.....


Norbert


大意:
其实,我只是将.NET与LabVIEW做个简单类似的比较,LabVIEW RTE中并不包含
.NET Framework.....
LabVIEW RTE是一直存在的(意思是在开发环境和应用环境都有)。它可以通过NI网站自由下载,包括也安装在开发环境中。

值得注意的是:RTM是
Run Time Menu....的缩写(我提问时错将RTE打成RTM,哈哈 )。
 
 

真的让我明了很多,LabvIEW是一种通用编程语言(因为人们普遍认为C#也是通用编程语言),但不可以用来编写操作系统。
有其它看法可以讨论!

我的英文不好,有翻译的不对的地方望朋友们给矫正一下。
 
Picture



Leave a Reply.


Google Analytics