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

dynamic equation calculation for multiple channels

Based on a question from: mathematical equations to create a virtual channel in labview i have tried the following to parse and calculate several equations in order to produce virtual calculated channels for power measurements problem i am facing is…
Assaf Baker
  • 151
  • 1
  • 1
  • 8
-1
votes
1 answer

How can I resolve labview 1386 error with thorlabs VI?

I'm trying to use LabView to operate a ThorLab CS235CU camera. However, so far I haven't had any success using LabView to operate it, despite searching the provided thorlabs and national instruments documentation and google for an answer all week. I…
-1
votes
1 answer

Random number in range without repeating LABVIEW

I have this kind of a VI file and I need to add something in order to prevent numbers from repeating. Could you help?
xemxx
  • 27
  • 5
-1
votes
1 answer

why a difference of opinion between gcc and gdb

GCC thinks I have sql_LV.c:543:35: error: request for member ‘str’ in something not a structure or union &(((**functions).String[i]).str) GDB is thinks differently: (gdb) print &(((**functions).String[0]).str) $1 = (uChar (*)[1])…
Danny Holstein
  • 144
  • 1
  • 14
-1
votes
1 answer

Is it possible that two displacement sensors value( one is digital input and the other is analog) express simultaneously in a vi?

I tried to express two displacement values in one waveform chart. I have two displacement sensors, one is a digital input sensor and the other is analog input sensor. I have to see those values in one waveform chart simultaneously. In my attempts,…
csh
  • 11
-1
votes
1 answer

How can I read Adafruit INA 219 in LabVIEW? How can I get Serial Data from Arduino using LabVIEW?

I try to read voltage and current from an Adafruit INA 219 sensor with Arduino and I get the correct results. The problem is that I need the results for analyzing them and I need to read the sensor's values in LabVIEW or to send the results from the…
-1
votes
1 answer

hello, How to combine these two vi labview files together?

I have this car project of 3 Gauges ( RPM, temperatue, and fuel) , RPM and fuel are working together , and fuel code is working alone , i just need some help to combine the all together, any help appreciated.
-1
votes
1 answer

labview application on XP

I try to open a labview application for a bench test acquisition coupled to e.bloxx network (GANTNER INSTRUMENTS), it shows me this error It's the application's model. it can't be used alone This app worked fine until yesterday. My operating…
-1
votes
1 answer

View stdout from attached process in Visual Studio?

I'm writing a .dll for use as external code under LabVIEW. I would like to be able to use printf in my dll as a debugging facility. I'm using Attach Process to attach LabVIEW with my .dll code open in VS. In the Output subwindow I see various…
Joymaker
  • 813
  • 1
  • 9
  • 23
-1
votes
1 answer

Error 310170 occured Property Node(arg 1) in Simulation Trace Environment

We tried to work out our code in LabView 2018 and tried to run it in Cybersim but this error is popping up. Any recommendation to improve the same will be appreciated. Thanks in advance.
-1
votes
1 answer

how to connect to oracleXE18C in labview?

oracle odbc driver configuration: Data source Name: mxx TNS Service Name: XE User ID: c##mcc password: orcl So how to write database tools open connection information in the labview 2016 32bit?
-1
votes
1 answer

Merge signal in flat sequance

I have three inputs in merge signals in different time, the out put of merge signals appeared to wait for all signals and outputted them. what I want is to have an output for every signal (on current output) as soon as it inputted. For example: if…
-1
votes
1 answer

Force open Python console when calling external Python code

I have built some useful Python functions inside a .py file. I use this function through LabView calling it by a Python node and pass arguments to it (images as array). The calling to Python functions is transparent and no console is opened at…
-1
votes
1 answer

Turning an Ethercat library into a dll and integrate that dll into labview

I am trying to convert this https://github.com/OpenEtherCATsociety/SOEM library into a dll in order to import it in labview.Can i turn this library into a DLL?And how? Thank you!
George
  • 3
  • 2
-1
votes
2 answers

Having trouble making my VI work as a Sub VI

I am having trouble getting the terminals to pass any data to what they are connected to because the controls they connect to are in a while loop. My frustration level is high since I would have already had this done if I wrote it in C. First, let…
kerplatz
  • 1
  • 2