Quantcast
Channel: LabVIEW topics
Viewing all 66676 articles
Browse latest View live

How can I organize many inputs on a front panel?

$
0
0

I have a hanging weight test run using a Labview vi that starts a timer when a switch is turned on by hanging a weight. The switch is connected to a digital in on a DAQ. On the front panel it displays the elapsed times for each switch along with indicators where you can enter the sample information, failure mode ect. When the weight drops the switch turns from on to off the elapsed time and other information from the front panel are written to a text file. The current VI is set up for 30 switches, I need to increase this to 100+. Scaling the data acquisition and timing is not a problem. The problem is how to organize and display so many elements to the user.

All 100+ switches may not be used all the time. Sometimes you may only need 20 and would not want the clutter of 80+ unused spots on the screen. It’s also possible that that multiple people may be using 20 spots each so it would also be nice to be able to organize one persons from another’s.


does anyone have a creative solution to any of this?


LVWUtil32 utilities for 64-bit LabVIEW

$
0
0

I'm looking into the possibility of embedding some external executables into the LabVIEW interface.

Following several rabbit holes I've come across the LVWUtil32 utilities which help with this considerably, and looks like it might work for what I'm trying to do.

 

However, if I go this route I know that I'm eventually going to need to update this project to 64-bit LabVIEW.  Which brings me to the point of: was this LVWUtil32.dll ever compiled for 64-bit LabVIEW? 

 

The information on the help url doesn't address this other than saying that this is specifically for 32-bit systems

http://www.ni.com/example/29935/en/

 

The best work around I can find is that I *think* I can use the windows "user32.dll" to call the functions that I need... however writing wrappers for these dll interfaces is not something I'm particularly skilled at... so it's less than ideal.

 

Anyone have any experience trying to deal with this type of thing?

 

Thanks!

Variação de tensão

Eje X con tiempo y fecha actual en un chart

$
0
0

Buenas amigos, tengo la siguiente duda del VI adjuntado:

 

Con el chart "nivel de tanques" estoy ploteando cada 100 ms (Promedio de niveles (10 muestras) y Ploteo niveles y salida controlador). Los datos se obtienen cada 10 ms (Obtención de los niveles de los tanques). Debido a esta diferencia lo que hice fue un promedio de las 10 muestras en 100 ms y plotear eso. Sin embargo, la escala del tiempo, aunque tiene la fecha y hora correcta se pasa a una velocidad mayor a 1 segundo. Si graficara directamente en los datos dinámicos, es decir, donde obtengo los niveles de los datos si se plotea correctamente. Pongo entre paréntisis los comentarios que aparecen en el diagrama de bloques para que se logren ubicar (específicamente en los dos primeros whiles de arriba hacia abajo).

 

 

PCI-8430/8 (RS-232 INTERFACE)

$
0
0

Hi guys. Here's the problem, i have already installed PCI-8430/8 device on my system unit. but .... (see the image "PCI2") that happen. What was wrong? did i miss something??

 

then i search for solution.. I got an answer that i need to install NI-SERIAL my compatible version is 15.0 (see image "PCI1")  then i downloaded it and install after. but still did not fix my problem. 

 

Any related answer to my problem is much appreciated. 

Find all peak and display on waveform graph

$
0
0

Hellow friends,

I am a newbie in LabVIEW. I use LabVIEW 15.0.1 and I am currently working on the program that analyses nine ROIs from the series of recorded images. I am able to display the waveforms from every selected ROI. I can also pre-process the signals, apply FFT and display FFT results.  But I can not display the Heart Rate from the Peak detector. I don't know what goes wrong with my coding.

I have attached my vi for further assistance. Please help.

Thank you!

johnbakunda@yahoo.com 

Time difference

$
0
0

Hello all , 

 

Two Different time values in string format to be subtracted. Result to be displayed as a string

 

time 3 = time 2 - time 1

 

need your guidance and tips 

Matlab structure arrays in LabVIEW

$
0
0

I am trying to use the MathScript Node inside LabVIEW, to which I have imported my existing Matlab script.

 

Originally, the script uses one structure array that has three fields, each having 59 21x21 double matrices. It appears that loading the structure array (a mat-file) in the MathScript Node severely degrades the performance of the LabVIEW application. A warning glyph also appears in the node next to the line from which the structure array is loaded.

 

What are the most efficient ways to store and use such a structure array inside the MathScript Node?


Small gap between maximised LabVIEW Window and screen border on Win10

$
0
0

Hello,
There is a small gap between maximised LabVIEW Window and screen border on Win10 if you set VI property FP.Resizable to False. I have it with Win10 with LabVIEW 2013 and 2018.
This occur only if I set VI property FP.Resizable to False. It looks wrong.
Like you can see in the attached picture you can see in the gap parts of the underlying windows. It is the same in Win7 but in Win7 this gap was not transparent.
Any suggestions?

Re: Getting Maximum AND Minimum Value from 1D array on LabVIEW™.

$
0
0

Hi, 

I am having a problems getting the maximum and min value from a 1D array in a while loop on LabVIEW. I have tried different operation but there are not comparable, so am just ask for any help I can get pls. Below is a picture of where am at and the file for my LabVIEW.

NI Uninstaller Error - Labview 2017 64bit NI uninstaller 17.0

$
0
0

Question:

How do I get rid of the Labview 2017 64bit NI uninstaller 17.0?

 

Background:

This is an ugly situation. I spent hours on trying and reading the internet and forum for solutions. Please do not suggest simple things to try, because I have tried simple and more complex. I need a clear solution based on your direct experience.

I have Win7 64bit.

I use instrument control software made by Chroma ATE in Labview, named SoftPanel, for a Power Meter 66202 connected over USB. It requires “Drivers: Nl VISA Run Time Engine 3.0 or above, Nl IVI Run Time Engine 1.83 or above, Nl CVI Run Time Engine 6.0 or above.”

I had installed these 3 software packages from Chroma installation CD.

It worked just fine until few days ago.

I wanted to try the evaluation version of LABVIEW 2017 64bit.

I tested for few days, then I removed it from system.

Few days later I wanted to use the Chroma SoftPanel and the communication (VISA) did not work.

I removed and reinstalled the Chroma software.

Then the headache started.

I had all kind of problems: could not be installed properly or did not work properly.

I removed everything that had the name National Instruments form PC using cleaning software as: CCleaner, WinASO Registry Optimizer and RegScanner. I searched the entire hard drive for National Instruments folders and I deleted all, except the installation packages. I used dedicated uninstallers as Revo Uninstaller and Total Uninstall.

 I installed and uninstalled the Labview 2017 64 several times.

And always I have now the same error.

 

The error:

The error is “You have a higher NI Uninstaller version on your system. You must uninstall it before installing this version”.

The latest Chroma soft panel software requires Labview RunTime 8.5.1, which has the NI uninstaller 2.5.0 and the Labview 2017 64bit has the NI uninstaller 17.0.

 

How do I get rid of the Labview 2017 64bit NI uninstaller 17.0?

That is my question.

I want to be able to install the old Labview Runtime 8.5.1 which uses NI uninstaller 2.5.0, otherwise I cannot reinstall my Chroma soft panel software.

When I search the Registry with RegScanner, there are some leftovers from National Instruments which cannot be deleted, only some keys, under 10, but if those create dependencies to NI uninstaller 17.0, then I am stuck.

Where is that Labview 2017 64bit NI uninstaller 17.0? I want to delete it.

What dependencies have and how do I get rid of them?

NI Uninstaller Error - Labview 2017 64bit NI uninstaller 17.0

$
0
0

Question:

How do I get rid of the Labview 2017 64bit NI uninstaller 17.0?

 

Background:

This is an ugly situation. I spent hours on trying and reading the internet and forum for solutions. Please do not suggest simple things to try, because I have tried simple and more complex. I need a clear solution based on your direct experience.

I have Win7 64bit.

I use instrument control software made by Chroma ATE in Labview, named SoftPanel, for a Power Meter 66202 connected over USB. It requires “Drivers: Nl VISA Run Time Engine 3.0 or above, Nl IVI Run Time Engine 1.83 or above, Nl CVI Run Time Engine 6.0 or above.”

I had installed these 3 software packages from Chroma installation CD.

It worked just fine until few days ago.

I wanted to try the evaluation version of LABVIEW 2017 64bit.

I tested for few days, then I removed it from system.

Few days later I wanted to use the Chroma SoftPanel and the communication (VISA) did not work.

I removed and reinstalled the Chroma software.

Then the headache started.

I had all kind of problems: could not be installed properly or did not work properly.

I removed everything that had the name National Instruments form PC using cleaning software as: CCleaner, WinASO Registry Optimizer and RegScanner. I searched the entire hard drive for National Instruments folders and I deleted all, except the installation packages. I used dedicated uninstallers as Revo Uninstaller and Total Uninstall.

 I installed and uninstalled the Labview 2017 64 several times.

And always I have now the same error.

 

The error:

The error is “You have a higher NI Uninstaller version on your system. You must uninstall it before installing this version”.

The latest Chroma soft panel software requires Labview RunTime 8.5.1, which has the NI uninstaller 2.5.0 and the Labview 2017 64bit has the NI uninstaller 17.0.

 

How do I get rid of the Labview 2017 64bit NI uninstaller 17.0?

That is my question.

I want to be able to install the old Labview Runtime 8.5.1 which uses NI uninstaller 2.5.0, otherwise I cannot reinstall my Chroma soft panel software.

When I search the Registry with RegScanner, there are some leftovers from National Instruments which cannot be deleted, only some keys, under 10, but if those create dependencies to NI uninstaller 17.0, then I am stuck.

Where is that Labview 2017 64bit NI uninstaller 17.0? I want to delete it.

What dependencies have and how do I get rid of them?

.net constructor gives error 4 when compiled to .exe

$
0
0

Hi,

 I have a project which reads from a pressure sensor. This sensor is accessed using .net nodes to read from a dll.  It all works well in interpreted mode, but when compiled as an exe the contructor node cannot see the dll. and gives error code 4.

 

 I am told that the dll either needs to be registerd on the GAC, or in the same folder as the vi.  How do I do the latter if the vi is embedded in an exe?  I tried putting the dll in the same folder as the exe, but no joy.

 

Re- registering the dll on the GAC.  I don't seem to have gacutil on my machine.  Is there any other way to do this? 

 

Regards,

 

  Ian

 

 

 

How to protect vi.lib?

$
0
0

This morning, I couldn’t load any vis without hundreds of errors being reported.  It turned out that many vis (but not all) within multiple installed libraries (gmath, aalbase, aalpro) had somehow been repointed to copies of the library members within various source distribution builds.  It was so bad, I had to recover the affected libraries from incremental backups I fortunately had just started making.

 

How can I ensure the installed libraries are protected?  My personal feelings are that anything “installed” should never be modifiable outside of an installer, but with the default being to not separate compiled code in vi.lib contents, that just isn’t in the cards. So I’m not sure what to do in this node based license multi user environment where many devs share the same labview installation.  I’m afraid of hidden changes being injected into supposedly stable libraries now.

Save and load the front panel with Clusters

$
0
0

Hello everyone,

 

I would like the save into a file (ini or txt) the configuration of the front panel. The front panel include several clusters. In these "main" clusters, there are other clusters. The second part is to update the front panel according to data previously saved into the ini or txt file. 

 

I tried several things without success. I should mention that I am a beginner in LabView. :-(

 

Please see the typical front panel in the attached file with the implemented solution/try.

 

The best for me will be to use the standard LabView librairie. But if it is not possible or too complicated, I am ok tu use openG for instance or MGI but I do not know how to use it.

 

Thank you in advance for your help.


LabVIEW LCD (16x2) with DHT11 (LIFA)

$
0
0

Hi,

 

I have a project which involves a DHT11 (Temperature and Humidity) sensor, a 16x2 LCD w/o I2C, Arduino, and LabVIEW as the main coder (LIFA).

 

When I first tested the DHT11 sensor using the LIFA DHTXX LV09 Rev B, which I got from one of the forums here, the results were okay.

I was getting around 31-33 temperature and humidity of around 69-71. Although when I added the code blocks for the 16x2 LCD, the sensor's data went from temp of 31 to 48 to 71 to 48 then back to 31 again as well as the data for humidity (attached below).

I am sure about the code for the LCD. It shouldn't affect the sensor's data since the LCD was only used for data output.

Any help would be greatly appreciated!

P.S. attached below is the code block used in labview. (pin 9 is DHT11 pin)

Insufficient memory issue

$
0
0

Hello,

Simulation can't terminate due to insufficient memory, whereas according to task manager only about 50% of memory is used.

Code attached.

Thanks.

Insufficient_memory.JPG

How to ignore VISA Read Error (VISA hex: 0XBFFF003E) Power Amplifier Lucia 120/2

$
0
0

Hi there,

I am trying to communicate with a Lucia Power Amplifier via Serial RS232 connection (Command list attached). I have an error when attempting to Wake Up the device from standby mode. The device wakes up, but when I try to read data from the instrument I receive an error at VISA Read. However if you look at the output buffer, the expected message is there. I believe this is happening due to the null character at the beginning of the message? I am using Carriage Return as a Termination Character. You can see my attempt of using the VI to communicate on my NI Trace Capture. Whenever I am using <CR> on its own it is to flush the input command for the device, so you can ignore this timeout error.

Is there a way of ignoring the error from VISA Read? As I am receiving the message intended so it is correctly working.

Thanks in advance

[FPGA] Smartest conversion of boolean to U8

$
0
0

Hi All,

 

in my FPGA code I need to make the FPGA LED blink (Green/Dark).

Although it could be of negligible importance, since my cRIO has a 2 colors LED (1: green, 2:amber), I'm concerned about the smartest way to convert the toggling boolean value (LED ON/OFF) to U8.

Among the two solutions in snippet, which is to be considered "best" in terms of area and resources occupation on FPGA? Apart from these, are there any other aspects that could lead toward one solution instead the other?

 

Personally, I always try to avoid coercion and, in this special case, I doubt the compiler would be smart enough to avoid allocating a 16bit line even if not used by the destination I/O node.

Conversion thru array seems good, but I'm not sure whether the compiler would allocate some extra space for array indexing, even if useless in this case.

 

Thank you

 

Bye

 

Raf

 

[FPGA] Feedback node vs shirt register

$
0
0

Hi All,

 

a very simple and probably not so original question.

When working with FPGA, if line feedback is needed inside a while loop, what are the pros and cons among feedback nodes and shift registers?

Are there notable differences in terms of area/resources use?

 

Thank you

 

Raf

 

Viewing all 66676 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>