Qizhen's profileLabVIEWPhotosBlogListsGuestbook Tools Help
O Troupe of little vagrants of the world, leave your footprints in my words.

Comments (136)

Please wait...
Sorry, the comment you entered is too long. Please shorten it.
You didn't enter anything. Please try again.
Sorry, we can't add your comment right now. Please try again later.
To add a comment, you need permission from your parent. Ask for permission
Your parent has turned off comments.
Sorry, we can't delete your comment right now. Please try again later.
You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
Complete the security check below to finish leaving your comment.
The characters you type in the security check must match the characters in the picture or audio.

To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


Don't have a Windows Live ID? Sign up

Qizhen Ruanwrote:
Jie Wang:

我没有使用过MatLab,所以不太好对他俩进行比较。LabVIEW的mathscript遵循的语法与MatLab应当是同一个,所以它俩写出来的程序应该是相同的。
LabVIEW主要还是在工控测试领域中应用,其它行业的工具包的确没有MatLab多。mathscript只是LabVIEW以下部分,我觉得LabVIEW最具特色的还是它的图形化编程方法。
June 29
Jie Wangwrote:
What do you think about LabView when comparing with MatLab? LabView seems a good one for signal processing and measurement, and instrument simulation. LabView uses the same mathscripts from MatLab. MatLab has a huge amount of various toolboxs from engineering, bioinformatics to finance. Personally, I think LabView is still specialized in instruments. It would be a very long way if NI wants it to be generalized.
June 25
Jie Wangwrote:
Hello, come here when googling LabView in Chinese. You make a very good site! I am a professor of Computer Science. However, this Summer I am teaching LabView for Mechanical Engineering students. I have to learn it and teach it at the same time. Sad I hope I will get some help from reading your blog. Thank you.
June 25
Yuan Pengwrote:
阮老师,您好!我在调用visa函数做串口通信时,在没有接外部设备,而只是把电脑上的两个串口连起来,相当与从一个端口发送出去而从另外一个端口接收,怎就通信不了?是不是labview做的串口只针对和PCI-232这些设备通信?
这个我试过 一台PC作为发送端,负责串口的写数据,另一台作为接收端,负责读数据,安装了VISA后用串口函数很容易实现的。
June 14
Qizhen Ruanwrote:
我没试过把两台电脑连在一起,可能串口有服务端和客户端区分的,如果两台电脑相连,需要把一台电脑改为客户端。
June 13
June 13
莉莉 古wrote:
阮老师,您好!我在调用visa函数做串口通信时,在没有接外部设备,而只是把电脑上的两个串口连起来,相当与从一个端口发送出去而从另外一个端口接收,怎就通信不了?是不是labview做的串口只针对和PCI-232这些设备通信?
June 12
俊杰wrote:
控件说明上面也是这么说的,但在labview中我还是不太会实现。您看这样做可以吗:在程序面板创建一个数组,然后用索引数组引出一个内容连至lpDataBuffer,这样对吗?我像看看数组传递的例子,请问阮老师哪里可以找到?谢谢!
June 12
Qizhen Ruanwrote:
在LabVIEW中没有指针的概念。你可以像VB一样,先造一个数组,然后把数组传递给它。
June 9
俊杰wrote:
阮老师,您好,向您请教一个问题。我在用labview调用ocx控件进行对数据采集器的编程,数据采集结束后要用一个函数进行读取采样结果,控件的说明是这样的:

long ReadSamplResult(long* lpDataBuffer, long size):读取采样结果

lpDataBuffer:采样结果存放指针,在C语言中,可以传递一个指针给该参数,在VB中,需要先声明一个数组,然后将该数组的第一个值作为参数传递给该参数。

Size:传递的数组大小。如果该值大于仪器内部的RAM的大小,则超过RAM部分的值都会是0,如果小余RAM的设定值,则该函数不能读取完,只能读取size的大小。剩下的部分不能再次读入了。

返回值:返回最后读取到的数据个数,读取失败返回0或者FALSE

我在labview中该如何实现呢?谢谢了

June 8
Boone Luwrote:
欢迎阮老师来QQ群:13267790指点。
May 8
Boone Luwrote:
哈哈哈,有点偷梁换柱的意思。
谢谢!
May 8
Qizhen Ruanwrote:
Boone Lu,使用LabVIEW制作的安装包可能没有这个功能。你可以改用专业的安装包制作软件来制作安装包。
如果不能使用专业安装包软件,也可以这样:
假设你程序运行时需要用到 foo.access 这个文件,在安装时,给它改个名字,比如安装的文件叫做access.bak。当程序运行时,先检查是否有 foo.access 这个文件。如果有,则继续运行;如果没有,则把 access.bak 这个文件拷贝一份,命名为 foo.access。
May 7
Boone Luwrote:
阮老师,你好!我在安装时遇到个问题:我的项目里包含了一个ACCESS的文件,用来保存测试记录的,当我重新安装时数据库文件会被覆盖掉,有什么解决办法吗?
陆迅海
May 6
Qizhen Ruanwrote:
运行过程中不可以改变控件方向。
实现你说的功能比较简单:使用一个控制控件,需要让它显示数据时,把值赋给控件的局部变量就可以了。
May 5
莉莉 古wrote:
阮老师,你好,我最近学习Labview遇到了一个问题想向你请教.Labview在程序运行时是不可以把一个控制控件改为显示控件的,但我现在想让一个控件既可作为显示控件又可作为控制控件,有什么办法啊?我看了Labview自带的例子,可以做一个这样的Xcontrol控件,除了这个方法还有更好的方法没有啊?
Apr. 20
莉莉 古wrote:
你好,最近看了你写的关于Labview文章,让我这个Labview初学者受益匪浅,很是期待你的书早日出版。
Apr. 18
lingzhiwrote:
哦,谢谢你的指点。
Apr. 10
Qizhen Ruanwrote:
不过,你可以把这XControl的数据类型定义为某个类,需要处理的各种数据类型全部封装成它的子类。这样,这个XControl就可以处理多种不同的类数据类型了。
Apr. 10
Qizhen Ruanwrote:
不可以,只能使用一种数据类型。
Apr. 10
lingzhiwrote:
Qizhen,你好。目前我所知道的用xcontrol实现的组件接口是单输入的,我想问一下,组件接口可以是不同类型的多输入吗?如果可以,是否有案例?
Apr. 10
Qizhen Ruanwrote:
具体时间我也不能确定,不过还要等几个月吧。
Apr. 8
Hongyan Wuwrote:
你好呀,请问你的书什么时候出版呢?很想看看呢~~
Apr. 7
Qizhen Ruanwrote:
Hi wen, I'm sorry, but I can not check your coursework.  I don't have enough time and I don't familiar with your course.  I think you'd better ask your tutor to check it.
Mar. 11
Qizhen Ruanwrote:
数据采集肯定需要使用硬件的。
LabVIEW只能实现数据采集后,对数据的处理工作。比如分析、显示等。
Mar. 11