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

Accessing the most recent data from a shift register

I am fairly new to LabVIEW so please bear with me. I am working on a piece of code where I am reading data (in the form of an array) from a USB device, splitting this array to meet a required size, storing part of this array in a circular buffer…
user1750948
  • 719
  • 2
  • 10
  • 27
0
votes
1 answer

Library or advise on plotting box nodes interactively

I'm building an application that parses text files that contain information about specific nodes with incoming ports and outgoing ports that are interconnected. Doing some research there are some libraries but none of them support the exact…
gorba
  • 378
  • 2
  • 8
0
votes
1 answer

How can I get return values from C# .DLLs in LabVIEW 2012?

I'm currently working on exporting a .DLL library file in C# in Visual Studio 2010 to LabVIEW 2012. The class does a color transform from RGB to HSL values, and I've been successful in implementing Constructor and Invoke nodes in the LabVIEW project…
0
votes
2 answers

Calling 32-bit DLL from 32-bit LabVIEW on 64-bit Windows 7

I am working in a 64-bit Windows 7 environment and running a 32-bit version of LabVIEW. I need to link up a specific instrument to LabVIEW, using a LabVIEW library which was given to me by the company that made the instrument. The library includes…
Art
  • 81
  • 1
  • 11
0
votes
1 answer

LabView: Dynamic plant model for EKF

I need some help regarding wiring a plant model to an EKF block in LabVIEW. I have checked the sample VIs but the problem is that in my application the matrices A, B and C used to represent the model in EKF are time dependent and changes as the…
0
votes
2 answers

how do you flatten and unflatten an array of doubles in labview?

I have created a simple LabView program shown below that attempts to flatten an array [1,0,3] and then unflatten it and print out the contents. However, I am unsuccessful in doing so. What am I doing wrong?
user1068636
  • 1,871
  • 7
  • 33
  • 57
0
votes
2 answers

why am I not able to receive data inputs from my USB joystick in labview?

The following Labview code: does not receive any data from my USB Saitek X52 joystick. I am not able to figure out why. Is there something I am missing?
user1068636
  • 1,871
  • 7
  • 33
  • 57
0
votes
2 answers

String wired to Case Structure always goes to Default - LabVIEW

I am trying to take the readout from an instrument and if the readout matches certain strings (from the instrument programming manual) I want to set an indicator to a specific value, different for each possible string. A case structure seems like…
0
votes
1 answer

Rails to Labview networked connection

I have a Rails server that needs to send a little bit of a data to a LabVIEW system when a record is saved. That shouldn't be too hard in Rails using an after_save hook and quite possibly a redis worker. I have three really short and primitive…
light24bulbs
  • 2,871
  • 3
  • 24
  • 33
0
votes
1 answer

Why does my labview client program not receive the 1-d array sent by the labview server program over TCP?

the server is executed first, followed by the client. The client attempts to initiate a TCP connection with the server. As soon as server detects it a "connection ID" is created. The server attempts to send a "setup" packet to the client by…
user1068636
  • 1,871
  • 7
  • 33
  • 57
0
votes
1 answer

Concept of channel, port and line in labview programming

I am starting to learn the labview programming from the code written by someone else long time ago. Here I saw IO channel, line and port, I guess their meaning by reading code but I am looking someone to clarify that for me. To my understanding, IO…
user1285419
  • 2,183
  • 7
  • 48
  • 70
0
votes
1 answer

how to collapse the number of cases to handle?

This is actually a program in LabVIEW but I can write C scripts in labview and /or simulate the same logic in LabVIEW as in C. also to attract more answers. So I just need the algorithm mainly. Please read the entire question. In my application I…
Koushik Shetty
  • 2,146
  • 4
  • 20
  • 31
0
votes
2 answers

Labview: element-wise array multiplication operations

Does there exist a function similar to that of numpy's * operator for two arrays to multiply their elements in an element-wise manner, returning an array of the similar type? For example: #Lets define: a = [0,1,2,3] b = [1,2,3,4] d = [[1,2] , [3,4],…
user2141019
0
votes
3 answers

Question about using windbg for a dll called from Labview

I am attempting to debug a dll that is called by a Labview application. I have the right symbol files (downloaded from microsoft) for things like ntdll.dll and others. I of course also have the pdb file for my DLL. What I don't have, obviously, is…
user183135
  • 3,095
  • 2
  • 18
  • 7
0
votes
1 answer

Displaying/Formatting Output in Exponential Form in VBScript

I'm working on some automation project. The Data is passed in LabVIEW form a third party hardware, and is further passed to WinCC Flexible via a OPC server in float datatype. The output display field supports string output. The data is displayed on…
Nitish Katal
  • 33
  • 1
  • 3
  • 8