labview

send data from LabView to Python and get back

流过昼夜 提交于 2019-12-10 17:23:15
问题 How do I send data from LabView to Python and get a result back? 回答1: One other solution is using the smart messaging library ZeroMQ, which comes with a lot of bindings, almost for all major languages. For the Python/Labview case there is a nice demo project on sourceforge: Python-LabVIEW Communication Client-side ~LabVIEW + Server-side part (example) #-----------------------------------------# INFRASTRUCTURE for communication context = zmq.Context() # I/O-DAEMON CONTEXT socket = context

Read LabView program without LabView

梦想与她 提交于 2019-12-10 13:41:15
问题 I have a file containing a LabView program and need to understand what it does. Of course it can not be executed without LabView. But is it possible to read a LabView program without Labview? 回答1: As @JKSH already stated the answer is "No". If you think a Labview Viewer could be useful give a Kudo to this Labview Idea and try to convince National Instruments to provide one. In the comments to the idea there's a link to a software, VIpreVIEW - Interactive VI preview, making a Flash-enabled

Open DOS window and spew debug messages from DLL

一笑奈何 提交于 2019-12-10 10:48:53
问题 I am currently calling a DLL from labview, but I need to be able to debug it realtime (because of it's accessing time sensitive hardware). I would like to just printf() my error assert messages but I am unsure about how to open a DOS window from within the DLL to dump error information to. Has anyone done this before? I know I could do this with a file, and I may have to. printf is just such a handy quick and dirty way to do this though :) . 回答1: 1) Make a call to the windows api AllocConsole

Reading TDMS files in python_ how to use tdmsinfo command?

∥☆過路亽.° 提交于 2019-12-10 10:43:07
问题 I would like to know what is the content of a tdms file, which is produced by Labview. Following this site, I write in Python: import numpy as np from nptdms import TdmsFile from nptdms import tdms #read a tdms file filenameS = "RESULTS.tdms" tdms_file = TdmsFile(filenameS) tdmsinfo [--properties] tdms_file I receive the following error: tdmsinfo [--properties] tdms_file ^ SyntaxError: invalid syntax I do not how to fix it. Thank you for your help :) 回答1: What you are looking for is: First

LabVIEW “driver” - getting started

时间秒杀一切 提交于 2019-12-10 03:14:05
问题 I have written a standalone app that controls a device through RS-232 port and some customers want to be able to use the device with LabVIEW. I have seen some threads describing where to start when learning to use LabVIEW, but I was wondering if anyone has experience with writing a plugin/driver (is that the right word?) for LabVIEW and perhaps point me in the right direction. The existing app is GUI that allows people to control the device with higher level concepts - rather than have to

Connecting I2C Device to Labview using NI-845x

混江龙づ霸主 提交于 2019-12-08 08:23:11
问题 I'm trying to connect a mass flow sensor, SFM-3000 by sensorion, to labview on PC using USB device, NI-8452, which provide I2C interface. I followed the user manual of the sensor and used I2C example by labview but I cannot establish communication between them I get the error message: Error -301744 occurred at NI-845x I2C Run Script.vi:6110001, Possible reason(s): NI-845x: The I2C master lost arbitration and failed to seize the bus during transmission of an address+direction byte. I'm using

Labview: creating subVIs makes the Block Diagram expand

社会主义新天地 提交于 2019-12-07 14:04:54
问题 I wrote a rather complicated piece of code in Labview (with many loops and other sequences). Therefore I want to create many subVIs to make my code more clear. When I have a loop in the code I want to have in a subVI, the icon of the newly created subVI appears far away form my original piece of code, causing my Block Diagram to expand. Why does it happen and how can I avoid it? The piece of code I want to turn into a subVI: The same fragment of my Block Diagram after I created the subVI: And

Is it possible to set diff/merge-tool for a specific file extension in git-extensions?

无人久伴 提交于 2019-12-07 11:08:47
问题 I'm just getting started on developing in LabView, it's all new to me. And i'd like to use git extensions to handle my versioning. Since the source is in a *.vi format, I can't use the normal diff tools, the source is binary. Fortunately, LabView comes with dedicated diff and merge tools which seems to be very helpful. And I can setup TortoiseGit to use these tools on all *.vi files. It's from this how-to: https://www.labviewhacker.com/doku.php?id=learn:software:github:getting_started Is

How do I resolve Labview load conflicts

余生长醉 提交于 2019-12-07 07:16:40
问题 I am developing a data acquisition program in Labview that uses multiple translation stages, cameras, a high speed digitizer, and other instrumentation. I'm developing the application on one computer, and will be deploying it to another computer. The development computer has labview 2013, and computer the application will be deployed on currently has Labview 2012, but we will be upgrading it to Labview 2013 when we move the application over there. Some of the drivers need different versions

Share a variable between C and Labview?

守給你的承諾、 提交于 2019-12-07 06:39:54
问题 What is the best way to permit C code to regularly access the instantaneous value of an integer generated from a separate Labview program? I have time-critical C code that controls a scientific experiment and records data once every 20ms. I also have some labview code that operates a different instrument and outputs an integer value ever 100ms. I want my C code to be able to record the value from labview. What is the best way to do this? One idea is to have Labview write the integer to file