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

Do I have to build my LabVIEW instrument driver under Program Files?

I'm trying to build a LabVIEW plug and play instrument driver project for a device we sell. I followed the instructions to create a project, and it created the project in with the LabVIEW program: C:\Program Files\National Instruments\LabVIEW…
Don Kirkby
  • 53,582
  • 27
  • 205
  • 286
4
votes
2 answers

Is there any graphical diff tool for git, that can be used with LabVIEW?

My employer wants to switch our version control system to git. I tried it, read a manual and so far I am quite happy with that, but I encountered one problem, that seems quite hard to solve. We do not only use textual languages, but also LabVIEW…
mju
  • 591
  • 1
  • 6
  • 17
4
votes
1 answer

How to avoid Gimbal lock when converting from Quaternion to Roll Pitch Yaw

I have a IMU sensor that gives me orientation in terms of Quaternion and I would like to change it to readable RPY angles. I found the formula to convert them intrinsically from Wiki for a quaternion q=…
user3763570
  • 157
  • 1
  • 9
4
votes
2 answers

Labview : delete files having same extension

I've been trying to delete files having same extension by using labview. I am using delete.vi to delete files like below. But, I want to delete all files having same extension. Imagine a folder like below. Here, I would like to delete all files…
KKS
  • 1,389
  • 1
  • 14
  • 33
4
votes
5 answers

Can a LabVIEW VI tell whether one of its output terminals is wired?

In LabVIEW, is it possible to tell from within a VI whether an output terminal is wired in the calling VI? Obviously, this would depend on the calling VI, but perhaps there is some way to find the answer for the current invocation of a VI. In C…
ptomato
  • 56,175
  • 13
  • 112
  • 165
4
votes
2 answers

Labview : Changing color of boolean array, respectively

I made this boolean array. I want change the color of first boolean component as red, and second as blue. This picture is what I want. But when I change color property, three booleans change their color with together. Is there any way to change…
KKS
  • 1,389
  • 1
  • 14
  • 33
4
votes
1 answer

How to programmatically build VIs without user interaction?

I have a LabVIEW project with five cRIO targets. I wrote a build VI that compiles and deploys the rtexes, after the deployment the target is rebooted. The problem is that while deploying, LabVIEW opens a connection to the target that it wants to…
simonides
  • 3,040
  • 3
  • 19
  • 34
4
votes
2 answers

How does one pass a string back to labview using a call Library function node

I want to use LabVIEW's Call Library Function Node to access a DLL function, and have this function return a string to displayed on my VI. How would I go about doing this? I am quite happy returning numbers from my DLL, but am really struggling to…
alex77
  • 536
  • 2
  • 5
  • 12
4
votes
1 answer

Unknown Icon in LabVIEW

I came across a manual for a product I am using with LabVIEW, and it has some symbols and structures I have not seen before. These have been highlighted in the attached image as 1. and 2.
4
votes
2 answers

LabVIEW Linux C++ development - beginner questions

Background In our company we cooperate with manufacturer of machinery, we are developing C++/Qt crossplatform control applications for devices that they produce. In the past, we used to communicate with their devices through USB (virtual COM port).…
Michal
  • 1,955
  • 5
  • 33
  • 56
4
votes
1 answer

How to make a LabVIEW front panel element invisible non-programmatically?

When designing the front panel of a LabVIEW application, there's no way to render controls invisible except programmatically: connecting a False constant to a "Visible" property node somewhere on the block diagram where it gets run before anything…
ptomato
  • 56,175
  • 13
  • 112
  • 165
4
votes
1 answer

Add names to cluster elements

I am interfacing a LabVIEW VI with an Arduino Leonardo that reads a bunch of sensors and ADCs, collects the data, and then sends the result over the serial port in a single comma delimited sentence. My LabVIEW sub-VI takes the sentence and uses the…
craigim
  • 3,884
  • 1
  • 22
  • 42
4
votes
1 answer

Labview serial port event callback possible?

Is it possible to receive data from a serial port in Labview using an event callback? Similar to DataReceived event callback in .NET serial port class? If yes, I would appreciate a link to an example VI. All the examples I have seen use the…
Soundar Rajan
  • 517
  • 2
  • 7
  • 17
4
votes
2 answers

Is it possible to set diff/merge-tool for a specific file extension in git-extensions?

I'm just getting started on developing in LabView, it's all new to me. And i'd like to use git extensions to handle my versioning. Since the source is in a *.vi format, I can't use the normal diff tools, the source is binary. Fortunately, LabView…
bjarven
  • 771
  • 2
  • 10
  • 27
4
votes
1 answer

which type of ctype pointer to pass to NI IMAQ's imgBayerColorDecode?

I'm using ctypes to access the image acquisition API from National Instruments (NI-IMAQ). In it, there's a function called imgBayerColorDecode() which I'm using on a Bayer encoded image returned from the imgSnap() function. I would like to compare…
Oliver W.
  • 13,169
  • 3
  • 37
  • 50