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

How does a port listening works?

I was wondering how a port listening works. I can only image a loop which always looks for "something" new. But that looks very inefficient to me If it helps: My concrete problem is that I have two computers and a server. The first computer creates…
Daniel
  • 141
  • 1
  • 10
0
votes
1 answer

Continuously Numbers Insert to Array Labview

I having this number generator from value 4 to 4.999 each time, I wan to make it into 2 index array such as each time the number generates the first number will store in the first index array, while the second number will store in the second index…
Royal DeviLz
  • 15
  • 3
  • 12
0
votes
3 answers

Fast Fourier Transform of Frequency Analysis in Labview

I'm currently measuring the signal from 3 direction vibration sensor. I wan to convert my signal to a FFT form to determine the frequency analysis of it. Anyone got idea how I do it in Labview?
Royal DeviLz
  • 15
  • 3
  • 12
0
votes
0 answers

LabVIEW automatic diagram clean-up fails

On one of my (admittedly rather complicated) VIs automatic diagram clean up has stopped working. I push the 'Clean Up Diagram' button and nothing at all happens. I tried copying all of the code to a new VI. In the new VI the diagram clean up worked…
kiml42
  • 638
  • 2
  • 11
  • 26
0
votes
2 answers

Executing Case Structure Once in While Loop LABVIEW

I'm trying to run this vi in such as when the time has been elapsed in the while-loop structure, it will pop out a 3 button dialogue box in my front panel letting me choose 3 different options which is Yes, No and Cancel. "Yes" button will proceed…
Royal DeviLz
  • 15
  • 3
  • 12
0
votes
1 answer

LabView web server cannot access

I would like to create the web server from LabVIEW VI but when i did the VI interface part was missing (that part is just blank and gave error). I tried to look for the solution from the internet and some says that plugins are missing so I…
FAT Labor
  • 1
  • 1
0
votes
1 answer

Custom waveform/sequence PXI-5412

I am very new with LabView, and I am learning to control some instruments. Can anyone give a clue about how to generate a square waveform using NI PXI-5412 AWG?? A basic signal is easy to generate, but if I want a "custom" signal, I am not able to…
codeKiller
  • 5,493
  • 17
  • 60
  • 115
0
votes
2 answers

how to save tdms data to a USB stick on crio

Morning, I want to save the files to an external USB stick on CRIO, cause the internal crio system can't hold too much data. And also, how can I log in to the internal system?I tried with ftp://, it's not working, and I can log in to the system…
Aileen
  • 61
  • 1
  • 7
0
votes
1 answer

Finding variable in PSP variable container

So I have a variable containter and I'm trying to obtain a variable from it so I'm using the search variable container function and then indexing the first element in the returned array. I'm guessing the problem comes from the fact that I have not…
Jack burridge
  • 472
  • 7
  • 21
0
votes
1 answer

Virtual instrument software architecture

I'm confused about VISA. I try to build an VISA Interface to my Device. Which means applications should be able to control my device via VISA. The device is connected via USB to the PC and there are some DLLs, or TLB (what ever i want) to control…
Richy1989
  • 97
  • 7
0
votes
1 answer

Compiling a C dll for 64 bits

My problem is about trying to compile a C dll and its dependency to 64bits and to use it in LabVIEW. To start with the beginning, I'm using a 32 bit LabVIEW toolkit to use XML files (downloaded from here ). This toolkit is using 32 dll dlls that…
SaphirCES
  • 29
  • 4
0
votes
2 answers

PyVisa on OSX Mavericks not recognizing USB 6255

After following the pyvisa documentation very carefully, I'm unable to communicate with my NI USB 6255 via python. I'm using the correct distribution of python (the 32bit one), and I'm in a virtualenv so I don't screw up my normal one. after…
ChuckDavis
  • 219
  • 1
  • 2
  • 8
0
votes
1 answer

LabView Control (.ctl) to VB.NET Structure

I created a control in LabView. My LabView code writes data of that type to a binary file. I want to read this data into a VB Structure. Can I do this programmatically, or do I need to manually create a corresponding structure?
Steven
  • 13,501
  • 27
  • 102
  • 146
0
votes
0 answers

data access form *.BAD extension file of 4 GB

I am doing a practical work using Labview and it stores data in *.BAD file format. I need to access these data and want to process on that. But I don't know how to do it. Probably I will do it with C++, any other suggestion are most welcome. File…
Mithil Parekh
  • 93
  • 1
  • 1
  • 5
0
votes
1 answer

Equivalent of LabVIEW Threshold 1D Array Function in Python

is there an equivalent of labview Threshold 1D Array Function: http://zone.ni.com/reference/en-XX/help/371361H-01/glang/threshold_1d_array/ in python?
Chris
  • 135
  • 2
  • 7