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

error 20309

$
0
0

Hello,

 

I received this kind of error :Error -20309 occurred at Amplitude and Level Measurements->practice.vi
 (waveform index 0 of 1). Possible reason(s): Analysis:  The amplitude of the waveform is zero, so the histogram method cannot be used.

 

I'm connecting the amplitude and level measurements to  a waveform chart. and i received this kind of error. Please help to solve this kind of problem.

 

Thank you


FPGA

$
0
0

Hello,

 

I am trying to make a case structure run only one time whenever it is called. I have tried various attempts using a feedback node but I can't get it to work. First call won't work because the inner case needs to run whenever the two outer cases are true. No event structures can be used in an FPGA. This really has me stumped. I must be overlooking something really obvious. Attached is the frame work which I am using.

The ultimate goal is to have a subVI in the inner case structure run only once. Any suggestion on solving this would be greatly appreciated.

 

Thank you,

Dave

In my array there are some values as inf and Nan, Before to save my array I want to eliminate this values. How can I do this?

$
0
0

In my esperiments I obtain some values such as inf and Nan, and I want to eliminate this values before to save my array in a file because then I would take the average of these values that are saved in a file

How can I do this?

 

Thanks

ASCII number decimal point display issue

$
0
0

Having a weird problem with a Plug-n-Play driver for the Keysight/Agilent/HP 8510C.    There is a VI driver (attached) called "Output Active Marker.vi"

 

The problem I'm having with this VI is that it works perfect when my marker value is between 9.9999 and -9.9999.    

 

When the marker value goes between 99.999 to 10.000 or -10.000 and -99.999....the VI does not shift the decimal place on the DBL Indicator.   For example:   a marker reading of -15.347 would display -1.534

 

Also, when a reading above 100 or below -100 is dicplayed, it has the same issue with the decimal point.       Example:  -104.56 reads  -1.04

 

I pulled-up the Agilent Key word Dictionary for this function (located here:   http://www.keysight.com/upload/cmc_upload/All/08510-90280_8510KeyWords.pdf ) and it states that the output is an ASCII string, not a DBL number. (page 515 & 516)

 

I tried taking the base VISA Read and Write functions and output directly to the Read string output....but it has the same problem.

 

So, It looks like this VISA Read function is not playing nice with the 8510C.....does anyone have an idea of how to "fix" it?

Appending images in several spreadsheets of an excel file

$
0
0

Hello!

 

I'd like to know how could I append images to different spreadsheets of the same excel file. Currently I am using the report generation toolkit (append image to report VI). Using the MS Office cluster i can set the position of the image within the first spreadsheet of the excel file.

However I would like to append two images in the THIRD spreadsheet of the excel file.

 

I am generating a TDMS file first, where i define the different spreadsheets or tabs of the file, and afterwards i am converting it into an excel file. How could I set the location of the images in a concrete spreadsheet of the file?

 

Thanks a lot in advance!

load error code 3

$
0
0

HI 
I have the load error code 3 problem,and i tried tofix itwiththe steps explained in other discussions but have not succeeded.Please help me. If anyone canhelp me outI would appreciate.
Regards,
i have labview2011 version,

load error code 3

$
0
0

HI 
I have the load error code 3 problem,and i tried tofix itwiththe steps explained in other discussions but have not succeeded.Please help me. If anyone canhelp me outI would appreciate.
Regards. 
i have labview2011 version.

pleease

LabView Communication with Arduino via XBEEs

$
0
0

I am needing to communicate my LabView program with my arduino wirelessly through XBEEs. I have changed all the baud rates to be 9600. This is on the LabView program, the arduino, and the XBEE chips through X-CTU. Somehow the LabView program still will give me an error and will not recognize the arduino. What am I doing wrong? Am I missing a step? Or did I do something wrong?


Why are separate subvi shift registers exchanging previous data between themselves

$
0
0

What I have is a NI USB-6001 to acquire data with. I set up a single task in NiMax to acquire two analog channels Ch0 and Ch1. Both are single ended with a range of 0-5 vdc. The main VI acquires the data from both channels and sends it off to individual subvi's. This subvi compares previous data to current data from a shift  register. It determines if the previous and current data exceed a specified percentage of difference. If it does it latches on an Led indicator. This works fine if I do this for only one channel (only one subvi). I duplicate this for 2 channels one subvi for each channel now and it is acting strange. My "previous ch0" indicator is receiving  "previous ch1" data and vice versa as seen in my image of the front panel. I have included the images here. If the VI code is needed I will attach it. 

 

This is the Front Panel

 

testvi.png

 

 

This is the SubVI

subvi.png

 

This the Main VI

mainvi.png

Plotting multichannel curves each with dedicated scales on the same waveform graph

$
0
0
I would like to plot multi-channel data/curves on the same waveform graph but I need to have a dedicated scale for each channel; so each channel has it own scales, all appearing at the same time on the graph. Is this currently possible in LABVIEW and how? Thanks for responding .

Read 1k samples of 2 bytes each from FPGA through UART

$
0
0

Hi,

 

I am designing a system consisting an FPGA based board (NEXYS4 DDR) which read a high speed ADC via paralel interface. Now I've programmed the FPGA to take 1000 samples and send it to a LabVIEW GUI when is asked by GUI via UART. Each data sample contents 2 bytes so in the final will be 2000 bytes on UART.
At this moment I don't have a separation syntax between samples (at each 2 bytes), do I need one? So when I hit the acquisition the LabVIEW it will display me the samples without separation between them.
How is the best way to to? To do a separation in FPGA firmware at each sample transmision, or to work with data in LabVIEW and make a syntax with a stacked sequence which will allow me to read 2 bytes and increment an index which will allow me to go to the next 2 bytes.


I hope I was clear where I have my doubts.
At this message you will found an print screen which show you how data looks when I receive from FPGA. In this print screen the indicator are set to show hex display and codes display and 028E is the sample value.

 

Thank you in advance,

Vlad

Custom scale in intensity graph

$
0
0

Hi,

 

I'm plotting a 2D array into an intensity graph with axes depth (y-axis), and phase difference in rads (ranging from 0 to pi) (x-axis). I have used the scale multiplier and got the y axis fine, but I'm wondering if it possible to have the x axis range from 0 to pi, with major ticks being factors of pi, and also have pi displayed as π rather than numerically.

 

Cheers

Multiples While Loops en un solo Frame

$
0
0

Hola a todos,

 

Tengo un problema relacionado con multi hilos.

 

Dispongo de una aplicación bastante grande donde quiero que se ejecuten concurrentemente unos 15 while loops controlados por temporizadores. La aplicación funiona perfectamente ya que todos los hilos (loops) comienzan al mismo tiempo llevando un tiempo de ciclo propio y LV parece trabajar paralelamente. Los diferentes bucles han de trabajar constantemente sin llegar a pararse en ningún momento. 6 bucles son de comunicación via MB y el resto para procesamiento de datos con un SCADA a tiempo real que ha de refrescar sin apenas latencia (hasta ahora funciona correctamente).

 

El problema es que empieza a ser una locura trabajar de esta manera por el gran número de loops en un solo frame y cada uno empieza a ocupar mucho (en tamaño visual y la cantidad de variables). Me gustaría trabajar con diferentes frames aunque obviamente esto es complicado puesto queson bucles infinitos. Por otro lado, supongo que debería controlar todo el flujo de datos que comienza a ser un desmadre. Ninguno de los loops es maestro sobre el otro y han de ejecutarse de forma autónoma con un tiempo de ciclo fijo (pero infinitos).

 

Os adjunto un ejemplo de la aplicación muy sencillito donde podríais imaginaros que cada uno de los while loops es enorme. Obviamente hay variables que se comparten cosa que me preocupa por las condiciones de carrera aunque de momento no parece que hayan aparecido pero seguro que aparecerán cuando busque algo de velocidad en el programa...

 

Muchas gracias por la ayuda.Smiley Wink

Multiple While Loops. Multithreading

$
0
0

Hi everyone,

 

I have written a program which contains multiple parallel whileloops (15 or more)  which seem to execute simultaneously. For the moment, the application works works perfectly as all the threads ( loops ) start at the same time bringing own cycle time and LV seems to work in parallel. The different while loops have to work constantly without being stopped at any time.

 

The problem is that the code is beginning to be a real monster because of the the large number of loops in just one frame and each becomes huge. I would like to work in different frames but obviously that is complicated since are infinite loops. On the other hand, I gues I should control the data flow that is becomeing a mess. None of the loops is master over the other and have to run autonomously with its own cycle time. And there are shared variables that could influence on the race condition.

 

I attached an example of a very simple app where you could imagine that each while loop would be so big.

 

Thank you very much for the help.

Control External LabView programs

$
0
0

Hello All,

 

I'm faced with a problem, and I was hoping to get some ideas on possible ways to solve my problem. I have a solar simulator that measures electrical characteristics of solar cells, and the solar simulator is controlled by two, stand-alone labview applications. One application selects the pixel on the solar cell (typically our cells have 6 pixels) being measured, and the other application initializes the measurement. It is quite annoying to have to press two buttons in two different programs, so I was hoping to come up with a solution to this problem. The manufacturer won't provide the source code for either of the applications, so I'm sort of stuck on what to do. We are hoping to write a 3rd program that can control the other two (basically just to press the buttons). Rewriting a new program for the solar simulator is very time consuming, so that's why were looking for a quick solution. One idea we had was simulating mouse clicks like in the following example http://digital.ni.com/public.nsf/allkb/9BB3211F3469623649257360000E272C, but this wouldn't work if the panel of one of the applications was slightly moved, for example. We appreciate any help we can get!


The best way to save data in my situation

$
0
0

Hi guys,


First of all thanks for helping me, i am bit new using labview enviroment.

 

I am working with a circuit that is going to return me some data, voltage. I want to save this data like each 5 min or about. My question is:

 

Is it better to use a .txt file that stays opened and the file is recording the data or maybe export to a DB? 

 

My other question is, if i use the .txt column recording, i haven't exactly found how to record in columns. I know how to do after something that has been previosuly written but i haven't achieved writting in columns.

 

I just wanna do the best and less problematic thing to record values.


Best regards!

Someone can help me with Fast-OFDM with MIMO 2x2?

$
0
0

Hi. I just doing my proyect with Fast OFDM but a need it on MIMO 2x2. Someone can help with it??

Order of Execution with Play Waveform

$
0
0

I am trying to figure out how to control which order the sound files are played when set-up like this. It does not run them from top to bottom as I assumed it might. How do I control this order? Im sure there is a better way to wire it as well I am just unsure of how. Maybe that will make determing the order the files are played easier? Thanks you sample VI attached below

compass plot

$
0
0

I have LV2009 and I'm trying to use the compass plot.
When resizing and changing colors the settings are not being saved. After reloading, the default values are being loaded.


This is a bug that has been reported and apparently fixed in newer versions.


Is there a way/ workaround I can use to make it work without having to buy a new LV version?


Thanks


Henry

1073807339

$
0
0

Bonjour, je suis entrain de faire une communication entre un capteur et labview. Mais je n' arrete pas d'avoir cette erreur.

 Capture.PNG

 

J'ai deja tout lu sur les causes possibles pour ce type d'erreur; timeout, code, nombre de bites... 

J'ai beau fait des changement mais rien ne marche. J'aurais besoin de votre aide svp

 

vous trouverez ci-joint le programme ainsi que le manuel dutilisation de kistler

Viewing all 69535 articles
Browse latest View live


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