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
7
votes
1 answer

Why does LabVIEW allow characters within Numeric control?

Why does LabVIEW allow characters (Key down) within Numeric control? When I hit Enter , it will clear all the characters and return to 0. My question is: why does it allow only specific characters(not all)?
SanVEE
  • 2,009
  • 5
  • 34
  • 55
7
votes
4 answers

Data Acquisition Toolbox for Matlab?

I've been spending a ton of time reading up on National Instruments products and their capabilities when used with LabVIEW. However, LabVIEW and National Instruments hardware is pretty much the only thing I've looked at, and I'm curious as to what…
NSL
  • 147
  • 2
  • 4
7
votes
6 answers

How to add a simple API to my C++ application for access by LabView?

I have a data acquisition program written in C++ (Visual Studio 6.0). Some clients would like to control the software from their own custom software or LabView. I would like to come up with a simple API with a dll I can distribute to them and…
jacobsee
  • 1,438
  • 4
  • 18
  • 34
6
votes
2 answers

How to flatten (reshape to 1D) an array of arbitrary dimension in Labview

Let A be an array of arbitrary dimension (2 or 3 in my case). How can I flatten (reshape to 1D) this array without knowing in advance the number of dimensions ? If I knew the number of dimensions, I could easily obtain the total number of elements…
calvin tiger
  • 391
  • 2
  • 7
  • 18
6
votes
3 answers

Share a variable between C and Labview?

What is the best way to permit C code to regularly access the instantaneous value of an integer generated from a separate Labview program? I have time-critical C code that controls a scientific experiment and records data once every 20ms. I also…
AndyL
  • 14,302
  • 14
  • 43
  • 70
6
votes
1 answer

Error 2: Memory Full - Opening .exe From LabView

I'm trying to open a .exe to program a PLC from LabVIEW. I have the .exe included in the project files, it's also included as a source file, so it gets installed within the install directory when installing this tool. The issue is sometimes when…
biggi_
  • 266
  • 3
  • 12
6
votes
9 answers

LabVIEW + National Instruments hardware or ???

I'm in the processes of buying a new data acquisition system for my company to use for various projects. At first, it's primary purpose will be to monitor up to 20 thermocouples and control the temperature of a composites oven. However, I also…
NSL
  • 147
  • 2
  • 4
6
votes
5 answers

What is C's analogy to LabVIEW's Event Structure?

One programming construct I use quite a bit in LabVIEW is the Event Structure. This gives me the benefit of not having to needlessly waste CPU cycles via polling but only perform actions when an event I'm interested in is generated. As an…
SiegeX
  • 135,741
  • 24
  • 144
  • 154
6
votes
3 answers

Organize LabVIEW in a git repository

I'm forced to work with LabVIEW source code on a Windows 7 machine and am curious what might be the best setup to handle the source code in a remote Git repository. Currently I'm handling everythin like I would with my C projects, means Git Bash and…
terman
  • 303
  • 4
  • 12
6
votes
2 answers

How do I resolve Labview load conflicts

I am developing a data acquisition program in Labview that uses multiple translation stages, cameras, a high speed digitizer, and other instrumentation. I'm developing the application on one computer, and will be deploying it to another computer. …
Curt
  • 1,214
  • 6
  • 16
  • 21
6
votes
6 answers

How can I get LabView to stop locking my .NET DLL?

I'm trying out LabView, experimenting with how to use it in conjunction with .NET. I've managed to create a small app that reads a gauge, converts the value in .NET, and displays the result on another gauge. The trouble is that when I try to add to…
Ryan Lundy
  • 204,559
  • 37
  • 180
  • 211
6
votes
3 answers

Windows Multitouch Events and LabView

I'm having some problems with multi-touch and LabView. My objective is to intercept the Windows Touch Messages (generated by multitouch monitors and then interpreted and handled by Windows 7), which are intended for any and all windows owned by a…
LVMMS
  • 69
  • 4
6
votes
1 answer

Asynchronous DLL access in LabVIEW?

I have a LabVIEW application that current sends data to a C++ application via a DLL. I now need to send data back to the LabVIEW app from the C++ one. Can I trigger code in LabVIEW from a DLL call or will I need to poll the DLL periodically to see…
dwj
  • 3,443
  • 5
  • 35
  • 42
5
votes
1 answer

LabVIEW, C++ DLL, and IMAQ Images

I'm familiar with writing DLLs that can be called from LabVIEW, but I'm curious as to what the correct way to pass IMAQ Images to a DLL might be. Here's one way I've found to do it -- I also use a similar mechanism to post IMAQ Image instances from…
hatboyzero
  • 1,929
  • 1
  • 21
  • 44
5
votes
4 answers

DAQ Software Alternative

I wanted to get NI USB-6008 DAQ but I don't want to burn a hole in my wallet buying LABView. Are there any alternatives to LABView as DAQ software for this card? Is it possible to use Visual C++ Express or OS software like BioMOBIUS with this DAQ…
moesef
  • 4,641
  • 16
  • 51
  • 68
1
2
3
93 94