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
3
votes
2 answers

How do I convert a LabVIEW decimal date into a string datetime format using Python?

I need to convert a decimal timestamp in a JSON file generated using LabVIEW into a string datetime so that I can POST it to an API I'm using. For instance, one such decimal timestamp is 3640111724.4817362; how can I do this? EDIT: This article from…
Tarek Allam
  • 139
  • 1
  • 8
3
votes
1 answer

LabVIEW: how to place a computed cluster value into a queue?

How do you put a computed cluster value into a queue? I modified the "Producer/Consumer Event" design pattern so that the type of the queue is a cluster rather than a string, but I cannot figure out how to get different values into the queue on each…
Kevin S. Miller
  • 913
  • 1
  • 9
  • 21
3
votes
2 answers

Read/Write LabView TDMS files in python under linux

Does anyone know of a way to read and write the National Instruments binary file type (TDMS) in python under linux? I know that NI has a C DLL available, but I don't know how to access that through python, or if I even can do so under linux.
David Morton
  • 1,744
  • 2
  • 15
  • 20
3
votes
3 answers

Adding MySQL functionality in LabView

I am new to LabVIEW and trying to make a small project. In LabVIEW from one device, I am measuring some values and then need to store them in database. Initially, I used Excel to store data. But now I need to add MySQL functionality to store data…
Rio
  • 347
  • 3
  • 6
  • 20
3
votes
4 answers

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

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.
Sophie Alpert
  • 139,698
  • 36
  • 220
  • 238
3
votes
1 answer

Labview - how to PERMANENTLY resolve load conflicts

I gave my project a desperately needed reorganization, placing VI's and sensible folders and using auto-populating folders to organize the project. Now I have a zillion and one load conflicts, and some of them keep popping up over and over again,…
Joymaker
  • 813
  • 1
  • 9
  • 23
3
votes
1 answer

How to get the time elapsed time after using the reset of the "Elapsed Time" component?

I am calculating the capacitance of a circuit using LabVieW. I have tried to get the time after the voltage across it reaches 2.5V. I am giving a supply of 5V. I used a logic operator and connected it to the reset to the elapsed time component. But…
Althaf1467
  • 281
  • 1
  • 14
3
votes
1 answer

Labview button freezes after pressed once

I'm trying to program something to read voltage from the Labview ULx library and add the voltage into an array. I tried to do so using an event structure while setting a boolean button 's mechanical action to "Latch when pressed". However, the…
Errrneist
  • 33
  • 5
3
votes
2 answers

LabVIEW: Have multiple indicators (different styles) for a single variable

A variable gets changed throughout the VI several times. I would like to display it in on two different tabs in the front panel, in different styles (thermometer, numeric indicator). This answer does not work for me, since there is no "digital…
PPMS
  • 33
  • 1
  • 3
3
votes
4 answers

LabVIEW TDMS file read with python pandas

How can I read a standard labVIEW generated TDMS file using python?
Sundar N
  • 316
  • 4
  • 17
3
votes
1 answer

Definition of a visual programming language (like BPMN and LabView)

I am looking for an exact definition for visual programming languages (VPL) which includes also a classification. I am of course aware of the Wiki page on VPLs but what I am after is a definition which includes classification by purpose, ideally…
B--rian
  • 5,578
  • 10
  • 38
  • 89
3
votes
3 answers

TortoiseSVN: copy contents of one branch over another

I'm using TortoiseSVN without an external Subversion server to manage LabView source (i.e. a large collection of ever-changing binary files). I'd like to have a "beta" branch of the repository that anyone can subscribe to and get daily updates. I…
Potatoswatter
  • 134,909
  • 25
  • 265
  • 421
3
votes
3 answers

Strategy for quick icon generation for labview?

Labview programs become difficult to maintain when block diagrams get too big. Usage of subvis is recommended to avoid this. By default, every subvi's icon looks the same, except for a number. I find that the time needed to creating meaningful icons…
Ludwig Schulze
  • 2,155
  • 1
  • 17
  • 36
3
votes
1 answer

How to detect if a XControl is visible?

I have a TabPanel and in each Tab is one XControl. This XControl has elements that aggregate data and some that only display the latest. What I would like to do is, disable all elements that do not aggregate data when the XControl is not…
simonides
  • 3,040
  • 3
  • 19
  • 34
3
votes
2 answers

How do I post LabVIEW code to StackOverflow that other people can execute? AKA How do I create VI Snippets?

LabVIEW is a visual programming language. To post code for other users on StackOverflow, I need to post an image of my block diagram. What is the best way to post such code?
srm
  • 3,062
  • 16
  • 30