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
5
votes
9 answers

send data from LabView to Python and get back

How do I send data from LabView to Python and get a result back?
Yuri
  • 69
  • 1
  • 1
  • 2
5
votes
1 answer

How to pad text with spaces in Labview

I would like to left-pad spaces in a string as needed so it is always 8 characters long. I would also like to limit the initial string to 8 characters. Example: Given string of "1234", should become "\s\s\s\s1234" Given string of "123456789", should…
5
votes
1 answer

LabVIEW: OK Button doesn't update its color after pressed

Hi I have a simple VI to press a button to turn on the led. My code works just fine except I would like to have the button to be back to normal color after pressing. I tried all the mechanical actions, but none of them does what I want it to do. The…
user1296153
  • 575
  • 6
  • 23
5
votes
1 answer

Array to Cluster - Number of elements not as expected

I was playing around with the most basic functions of LabVIEW such as converting single elemtents to arrays and cluster, back and forth. (Don't question the use of the shown algorithm, there is none.) When converting a cluster (of similar types of…
Ghanima
  • 409
  • 10
  • 24
5
votes
5 answers

How much time do I need to learn LabVIEW

I know that this question is too abstract. But. How much time do i need to learn LabVIEW to become average LabVIEW developer? For example, if I buy good book about LabVIEW and have 8 hours per day (on my work) dedicated to LabVIEW learning how many…
OJ287
  • 734
  • 1
  • 7
  • 15
5
votes
2 answers

Updating a LabVIEW GUI from a subVI

I'm writing a program to control two similar devices in Labview. In order to avoid copying the code I use subVIs. But I have a piece of code where I update some values on the GUI inside a while loop. I'd like to know if it is possible to somehow…
user2738748
  • 1,106
  • 2
  • 19
  • 36
5
votes
3 answers

Why does my LabView while loop appear to execute one too many times?

In a couple of weeks I will be joining a project that (currently) uses LabView for development. To get myself at least somewhat familiar before this happens I have been creating some simple projects in the trial version of the software. Someone…
Seth
  • 528
  • 3
  • 16
  • 32
5
votes
2 answers

Reading LabVIEW TDMS files with R

As part of a transition from MATLAB to R, I am trying to figure out how to read TDMS files created with National Instruments LabVIEW using R. TDMS is a fairly complex binary file format (http://www.ni.com/white-paper/5696/en/). Add-ons exist for…
Andy Clifton
  • 4,926
  • 3
  • 35
  • 47
5
votes
3 answers

Editing contents of a labview array

I'm trying to increment specific elements by 1, in order to log results as they come in. I'm trying to read an element, add 1 to it, and then write it back to the same memory address. Why isn't this simple? In code it would be something as simple…
sgccarey
  • 492
  • 2
  • 6
  • 16
4
votes
4 answers

Performing CUDA in LabVIEW

I want to perform CUDA operation in LabVIEW to transfer multiple files in GPU in parallel and then perform arithmetic operations on GPU and then save the data in new file. I learnt that in order to perform operations in GPU, we need to create a DLL…
Paritosh
  • 41
  • 2
4
votes
1 answer

Twincat3: Can't connect to LabVIEW's Modbus TCP/IP server via Tc2_ModbusSrv library (on virtual PLC)

I am trying to create a simple Hello World Modbus TCP/IP program using Twincat3 and virtual PLC (PLC running locally on my computer). I have set up a LabVIEW Modbus TCP/IP master + slave program (both of which are working see screenshots below). I…
Jakub Szlaur
  • 1,852
  • 10
  • 39
4
votes
1 answer

Calculate the 3rd point of an equilateral triangle from two points at any angle, pointing the "correct" way for a Koch Snowflake

Perhaps the question title needs some work. For context this is for the purpose of a Koch Snowflake (using C-like math syntax in a formula node in LabVIEW), thus why the triangle must be the correct way. (As given 2 points an equilateral triangle…
ch4rl1e97
  • 666
  • 1
  • 7
  • 24
4
votes
1 answer

Pass Dictionary from LabVIEW to python script via a Python Node

TLDR: I am making a python wrapper around something for LabVIEW to use and I want to pass a dict (or even kwargs) [i.e. key/value pairs] to a python script so I can have more dynamic function arguments. LabVIEW 2018 implemented a Python Node which…
4
votes
4 answers

Are clusters discouraged in LabVIEW?

I found this comment in the LabVIEW instrument driver guidelines (section 6.2): If you need more terminals than the recommended patterns, reconsider the grouping of the controls and indicators on the VI. Except for error in and error out, avoid…
Don Kirkby
  • 53,582
  • 27
  • 205
  • 286
4
votes
6 answers

Is there a virtual/dummy IMAQ camera for LabVIEW?

I'm writing LabVIEW software that grabs images from an IMAQ compatible GigE camera. The problem: This is a collaborative project, so I only have intermittent access to the actual camera.I'd like to be able to keep developing this software even when…
AndyL
  • 14,302
  • 14
  • 43
  • 70
1 2
3
93 94