labview

labview连接mysql数据库

给你一囗甜甜゛ 提交于 2019-12-05 04:39:43
前期准备:安装MySQL 并设置可远程连接 第一步 安装 mysql connector odbc https://www.cr173.com/soft/50794.html 第二步:创建数据源 本机搜索 odbc,点ODBC数据源32位(安装的是32位驱动) 选Excel Files 点击【添加】 选择 MySQL ODBC8.0 ANSI Driver 弹出的对话框中填写要连接的数据库信息,点击OK保存。这里填写的【DataSourceName】要记好,在labview连接数据库时要用到。 第三步 下载并安装LabSQL https://dl.pconline.com.cn/download/1948229.html 在 labview 安装目录的user.lib文件夹下新建一个LabSQL文件夹,然后将下载的两个文件复制进入,重启labview就可以在后面板中的函数选版的用户模板中找到LabSQL工具包了。 第四步 测试 重新打开Labview 新建一个VI 在VI中添加LabSQL 的例子, 来源: https://www.cnblogs.com/purplemoon/p/11906532.html

C# - Finding Peaks within a Given Width via Quadratic Fit

核能气质少年 提交于 2019-12-04 20:16:40
I'm working on an algorithm to find peaks in a List object. I'd thought up what I thought was a good (or good enough) algorithm for doing this by looking at a point and it's neighbors and, if it was a peak, adding it to the results list. However, given some recent results, I don't think this method works as well as I'd initially hoped. (I've included the code I'm currently using, and hope to replace, below). I've done a little work with LabView before and I know that the way their module finds peaks/valleys works for what I need to do. I did some research into how LabView does this and found

Reading LabVIEW TCP data (Flattened String / Data Cluster) in Python

一个人想着一个人 提交于 2019-12-04 19:01:59
I have a LabVIEW application that is flattening a cluster (array) of Doubles to a string, before transmitting over TCP/IP to my python application. It does this because TCP/IP will only transmit strings. The problem is that python reads the string as a load of nonsense ASCII characters, and I can't seem to unscramble them back to the original array of doubles. How do I interpret the string data that LabVIEW sends after flattening a data strings. My only hint of useful information after hours of google was a PyPI entry called pyLFDS, however it has since been taken down. The LabVIEW flattened

What specific features of LabVIEW are frustrating to you? [closed]

删除回忆录丶 提交于 2019-12-04 09:02:52
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Please bear with me: this isn't a language debate or a flame. It's a real request for opinions. Occasionally, I have to help educate a

Python UDP Broadcast not sending

折月煮酒 提交于 2019-12-03 08:50:27
问题 I am trying to UDP broadcast from a Python program to two LabView programs. I cannot seem to get the broadcast to send and I am not sure where my socket initialization is wrong, broadcasting seems simple enough?? As far as I can see, there is no data being received by the other PC's. Also, I will need this program to receive data back from the other PC's in the future. It seems like that shouldn't complicate things but every step of the way has been complicated for me! Background: I have zero

What specific features of LabVIEW are frustrating to you? [closed]

☆樱花仙子☆ 提交于 2019-12-03 01:44:31
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Please bear with me: this isn't a language debate or a flame. It's a real request for opinions. Occasionally, I have to help educate a traditional text coder in how to think in LabVIEW (LV). Often during this process, I get to hear about how LV sucks. Rarely

Python UDP Broadcast not sending

自作多情 提交于 2019-12-02 22:46:25
I am trying to UDP broadcast from a Python program to two LabView programs. I cannot seem to get the broadcast to send and I am not sure where my socket initialization is wrong, broadcasting seems simple enough?? As far as I can see, there is no data being received by the other PC's. Also, I will need this program to receive data back from the other PC's in the future. It seems like that shouldn't complicate things but every step of the way has been complicated for me! Background: I have zero software experience, this is just something I was assigned at work. Any help is appreciated. Code is

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

余生长醉 提交于 2019-12-02 04:56:05
问题 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. 回答1: 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

How can a Labview VI be run as a background task through an ActiveX call ? (without keeping ActiveX busy)

a 夏天 提交于 2019-12-02 04:03:13
I would like to execute a Labview VI through ActiveX in Matlab. I use the following commands: e=actxserver('LabVIEW.Application'); vipath='C:\DATA\Labview\test.vi'; vi=invoke(e,'GetVIReference',vipath); vi.Run; This works correctly and the VI is seen to execute on its front panel. However, Matlab keeps waiting until the VI has terminated. I want Labview to run the VI silently, without telling Matlab (through ActiveX) to wait. How can a VI be executed without keeping ActiveX busy ? Is there a standard way to do so ? (I assume there should be, given how multitask-oriented Labview is - which is

【Labview入门】子VI的调用

这一生的挚爱 提交于 2019-12-02 03:28:25
labview版本:Labview2015 Labview里面也可以向C语言等变成语言一样调用子程序,本文带你一步一步实现子VI的创建与调用。 第一步 写好程序 首先我们写个简单的加法程序: 我们的目的就是要把这个程序当做子VI来调用。 第二步 自定义子VI图标 右击前面板或者后面板的右上角的这个图标,点击编辑图标我们可以自己定义我们子VI的图标。 右上角的图标 自定义子VI图标的窗口 然后我们就可以自己开始创作了!这里我画了下面这样一个图标: 点击确定就可以了。 第三步 配置节点 对这步的理解就是我们要将我们的图标的结点与我们的程序的输入输出结点连接,这样才能正常的调用。在前面板右键点击右上角的这个图标: 在模式选项中选择结点的模式,这里我们选择两个输入一个输出的一个模式,这个模式的选择要和你具体的程序相互匹配: 然后就把对应的结点相连,比如下面这个就是鼠标先点几下左下角那个方框,然后再点击下前面板中的一个输入控件,他们之间就建立起了连接。 建立成功如图: 接着在文件菜单中点击保存为,保存成VI文件即可: 第四步 调用 新建一个新的VI,然后在后面板右键: 通过选择VI选项选择自己刚刚保存的VI即可调用。 程序示例: 这样我们就成功的调用了子VI了! 来源: https://www.cnblogs.com/kiwiwk/p/11728904.html