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

Why do programatically created Excel charts look like they are 10 years old?

I am trying to programatically generate Excel 2010 charts (specifically scatter plots) in LabVIEW using the Excel Insert Graph.vi. When I open Excel and select data and create the chart it looks nice and new and easily configurable. When I use the…
novacara
  • 2,207
  • 4
  • 24
  • 34
0
votes
4 answers

Anything wrong with this SQL query?

I'm using LabVIEW and the Database Toolkit to execute an SQL query, and it keeps barfing on this for syntax reasons. I'm using MySQL through the ODBC connector. Each line should have a newline character at the end except for the last. The error…
Ken
  • 83
  • 2
  • 7
0
votes
2 answers

How to create a local virtual IP camera that can be accessed from other software

I need to create several local virtual IP Cameras for a project I'm making. I have tried several software, and the closest I have gotten was with magic camera, because it would let me create a virtual camera, but it wont let me assign a source to…
Nando Flores
  • 1
  • 1
  • 2
0
votes
1 answer

Uploading VI while opening labview file

I have a very simple yet crucial question: There is a labview file (VI) that it contains some VIs related to a Tektronix oscilloscope and a motor driver. I have downloaded the drivers and VIs of these hardwares from their company website and added…
Amin
  • 261
  • 3
  • 16
0
votes
2 answers

Inactive sequence in stacked sequence structure in LabVIEW

I have a stacked sequence structure with 6 sequences. My problem is when I run the program, after the first sequence, data which should flow to the second one does not pass through this sequence. I checked it by having two numeric indicators, one…
ego
  • 1
  • 2
0
votes
1 answer

Pull Values from compactRio with Python

I have a compactRio system that I've inherited but don't know much about (I have no background with LabView). All I really need to do is poll the values from some of the probes attached to the the cRio every few minutes over the network…
Nick
  • 3,172
  • 3
  • 37
  • 49
0
votes
4 answers

Integrating KollMorgen AKD Basic motor drive using TCP/IP protocol in LabVIEW

Myself and my team are new to Kollmorgen AKD Basic motor drive and are working with this drive for the first time using TCP/IP protocol interface with LabVIEW. We could write/set various variables succesfully but are facing an issue while reading…
Sandeep
  • 568
  • 5
  • 7
0
votes
0 answers

Google Earth Plugin with LabVIEW: High CPU usage when adding placemarks

I'm writing an application in LabVIEW which uses the Google Earth Plugin to display events on the globe. Each event is a single point kml placemark with an icon which is a 3kb png file. Placemarks are uploaded to the plugin as they are received by…
NaeD
  • 9
  • 1
0
votes
1 answer

dereferencing c-pointer in LabVIEW

My .DLL function outputs a C-pointer to a string which I need to dereference. I realized that I need to dereference the pointer twice, and I know there should be a built in function in LabVIEW which does just that. But I can't seem to find it.
yoni
  • 117
  • 3
0
votes
1 answer

How to use shared variable in labview for communicating strings?

i have created two projects,one as master and one as slave to read a string from slave to master in labview using DSC module.Master is showing error in opening connection to shared varibles.Ihave tried every known options to debug it.Can ny1 help by…
user3098026
  • 29
  • 1
  • 9
0
votes
2 answers

Why am I getting an error when trying to plot this graph?

Everything else works except when I try to plot this graph.
user3008456
  • 35
  • 2
  • 6
0
votes
1 answer

LabView XY Graph with large number of traces, matching legend and plot data?

I have an XY graph with a large number of traces. Is there a way to have the user easily determine which legend trace belongs with the plot trace? For example, perhaps they could click on the plot's trace and see the legend text? See the attached…
DakotaD
  • 371
  • 3
  • 18
0
votes
1 answer

keep XY Graph legend from overlapping plot?

I have an XY graph with a legend that automatically resizes to fit the contents of the legend. The problem is that sometimes the legend text is such that the resizing overlaps the plot, see the image below. Is there a way to keep the legend from…
DakotaD
  • 371
  • 3
  • 18
0
votes
1 answer

Labview my modulated signal is in frequency?

I am working on understanding modulation and demodulation when I ran into a rather weird problem with my graphs. It seems the spectrum of my modulated signal is shown in time while my signal was shown in frequency. Is there something I did wrong in…
0
votes
1 answer

How to control GUI from LabVIEW?

I have a requirement where I have to edit the settings of the GUI. Suppose if I will open a notepad now I need to change the setting by LabVIEW. e.g. changing the font. How can I do it? Please help me.
Rasmi Ranjan Nayak
  • 11,510
  • 29
  • 82
  • 122