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

inconsistent results after warning 200010

$
0
0

I am using a USB-6341 and have two VI that I have created DLLs from. When I first start running either one I get perfect results, however after awhile I'll get a warning.

 

The warning is "Warning 200010 occurred at DAQmx Stop Possible reason(s): Finite acquisition or generation has been stopped before the requested number of samples were acquired or generated."

 

Once I get that warning at times the VIs will continue to work just fine and other times I'll get an Error -201314 on the count VI and an Error -200284 on the phase VI when I try to run the VIs in LabVIEW

 

I'm thinking that since the warning has to do with DAQmx Stop it is causing future reading to be inconsistent, but I'm not sure why it would cause that to happen. I'm attaching the two VIs that I am using as well to see if maybe there is just a simple issue with one that I have wrong that could be causing this.

 

 


Annoying display issue

$
0
0

Does anyone know how to configure LabVIEW to not change how the block diagram is displayed when opening code on a monitor with a different resolution? Below are two screen shots of the same code, just opened on different computers. One is a desktop with a screen resolution of 1920 x 1200. The other is a laptop with a resolution of 1920 x 1080, the highest resolution it has. Notice that everything gets shifted on the block diagram when opened on the laptop. This is extremely annoying. I want LabVIEW to leave everything alone. If I have to scroll because of monitor differences fine, I'll do that. Don't rearrange my code to fit in the resolution.

 

Desktop:

Desktop.png

 

Laptop:

Laptop.png

 

 

Verify interval of 3 elements in while-loop

$
0
0

Hello community,

The LabVIEW-Code should compare a 1D Array in intervals of 3 elements with a constant. If all elements in the interval

is less than the constant "2", then the while loop should stop verification.

 

I would appreciate any kind of suggestion and contributions.

 

 

 

 

Problema con ejecutable y archivo txt

$
0
0

Buenos dias;
Hice una aplicación que al ejecutarse inicialmente lee un archivo txt y muestra sus datos en pantalla. Mas adelante en la aplicación si uno lo desea puede modificar estos datos y guardarlos en un nuevo archivo que sobrescribe al inicial.
Realice el ejecutable agregando el txt y al instalarlo en la otra computadora se crea la carpeta data con el txt dentro, hasta aquí todo bien.

El problema ocurre cuando ejecuto la aplicación, ya que esta no lee el txt y el indicador donde debería aparecer lo leído permanece vació. A su vez, a este txt que se creó durante la instalación lo puedo abrir pero no lo puedo modificar.
Lo curioso es que si elimino este txt que se creo mediante el instalador y creo otro txt (por ej en el escritorio por que no puedo crearlo directamente en la carpeta data) con el mismo nombre de archivo, y a este lo "copio" y pego dentro de la carpeta data pasa lo mismo, la aplicación no lo lee y lo puedo abrir pero no modificar.
Ahora bien, si a este nuevo archivo que cree en el escritorio en lugar de "copiarlo", lo "corto" y pego dentro de la carpeta data, al ejecutar la aplicación esta lo lee correctamente, se sobrescribe el archivo cuando quiero y todo funciona perfecto, ademas de poder abrir el archivo txt y modificarlo sin ningún problema.

Alguien tiene alguna idea de por que pasa esto y como solucionarlo para no tener que crear el txt aparte cortarlo y pegarlo?

Estoy utilizando LabVIEW 2013
La computadora donde instalo el ejecutable es una notebook sonyvaio VPCEA20EL

La programación es extensa por lo que adjunto una imagen solo de la parte de la programación donde se lee y sobrescribe el txt.

Muchas gracias desde ya.

Massive Disk Usage

$
0
0

All,

 

My PC has been running low on disk space, so I started looking at removing stuff that isn't used.

 

I found the following:

c:/ProgramData/National Instruments/    - 22.7GB

c:/National Instruments Downloads/    - 22GB

c:/Program Files(x86)/National Instruments/   - 19.3GB

 

I am comfortable that I can delete the Downloads, but why so much stuff in ProgramData?

 

Bruce

 

Waveform graph not displaying data

$
0
0

I'm trying to recreate the example vi from this niglobal tutorial video. The only difference is I am using a variable DC power supply instead of a function generator. It's not throwing any errors when I run the VI, but waveform graph is not not displaying data. I probed the dadta output of the DAQmx read function. I didn't see anything there either. I opened up measurement and automation explorer and looked at the channel through test panels. It works just fine there. I'm not feeding the signal into the block diagram with a task I'm doing it through a physical channel.

I'm using a USB-6009 daq, LabVIEW 8.5.1, and DAQmx driver 9.3

crio904xBaseLogicx in a cRIO 9057

$
0
0

I recently had a cRIO-9057 FPGA build fail due to a timing error. I'm using LabVIEW 18.02f (32 bit) and Vivado 2017.2 (64 bit).

 

Although the timing requirements of the 40 MHz clock I use are met, it appears some NI internal logic is failing. When I click "Investigate Timing Violations", there is one path comprised purely of non-diagram components that is failing. Most of the components of that path are prefixed with "crio/904xBaseLogicx/..."

 

Is the presence of 904x logic expected in a 905x cRIO? Is there anything I can do to help prevent these errors in the future besides playing around with build settings and performing minor-tweaks to hope I can get the build to succeed? I am using < 50% of slices, so I can't imagine I'm asking too much of my FPGA here.

FPGA simple counter wont count pulse generator

$
0
0

Capture.JPG

Here is the block diagram for my simple counter. I followed the NI implementing counters on an FPGA tutorial. I have a function generator, generating a 1 volt square wave at 1 kHz hooked up to my sc b68 connector block, and that hooked up to my USB 7856R FPGA. The program synthesizes, however, when I run it, the counter on the front panel doesn't proceed. I checked that there is a voltage running through the screw terminals on the connector block, and am unsure why its not counting each pulse.


Ways to Organize a LLB

$
0
0

Hey Guys,

 

I wanted to know if their is any way to organize an LLB? right now i have all my equipment in it along with my sub Vi's and i wanted to know if there was a way to put my Sub Vi's in a folder or in an another LLB with in my equipment LLB.

 

eventually i plan to turn all my VI's into an exe, and i would create a menu but for now, my co workers need to test as i continue to develop.

 

Thanks.

Pulse width counter measurements causing an error. Could this be a hardware bug?

$
0
0

My Daq device is a USB-6341. I am running labview 2015 SP1 version 15.0.1.f7 (32 bit). Windows 7 OS. I am using 4 counters to perform pulse width measurements. I am using 4 independent sources. All 4 are square waves with a 1.5  second period, 50% duty cycle. All 4 Counters are accurately measuring .750 milliseconds pulse widths. Amplitude of waveforms is +4.5 volts referenced to ground.  The problems I am seeing is if I remove one source from counter 0 and reapply it again after 10 seconds (past the timeout of the counter read vi) I notice that counter 1 drops out. Meaning it gets corrupted and gives a very inaccurate measurement for a short period of time until counter 0 starts reading correctly again. This does not happen every time. It may take several tries to see it. I have included a working example of the code I am using. I am assuming that theses counters are independent of each other and one should not affect another one.

Help is greatly appreciated. Thanks.

Confusion about Ocean optics USB2000+

$
0
0

I am using an Ocean Optics USB2000+ to measure an UV light source. The results I got are wavelength and intensity(counts). However, I am looking for intensity with unit, for example, uW/cm2 or J/cm2. 

 

My question is how do I get to that.

 

Thanks,

 

Worrawit

Need help creating my attendance counter

$
0
0

In this VI, the student will push their button time they enter the class for attendance.
It will display which days they push their button and which days they do not.
If the amount of missed days is Below 2 it will say "Good Attendance",
      If the amount of missed days is 3-4 it will say "Warning"
                                                          5 or above it will say "Poor Attendance."

 

I am stuck on how to write the data to a file and then reading and displaying this data on labview. I included my VI of where I am at so far. 

Calling .dll from LabVIEW is slow, and seems to leak memory

$
0
0

I have a .dll that I made in LabWindows CVI which I'm calling from LabVIEW. The VI and .h file are attached. 

 

My first problem is time. When I run the .c code as an .exe in debug64 mode in LabWindows CVI, the function takes ~1ms. I would expect the function to take less time when it's switched to a .dll, becuase it's a release64 build. However, the VI (which is not much more than a wrapper on the .dll call) takes 150 ms or more.

 

My second problem, which might be related, is a possible memory leak. I notice that when the VI is run over and over again, it slows down (150ms-250ms over the course of a couple hundred runs). When I look at LabVIEW's memory usage in task manager, it seems to increase by 8 kb every time I run the VI. I'm not sure of this, because there's also a fair amount of natural variation, but I don't notice the change when I run a similar VI that doesn't call a .dll. I used LabWindows CVI's built in memory leak checker, and it didn't find anything.

 

Does anyone know what might be causing these problems? Is the speed just a natural fact of calling a .dll from LabVIEW that I'll have to get used to?

 

I used the LabVIEW wizard for creating sequences that call .dll's, but I've since edited that VI somewhat to better interface with external applications. 

 

I appreciate any solutions, advice, or unfounded hunches.

VISA Resource Name not getting populated

$
0
0

Hi All,

 

The VISA Resource Control in LabVIEW on my machine has stopped populating the resource names connected to the PC. I used to see the VISA resource names earlier but now, I am unable to see them. The device appears correctly in Device Manager and NI Max though. Can someone suggest on how to get this resolved?

 

Thanks,

Abrar

How to match data acquisition system to different type of DAQ card

$
0
0

Hi all,

        Here is my situation: I have developed a test system which collects data from a DAQ card.But in my company ,for historical reasons ,we have different type of DAQ cards. For example ,we have PCI-6225,PCI-6224 and so on.So this is the problem,I have to match all the cards we have,I don't want to add too more user configuration input in the system . Is there any way to detect the DAQ card current system installed  inside the program, and automatically adapt.So there is no need for a separate configuration for each board card.


Exception: EIP=0x056F5DB3에서 Access violation (0xC0000005)

$
0
0

My program is Received 32bit(8bit *4) Hex data from MCU on UART.

 

And convert to float data and display.

 

But the exception occurred.

 

I have no idea about the exception.

 

Do you know about this?

 

I attach my program.

using memcpy in formula nodes

$
0
0

Hi,

 

I want to use memcpy in formula nodes.

 

But there is error in my program.

 

Labview is not support memcpy?

 

or I mistake somethings?

 

 

캡처.PNG

Error -301070 occurred at MC Program.vi: ECU Measurement and Calibration Toolkit

$
0
0

Hi everyone,

 

I'm currently working with the ECU MC kit in a third party ECU using the CCP protocol. I've been working withe the examples the kit provides, and i achieved to measure and calibrate succescfully using the "Measurement and calibration application" implementing my ECU and CCP settings and the suitable ".a2l" (generated for INCA software).

 

However, when using the "Program Hex or S Files.vi" i got the following error:

image.pngI used the same "a2l" that worked fine for calibration and measuring, and what i wanted to do is reprogramming a ".hex" file into my ECU (i also tried with a ".s37" file but it doesn't worked at all)image.png

¿Could anyone provide me some help with this issue?.

 

More info:

- Using a NI-XNET interface (USB-8502).

 

SMC JXC928 Ethernet/IP Motor Driver with LabVIEW

$
0
0

Hi All,

I want to communicate directly with an SMC driver JXC928 to control multiple motors via LabVIEW via Ethernet/IP protocol.

I have found an NI-Industrial Communication for Ethernet/IP driver but it seems to only work as an adapter to PLC. I have also seen a similar post

https://forums.ni.com/t5/LabVIEW/Ethernet-IP-Communication-Using-NI-Industrial-Communications-for/td-p/3354142

but it did not confirm if the motor driver can be controlled directly.

I appreciate all the help.

Thank you very much.

Labview Customizing

$
0
0

Hello Everyone,

 

I want to learn customize scrollbar, graph, table etc. This is my school project. How can I improve myself. I couldn't find any helpful video about the customizing. I designed it. Just I need to learn how to change. Can somebody help me?

Viewing all 69167 articles
Browse latest View live


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