labview

Is there a better way to create a 1D array with n number of elements in LabVIEW?

泄露秘密 提交于 2019-12-24 17:18:09
问题 Here is what I did, anyone have a better way of doing it? Do they have built-in function to do this? I just started using LabVIEW might have overlooked. Like in MATLAB its just: x = (0:10-1) and in Python: x = range(10) 回答1: The easiest way to create a range, is to do as you've done - but wire the indexing terminal directly and dropping the shift register. There is no built-in way to do this. The only potential gain of that would be to use slightly less space on the diagram. Edit: As Yair

Passing a path to Labview DLL in Python

不想你离开。 提交于 2019-12-24 14:13:12
问题 I am starting here with my question, but realize it might need to be answered on the Labview forums. So, I have a DLL that was created in Labview, and I am accessing it via Python 3.3.3. I know that I am accessing it correctly, as I am able to access several of the functions already. However, I am having an issue when I try to pass a path to a file that I am running into issues. Here is the function call details from the .h file, that was created when the DLL was created: /*! * ClockInit */

LabVIEW missing VI

穿精又带淫゛_ 提交于 2019-12-24 10:46:14
问题 I'm trying to run a LabVIEW program that keeps bringing up an error saying it is missing a bunch of Sub VIs. I have most of the sub VIs in a separate folder except one : the NML ALL GPIB vi. I think the rest of the VIs are not running becuase they are all connected to this one but I'm not sure. Can someone please tell me where I can download this specific VI? do I need to download a specific driver? which one? Thanks! 回答1: I Googled 'nml all gpib vi' and it appears to be part of this library

How to get the name of an External window in C# Application?

走远了吗. 提交于 2019-12-24 10:33:44
问题 i've developed a simple application ( .dll ) in LABVIEW and i implorted that dll to a C# windows application( Winforms ) . Like [DllImport(@".\sample.dll")] public static extern void MyFunc(char[] a, StringBuilder b ,Int32 c); so when i call the function MyFunc a window will be popped up( the Lab View window( Front panel of my labview application i need to get the window name ( ExpectedFuncName ) in my C# application. i.e i need to get the name of the external window which is opend by my C#

Obtain buffer fast from arduino using labview

我怕爱的太早我们不能终老 提交于 2019-12-24 07:12:22
问题 I'm trying to read sensor's value obtained from arduino and displaying it on labview using a pulse sensor and a DS18B20 (temperature sensor) however I need the while loop to go fast (around 50 ms) in order to get the waveform chart from the heart pulses but if it goes slower than a minute the values get mixed up (I get temperature instead of the analog sensor value and viceversa) any suggestions to fix this? I obtain the values in a serial.print separated by a comma, so I used a match pattern

Synced Sliders in LabView

青春壹個敷衍的年華 提交于 2019-12-23 18:16:45
问题 In LabView 2009, is there a way to have one control (slider) affect the output and display of another control (slider)? For example, there are two sliders that adjust two separate parameters. I would like to be able to adjust the parameters independently but also simultaneously adjust both with a separate (parent) slider. The change in value created by the parent slider would be represented by a change in the two independent sliders for each parameter. 回答1: If I understand you correctly you

How can I display a value in a textbox indicator and a slider in LabVIEW?

≯℡__Kan透↙ 提交于 2019-12-23 16:26:09
问题 Is there a way to link two indicators on a LabVIEW front panel, so that they always have the same value? Right now I'm setting both to the same value every time, but it'd be much easier if there were a way to set up one to mirror the other. 回答1: You can make the digital display visible. Right-click on the slider and select "Digital Display" from Visible Items. 回答2: There are a few ways to achieve this, depending on how you are trying to display the data. If you are just trying to update a

Labview programming

天涯浪子 提交于 2019-12-22 10:27:17
问题 Our project is LIDAR which is based on physics. The total equipment is connected to server which consists of various sensors. Server gives total information about the equipment like temperature, humidity etc. Server and laptop are connected through LAN. Our work is to develop a software using labview which interfaces the equipment with the laptop. To achieve that first we have to connect the server to the laptop. We have tried in so many ways using TCP/IP vi in labview. Both server and client

Python list to XML and vice versa

℡╲_俬逩灬. 提交于 2019-12-19 21:34:52
问题 I have some python code that I wrote to convert a python list into an XML element. It's meant for interacting with LabVIEW, hence the weird XML array format. Anyways, here's the code: def pack(data): # create the result element result = xml.Element("Array") # report the dimensions ref = data while isinstance(ref, list): xml.SubElement(result, "Dimsize").text = str(len(ref)) ref = ref[0] # flatten the data while isinstance(data[0], list): data = sum(data, []) # pack the data for d in data:

Importing binary LabVIEW files with header information into MATLAB?

心不动则不痛 提交于 2019-12-19 10:43:09
问题 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