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

LABVIEW: Is there a logic gate or a combination of logic gates that gives the following

Is there a logic gate or combination of logic gates that gives the following? If not, is there something that gives the following on Labview Input: 00, 01 , 10 , 11 Output respectively: 0,1,0,0 I think its unlikely because distinguishing a 1 and…
user29568
  • 167
  • 9
0
votes
1 answer

LABVIEW: Two while loops in each other and time

I have one larger while loop and another while loop(Loop 2) inside the other while loop. Many of the inputs and outputs are reliant on the time. When Loop 2 is inside the bigger while loop the time stops working. I think the two different stops are…
user29568
  • 167
  • 9
0
votes
2 answers

LabView: How to add a memory to a VI in labview?

I have been scratching my head trying to find a code that allows the change from on->off to cause something to happen while a change from off-->on not to work. For example, I have a sensor as an input. At first it senses an object that passes by and…
user29568
  • 167
  • 9
0
votes
2 answers

Timing while a value is true in Labview

I have been making a labview program for kids to moniter energy production from various types of power sources. I have a condition where if they are underproducing a warning will fire, and if they are overproducing by a certian threshold, another…
Amy
  • 23
  • 1
  • 7
0
votes
1 answer

Setting up and reading an array of .NET structs in LabVIEW

I have a .NET struct containing floats and ints, and I have a method that returns an array of that struct. How do I initialize a reference to an array of .NET structs in LabVIEW, so that I can read out the floats and ints?
kasperhj
  • 10,052
  • 21
  • 63
  • 106
0
votes
2 answers

Queue in labview formula node

Is there a way to get a queue of ints in the formula node of Labview? I could use an array, initialize it outside with a max size and use that but is there another way? Maybe a sort of dynamic array?
user2839747
  • 255
  • 4
  • 11
0
votes
3 answers

Ascii convert to HEX

I have a command file with this format: 31 01 FD 37 04 31 01 FD 37 05 31 01 FD 37 06 31 01 FD 37 07 This commands are in ASCII but i have to send my device same numbers just in HEX so: 31 01 FD 37 04 -> 31 01 FD 37 04 NOT(33 31 30 31 46 44 33 37 30…
0
votes
1 answer

Creating an XY graph in labview which would store previous values

Link to the vi: see xy_plot_problem_withcase In the attached vi (xy_plot_problem_updated.vi) I am able to get 3 individual values x, y and z in an array, element 0 being x, element 1 being y and element 2 being z. These three values come for every…
user2804872
  • 1
  • 1
  • 2
0
votes
2 answers

LabVIEW 2010: Is there a way to create an IMAQ Image Control from the blocks editor

I am trying to create something to simulate drawing cards until the face values add up to at least 21 (like blackjack, but you are dealt until you get 21 or bust). However, I don't want to show extra IMAQ image Controls on the front panel if…
0
votes
3 answers

How to find or create the iteration number box in a For loop

I have a large, somewhat messy For loop in which I can not find the iteration number box. Is there any way of searching for this component or simply creating a second iteration number box?
DakotaD
  • 371
  • 3
  • 18
0
votes
1 answer

Labview Percentage slider

I'm trying to make a Vi where I have a percentage slider. This slider goes from values 0-255 (it outputs bytes) and I want it to instead of values 0-255, I want to show percentages and if the percentage is below 10%, I want the slider to output…
Dragongeek
  • 263
  • 1
  • 5
  • 23
0
votes
1 answer

Can Functional Globals be used to share data between VIs running on different targets?

The LabVIEW wiki page on Functional Global Variables (FGV) states that The primary use of Functional Globals is to provide data sharing across an entire project, both horizontally and vertically. In the past, I have successfully used FGVs to share…
jub0bs
  • 60,866
  • 25
  • 183
  • 186
0
votes
1 answer

Qt Client - LabVIEW server

I am trying to connect a Qt client to a LabVIEW server (acquiring analog signals). Can this be done with data sockets ?
0
votes
1 answer

Labview interop assembly, exchanging Image between c# and labview

I made an interop assembly.net dll with labview that takes in parameter an image, do some work on that image and then return the image. After I added the dll to my c#.net project I can't figure out what kind of data type that goes with the image…
0
votes
3 answers

Using labview to control multi computers

I am using labview to control 6 machines each of which is with a computer and independent code. I want to control 6 machines at the same time by one monitor. Can I use web serve? Or does anyone have another good idea?