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

Transfer data from python to labview

i am a beginner for python programming and currently facing huge difficulties in my project. Would like to have some guidance here.. My project is to create a touchscreen interface to control a Labview controlled laser machine. I’m using a surface…
Dawn
  • 1
-1
votes
2 answers

Create data bins in LabVIEW

I've got the following task: there are two outputs from DAQ, namely speed and the raw data acquired along with this speed. I'd like to use speed as a parameter to define certain number of bins, and fit the raw data which corresponds to the speed…
Aileen
  • 61
  • 1
  • 7
-1
votes
1 answer

c++\CLI dll wrapper to call virtual members in c++ class

I'm trying to write a dll wrapper in c++/CLI to connect functions in my native c++ class to be used in LabView. I've successfully written a wrapper that does this and everything works as expected (see below). The Problem is explained at the bottom…
Jesse T-P
  • 107
  • 1
  • 7
-1
votes
1 answer

Bad pixel correction in labVIEW?

I've got a labVIEW program which reads wavelength and intensity of a spectra as a function of time. The hardware I have reading this data uses a ccd chip and so sometimes I run into bad pixels. The program outputs a 2d array of the intensities in a…
Annika
  • 11
-1
votes
1 answer

How do multiple property reads and writes to the same control work in LabVIEW?

What is the value of the Numeric and Result when the program is ending? I can't understand why the answer is 12(Numeric), and 11(Result). Why isn't the Result 12,10+1+1. And Numeric is 11,10+1?
Shine Sun
  • 151
  • 2
  • 9
-1
votes
1 answer

LabVIEW: How to copy from one array to another array?

I would like to deep copy one array to another array. What is the best way to do it ? I have attempted this way and it seems to work. I would like to deep copy it. Thanks
user1296153
  • 575
  • 6
  • 23
-1
votes
1 answer

Labview converting hexformatted string to ascii

In labview I am trying to convert a hex string to ascii format. For example if I have a hexstring like: 09124E4F21CD0024FFFFFFFFFFFFFFFF the ascii version of this is : NO!Í or basically a bunch of illegible symbols. I tried using the labview…
user6656104
  • 51
  • 1
  • 10
-1
votes
1 answer

Labview FPGA pid controller

I want to design a PID controller in LabVIEW for target FPGA Device. My FPGA Device is NI Digital Electronic FPGA board SO any hint will be helpful for me thanks.
Ali khan
  • 43
  • 6
-1
votes
1 answer

what is a motion controller card (ni motion controllers ) and its difference to motor driver?

I have a 400 watt servo motor with a driver which needs some pulses to move the motor and control its speed , it can count the encoder pulses, includes electronic gears and many thing else . is the motion controller card a replacement for the…
Hesi
  • 113
  • 2
  • 10
-1
votes
1 answer

Sharing value between computer and myRio

I want to share a value on a VI that runs on the computer to a VI that run on myRIO. I have used global variable and created it in a new VI in my computer section of the myRIO project and use an indicator in a new VI in myRio section, when i run…
-1
votes
1 answer

EASY! Labview Race Condition

I'm very new to LabVIEW... I need to write a simple program in LabView to update the value of an encoder. Long story short... In a loop, I need to manipulate variables in this order: New Value = Old Value + Current Value Old Value = New…
heyjaynell
  • 47
  • 1
  • 10
-1
votes
1 answer

how can I create vi for creating star pattern programs in labview which we can do in c language?

I have this type of logic in my vi, but I don't know how to print star pattern from that condition.
Milan Shah
  • 111
  • 1
  • 10
-1
votes
1 answer

Indexing n-dimenasional arrays without for loops in LabVIEW

Is there any VI in LabVIEW or an algorithm, which will let me index an n-dimensional array without using for loops?
-1
votes
1 answer

speech to text conversion on Labview

I am planning to build a speech to text convertor on Labview and later port the same to myRio board. I am new to this field and I donno where to start with. Any suggestions will be helpful.
sony9
  • 1
-1
votes
1 answer

Reading CI Frequency In C# With NI USB-6363

Working LabVIEW Code Attached above is LabVIEW code that I have successfully used in the past to read frequency data from a device. I also usually use the Start Task VI between my property node and while loop. I am trying to code this in C#. So far…