Questions tagged [labview]

LabVIEW stands for Laboratory Virtual Instrumentation Engineering Workbench and is a graphical programming system by National Instruments. The programming language is called G but often referred to as just LabVIEW.

LabVIEW is a graphical development environment offered as proprietary software by National Instruments and complementing their industrial controllers and data acquisition systems used in research labs and elsewhere.

The programming language itself is called G but usually referred to as just LabVIEW. The programming language is a parallel, dataflow, graphical, type-safe language. Dataflow provides automatic memory allocation/deallocation without the overhead of garbage collection. The language includes hooks to call into native C, .NET, COM, etc.

A LabView application is represented by a so-called "virtual instrument" or VI. A VI is divided into two parts: the front panel and the block diagram. The front panel acts as the GUI and defines the user interface where all the visual elements ("controls") are drawn and placed. Front panel controls include buttons, switches, knobs, and so on. Output elements like graphs, thermometers, and text boxes are also placed on the front panel.

The block diagram contains the execution code. LabVIEW code follows a dataflow-based execution paradigm. Functions are represented as individual blocks on the block diagram, with each function having zero or more inputs and one or more outputs. The dataflow programming paradigm dictates that a block (function) cannot execute until it has received data on all of its inputs, and a block outputs data on all of its outputs simultaneously once it has executed. Each block is, from the perspective of the block diagram in which it resides, atomic. Wiring determine execution order between blocks, and sections of a block diagram that share no connections can run completely in parallel.

To include LabVIEW code in your question, consider using a VI Snippet so that others can view, run and edit your code.

You can read more on the LabVIEW wiki or on the official National Instruments website.

1408 questions
0
votes
2 answers

updating output from within while loop

i have a ex1.vi which has 2 inputs 1).Signal(boolean) 2).Message(String) has 1 output Parsed message(String) now this vi has a while loop where it detects the changes in input and should give the output. this ex1.vi itself is in a message loop in a…
Koushik Shetty
  • 2,146
  • 4
  • 20
  • 31
0
votes
2 answers

Extract values delimited by characters without characters with regex (LabView)

I want to extract the number sandwiched between two specific letters. e.g. string: x23y4z90 I specify x and y , I get 23 I specify y and z , I get 4 I specify z and x , I get 90 (the string pattern loops) x\dy yields x23y, but I don't want the…
0
votes
2 answers

Getting matrix of data from LabVIEW into C# .NET

I am running a simultaneous data acquisition and hardware control. The data acquisition is with an NI-DAQmx device. The hardware control is already written in C#.NET and we would like to synchronize our acquisition with the control, i.e. wait for…
0
votes
2 answers

OpenCV 2.4.2 Byte array to Mat produces a strange image pattern

Good afternoon, I am trying to run OpenCV through a DLL and use it in a LabVIEW application. I have correctly acquired an image in LV and passed the byte array to the DLL. I can loop and print out in a text file the values for every pixel and match…
Mich
  • 3,188
  • 4
  • 37
  • 85
0
votes
1 answer

Consume mono Web Service with LabVIEW

I have developed a web service in mono. I can consume it in my network and with other programs. The webservice is running on an xsp2 server: Now I import the wsdl to LabVIEW, everything goes well but when I call the webservice I get the following…
Jose Palma
  • 756
  • 6
  • 13
0
votes
2 answers

LabVIEW cannot read UDP packet

I'm sending udp packets from a device to my pc. Proof: (click here to enlarge) I'm using the standard "UDP Receiver VI" from LabVIEW (labview\examples\comm\UDP.llb) But the data I sent is not displaying on the vi, even though you can see that I'm…
Sharpless512
  • 3,062
  • 5
  • 35
  • 60
0
votes
1 answer

Count unique numbers in array and put them in 2D-array

I'm trying to count unique numbers in an array that is already sorted with bubble-sort method. I want to store the result in a 2D-array in LabVIEW. I have tried many things, but for some reason it doesn't work. This is my code: // COUNT NUMBERS int…
Sharpless512
  • 3,062
  • 5
  • 35
  • 60
0
votes
1 answer

ni measurement studio 2012 for VS 2012

Just want to be sure that measurement studio 2012 doesn't work for VS 2012 and don't waste my time to install it.
Alexan
  • 8,165
  • 14
  • 74
  • 101
0
votes
1 answer

Diagnose communication problems with a Zaber device

When I write software to control Zaber devices, I sometimes get strange behaviour that I don't understand. Usually it's caused by bugs in my script or other software, and sometimes it's a hardware problem like a loose connection on the serial…
Don Kirkby
  • 53,582
  • 27
  • 205
  • 286
0
votes
1 answer

Acquiring Agilent 54642D oscilloscope waveform AND settings

I would like to use LabVIEW to capture the waveform already displayed on the screen of my Agilent oscilloscope (model 54642D). With this waveform, I would like to obtain the current settings of the oscilloscope-channel as well (volts/div, time/div,…
The_Ders
  • 137
  • 9
0
votes
2 answers

Passing waveform chart to subvi for saving to file - preserving axis labels

I have a sub-vi that takes in 2 controls. First is a file path, identifying where to save a file to, and the second is a Waveform Chart control, that is the graph I want to print. I can save the image in the sub-vi using an invoke node, but the…
Stealth Rabbi
  • 10,156
  • 22
  • 100
  • 176
0
votes
1 answer

LabVIEW with mccdaq's WEB-TC

I am using LabVIEW to program a system that interfaces through a mccdaq(web tc). I am wondering how I can (through code) turn on and off an LED with the push of a button. I am able to use the DoutBit VI in order to make the LED blink with a push…
Mbhammerbro
  • 194
  • 1
  • 9
0
votes
1 answer

Format an iterator in LabVIEW

I am writing out a series of files in a while loop, they are named 1.dat, 2.dat, 3.dat... but I need the numbers to be formatted to - 00001.dat, 00002.dat, 00003.dat... so that the file order is maintained when reading them back in. Is there a…
Eamonn McEvoy
  • 8,876
  • 14
  • 53
  • 83
0
votes
1 answer

LabVIEW robotics with Pioneer P3DX

Is there support for MobileRobots Pioneer 3-DX (P3DX) Differential Drive Robot in LabVIEW ? http://www.ni.com/white-paper/9079/en#toc4
iceman
  • 4,211
  • 13
  • 65
  • 92
0
votes
2 answers

LabVIEW holds Excel Reference

I try to open and excel reference in LabVIEW and then close it after sometime. But the LabVIEW keeps holding the reference and does not release it unless I close the VI. Why is this happening? Is there anyway to force it to release the Reference? I…
Manoj
  • 5,011
  • 12
  • 52
  • 76