labview

【Labview入门】工具的使用

早过忘川 提交于 2019-12-02 03:23:28
labview版本:Labview2015 在你使用labview时你可能已经发现,在鼠标移动到连线上时,鼠标会自动的变化,其实这是你选择了自动识别的工具,然后鼠标会根据你所指示的东西自动切换工具类型,那么如何手动的切换工具呢? 一、工具选项面板的打开方式 在Labview2015的版本中,工具选项在 查看 菜单的 工具选板 选项,如图: 点击 工具选板 之后,我们就调用出来了工具选项,如图: 各个工具的功能如下: 当然默认的就是那个自动选择工具。 二、实例 下面我们用工具面板进行一个实际的操作:用探针工具对所编的图形程序加上探针。 第一步 编写一个简单的加法程序: 前面板上我们输入1和2,也就是计算1+2的值 第二步 接着我们选择探针工具: 我们的光标现在就变成了一个探针,接着我们点击输出的那条线,会弹出下面的面板: 这个窗口是用来显示探针所探测到的结果的,我们点击运行程序会发现显示有变化: 即成功设置了一个探针 来源: https://www.cnblogs.com/kiwiwk/p/11728632.html

How to control LabView VI front panel switches (on/off, bar adjuster) using Python scripts?

删除回忆录丶 提交于 2019-12-01 23:37:25
I have a LabView front panel controlling switches and sensor voltage adjustors to the hardware and need to control these with a Python script. I do not have much knowledge of LabView . Please explain how this could be done. I found one reference on the LabVIEW discussion board that succeeded in this , it uses the following code: import win32com.client //load the interface labview = win32com.client.Dispatch("Labview.Application") //get a ref to the Labview application VI = labview.getvireference(r'C:\TEMP\python.vi') //load the VI VI.setcontrolvalue('Numeric','5') //set the control 'numeric' to

C# Dynamic multidimensional array

点点圈 提交于 2019-12-01 12:08:05
I have a function... private double[,] AddToArray(double[,] array, double[] dataToAdd) { // Make a new row at the end of 'array' and copy values // from 'dataToAdd' into the new row. // // Return the new, modified array. } However 'double[,]' isn't dynamic and I dont know what the final size of the array will be. I can create a List from it and add the new row to the list, but then I cant seem to convert it back to a double[,]. The List.ToArray() wants to output a jagged array (double[][]). This wont work. I'm interfacing with a program developed in LabVIEW and LV refuses to accept a jagged

Importing binary LabVIEW files with header information into MATLAB?

对着背影说爱祢 提交于 2019-12-01 11:43:47
I have large .bin files (10GB 60GB) that I want to import to MATLAB; each binary file represents the output of two sensors, thus there are too columns of data. Here is a more manageable sized example of my data . You will notice that there is a .txt version of the data; I need to upload the .bin files directly to MATLAB, I can't use the .txt version because it takes hours to convert with larger files. The problem I have is that the .bin file has header information that I can't seem to interpret properly, and thus I cannot extract the data in MATLAB every time I try I seem to get gibberish

C# Dynamic multidimensional array

百般思念 提交于 2019-12-01 10:35:27
问题 I have a function... private double[,] AddToArray(double[,] array, double[] dataToAdd) { // Make a new row at the end of 'array' and copy values // from 'dataToAdd' into the new row. // // Return the new, modified array. } However 'double[,]' isn't dynamic and I dont know what the final size of the array will be. I can create a List from it and add the new row to the list, but then I cant seem to convert it back to a double[,]. The List.ToArray() wants to output a jagged array (double[][]).

MSSCCI compliant Mercurial client

强颜欢笑 提交于 2019-12-01 07:15:42
问题 Hi I am looking into a Microsoft Source Code Control Interface (MSSCCI) compliant Mercurial Client for integrating Mercurial into my IDE (LabVIEW). I thought HgSCC was getting close since it claims it uses the MSSCC interface for it's integration with Visual Studio, however it doesn't turn op in LabVIEW as an option. Does anybody know a MSSCCI compliant client or can verify that HgSCC is indeed such a client and LabVIEW is just lazy in recognizing this one? I looked at the registry key used

如何在LabWIndows/CVI中调用LabVIEW DLL

白昼怎懂夜的黑 提交于 2019-12-01 06:23:03
首先请参考官方的文档 http://digital.ni.com/public.nsf/websearch/70995EC2CA1B523386256DD4004F3DE6?OpenDocument 但是虽然该文档题目为"Calling a LabVIEW DLL from a LabWindows™/CVI or Other C/C++ project",但是实际上只讲了在VS2008中进行调用的情况. 在CVI中的调用与VS2008中还是有很大区别的. 下面就讲一下我自己的方法吧. 首先按照上面的参考文档做到第三步, 接下来, 4.添加.h头文件到project里(注意.h和dll和lib文件的路径不要有中文.中文版labVIEW生成的dll会自动放在中文路径下,请迁移.) 5.找到你安装labVIEW的目录.找到National Instrument/ LabVIEW <你的版本>/ cintools这个文件夹(如果没装LabVIEW可以从别人的机器复制过来,据说可以....没有测试). 将cintools中的extcode.h 和 labview.lib 包含到project里. 6.编译运行.(这样应该可以了吧.) http://news.eeworld.com.cn/Test_and_measurement/article_2016073016432.html 来源:

Textual versus Graphical Programming Languages

☆樱花仙子☆ 提交于 2019-11-29 22:54:24
I am part of a high school robotics team, and there is some debate about which language to use to program our robot. We are choosing between C (or maybe C++) and LabVIEW. There are pros for each language. C(++): Widely used Good preparation for the future (most programming positions require text-based programmers.) We can expand upon our C codebase from last year Allows us to better understand what our robot is doing. LabVIEW Easier to visualize program flow (blocks and wires, instead of lines of code) Easier to teach (Supposedly...) "The future of programming is graphical." (Think so?) Closer

VI如何生成EXE和安装程序

一笑奈何 提交于 2019-11-29 11:31:34
在Windows平台下使用LabVIEW如何生成一个独立可执行程序和安装程序? 解答: 为什么要生成exe和installer 使用LabVIEW编写程序的最后往往需要将程序拿到目标电脑上去运行,如何将程序从开发电脑上移植到目标电脑上呢?这里有两种方法: 在目标电脑上安装LabVIEW以及相关驱动和工具包,然后将vi或者整个项目拷贝到目标电脑上。然而安装LabVIEW和各种工具包会比较耗费时间,且vi可以被任意修改,容易引起误操作,如果只是运行程序,则不推荐这种方法。 将LabVIEW编写的程序在开发电脑上编译生成独立可执行程序(exe),然后将可执行程序移植到目标电脑上,这里的移植分为两种方式: A.将生成的exe拷贝到目标电脑上,然后在目标电脑上单独安装LabVIEW运行引擎(Run-Time Engine)和需要的驱动以及工具包等,此方法中安装驱动和工具包也需要花费较多时间,不推荐 B.将生成的exe和一些用到的组件打包生成installer,即安装程序,然后在目标电脑上运行安装程序即可,这样安装完成后,之前生成的exe、LabVIEW运行引擎以及其他用到的工具包会自动安装到目标电脑上,这种方法移植程序比较简单,是最常用的方法。 关于LabVIEW运行引擎 任何电脑,只要你想在上面运行LabVIEW生成的独立可执行程序(exe),你都需要在目标电脑上安装LabVIEW运行引擎