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

Cuda Memory Functions give "Unkown Error" when sending VERY large arrays

My program analyzes a video file, which is represented as a 3d array and sent from LabView to my program. LabView already flattens this 3d array into a 1d array, so I have just been allocating a 1d array in CUDA, using cudaMalloc, and using…
Shawn Tabrizi
  • 12,206
  • 1
  • 38
  • 69
0
votes
1 answer

How to read custom PNG data with ImageJ?

I'm just starting with ImageJ and I was wondering if anyone knows of a way of reading the custom data that can be stored in a PNG file. The reason for this is that through LabView I'm generating a 16-bit grayscale PNG file, in which each bin…
JasonBourne
  • 165
  • 1
  • 3
  • 14
0
votes
2 answers

LabVIEW Tutorial with Serial Connection

Does anyone know where a good LabVIEW Tutorial on Serial Connections (RS232). Any help is appreciated. Thanks.
user884685
  • 47
  • 2
  • 4
  • 8
0
votes
3 answers

Multiple JOIN and SELECT Statements from eight tables

I am trying to make an SQL statement that takes eight different numbers and searches eight different tables from one database for the corresponding value. I keep getting invalid syntax, but I can't figure out why. Here is my code: SELECT…
0
votes
3 answers

Structure of 16-bit grayscale image to be generated in C or LabView

I have a kind of basic (but still unresolved) problem. I'm building a program in LabView in which I gather a large amount of measurements into a n x m matrix, and I need to convert that matrix into an image to be processed/analyzed with ImageJ. Due…
JasonBourne
  • 165
  • 1
  • 3
  • 14
0
votes
2 answers

LabVIEW stepper motor

Hello, I have to make a program to control a stepper motor in LabVIEW. I am using LabVIEW ver.11 and I have a diagram written in LabVIEW ver.5 (I believe), but I can't find (recognize) all the functions there. Can someone point them out to me,…
user1272703
  • 89
  • 1
  • 2
  • 9
0
votes
1 answer

Unexpected responses from Zaber devices in LabVIEW

When using Zaber's LabVIEW driver to control their devices, it sometimes returns strange responses to commands. For example, sending the Move Absolute command might return a Set Target Speed response or a Manual Move Tracking response, instead of…
Don Kirkby
  • 53,582
  • 27
  • 205
  • 286
0
votes
1 answer

Graceful failure in Labview (after failed opening of device - in this case camera)

I was wondering how to make it so the rest of the program runs when one component fails to (and therefor the rest of the path that relied on this component is incapacitated as well). In other languages, this is equivalent to "catching an exception,"…
Cenoc
  • 11,172
  • 21
  • 58
  • 92
0
votes
1 answer

what do I need to add to my DLL to be able to export pointer to i_d?

I am trying to write DLL function to allocate cuda memory and get back pointer to cuda (device) memory. Second function should accept this pointer and do the calculation. I want this operation to be separate because I need to do many calculations on…
user1281071
  • 875
  • 2
  • 13
  • 23
0
votes
1 answer

cam3 doesn't load in LabVIEW

In the Measurement and Automation Explorer, it shows up and seems to work fine, but for some reason I can't seem to load it with IMAQ in a LabVIEW program. Does anyone have any suggestions on how to get this working ? Thanks in advance!
Cenoc
  • 11,172
  • 21
  • 58
  • 92
0
votes
2 answers

Access a text file from two applications at the same time

I have a c# program that updates a txt file at random time intervals, and a labview program that continuously checks the data in the txt file and checks it. Can you guide me to a way to avoid collisions between those apps?
Mario
  • 1
  • 1
0
votes
2 answers

Playstation Eye with Labiew

Does anyone know how to integrate the Playstation Eye with Labview? Can a driver somehow be used to allow Labview to recognize it as a webcam?
Cenoc
  • 11,172
  • 21
  • 58
  • 92
-1
votes
1 answer

Recording GNSS data with USRP N210

I have no experience with using USRP as a front end to collect GNSS data. But from many GNSS journal publications that I have read, the USRP N210 is famously used as a good GNSS front end. Thus, my supervisor had just purchased N210s for his GNSS…
-1
votes
2 answers

How to access SQL Server database on slave PC from master PC using LabVIEW

I have got two PC connected on Local LAN. On client PC data is written using LabVIEW. So how to access the same database on server PC using LabVIEW.
-1
votes
1 answer

LabVIEW GUI for Keithley 2400 source meter

So I am trying to use a computer and Keithley 2400 source meter to run current vs. voltage graphs (IV curves). I’ve tried using LabVIEW but found only old drivers that didn’t seem to work. I have found success with Matlab but now I am trying to not…