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

Issues with signal input adaptive filtering, it won't filter the added noise from the input waveform

$
0
0

Hello,


I have an issue with my adaptive noise cancellation program. Essentially I want to input a custom wav add noise to it and then filter the noise away in order to gain the custom wav again.

While doing so I want to read the learning curve and read the adaptive coefficients. Unfortunately I have an issue when it comes to the filtering of the custom wav+noise. It won't filter the signal at all.

It would be helpful if someone could have a look at it and possibly help me out.

Thanks!


German and Labview NI DAQmx

$
0
0

I'm using 2014 (32 bit) Labview and am trying to use DAQmx .VIs. However, they are all presented in the German language.  How do I change them to English?

Using Only X Amount of Latest Input in Array

$
0
0

Hello,

 

I'm working on a VI that needs to analyze and display samples of an input in real time . For simulation I'm using a generated sine wave though. It also needs to save these values in an array for the entirety of its runtime. Problem is, the program begins to lag over time so I'm assuming it's using the entire array for analysis on every iteration. Is there a way I could take X amount of the latest samples to analyze and display at a time? I've read about queues and running averages, but I'm wondering what would be best and how to implement it.

 

main_queue_testd.png

I have to reconnect to my DAQ device every time I start my computer... Why?

$
0
0

Hello, I am Ricky, a process engineer intern at a company. I am still a novice at LabVIEW and NI MAX. We have one cDAQ9181 set up to pneumatics and another set up to an encoder. Now, every time I start my computer the pneumatics box is already connected, as expected. However, the encoder one is not. When I click on it in the sidebar, it is found and connects, but the encoder itself does not connect until I perform a self-test. These devices have stayed plugged in and connected overnight, and yield no other issues -- they should be connected as soon as the computer is on. Does anyone know what is going on and/or how to solve this? I can try to provide a picture if necessary.

Thank you for taking the time out of your day to offer some valued help! -Ricky

Configuring a 4-20 mA current loop with NI 9208 Module and CDAQ-9178

$
0
0

I have a 500 Ohms potentiometer that I am trying to connect to a 4-20 mA current loop.  I want to use a NI-9208 card connected to a CDAQ-9178 USB Chassis to read the current feedback from the potentiometer.  The NI-9208 is currently being supplied 24V and is sensing 5 low wattage devices.  I am using the potentiometer current feedback to determine the position of a valve that I am adjusting CW or CCW to control refrigerant flow in a sealed system based on certain conditions.


What additional hardware will I need to provide the 4-20 mA current output to the NI-9208 card?  I am considering the DRLP-P2 potentiometer input transmitter from Omega which converts a two-wire potentiometer input of 0 - 500 Ohms to 4-20 mA.  I was hoping that I could use the same 24V supply to the Vsup and COM on the NI-9208 and that the positive 4-20 mA signal could be connected to one of the available AI positions on the NI-9208.  Has anyone used hardware similar to this to create a current loop? If so, can you send me a wiring diagram or describe how the current loop was setup?

 

 

running LV when source control is not available

$
0
0

My laptop has a LV "home license" so I can run it disconnected from my work's network. My source control, perforce, can run disconnected from my work's network, and I can sync back whatever I did when I reconnect.

 

Now, if I configure LV to use P4, and I'm disconnected, I have to wait a loooooooooooooooooong time for LV to tell me that it can't connect to source control, and then it disables the source control configuration. Trying to exit LV takes a looooooooooooooooooong time, then it shows a "Resetting VI" dialog, on NI_SCC_ConnSrv.lib:smileyfrustrated:CC_ConnectionServer.vi, and never exits!

 

Not very useful, actually outright annoying.  I'm on 2012, is this better handled in newer versions? Or is there something that I didn't configure right?

Plot Data Distribution

$
0
0

Hi all,

Actually I have a size measurement data, but I couldn't find the best way to represent this data as a fine graph.

I try to use XY graph, but also the data representation looks tedius. Can you please give me any hint so I can 

represents this data like a bell shape.

Thank you

2d interpolation

$
0
0

Dear friends,

   I want to perform the 2D interpolation of  a intensity graph using “Interpolate 2D” Vi. But I don't want this function operated at the same time of running  the main VI. So I saved the intersity graph as a JPEG using the Invoke Node firstly. Then the question comes. Is there a method to change the JPEG picture to the data array that used to draw the original intersity graph,or is there a method to realize the interpolation by operating the image(image data)??

 

Thank you!


Case structure default

$
0
0

My entire code is in a while loop with a 100 ms  clock. My code uses a feedback control to set temperature, This takes a few iterations. Once the temperature sets, I need to acquire a value and store it. I am doing this using a case structure followed by shift registers. The problem is that the case structure outputs the read value to the shift register for true case, but in false case I am forced to make it read default value (0). This is just completely erasing my registers due to the iterations when temperature is being set. Is there a better solution to this?

cluster in control panel

$
0
0

I saw a cluster in a Labview program. Can anyone tell me how this cluster is created and how it works? Thanks!

1.png

FFT Amplitude is not constant for Different Sine Signals

$
0
0

Why is the amplitude of my Sine waves after doing FFT decreasing. It must have a constant amplitude of 1. How can I obtain a constant amplitude of 1 for my FFT? Is there any way in order to compensate and obtain a constant amplitude of 1.

 

decrease.JPG

 

semiconductor strain and non linear scales

$
0
0

Dear,

 

it's not completely clear to me if it's possible to read semiconductor strain gauges with NI hardware?
Do I need special hardware or do I use a normal bridge circuit analog input card (eg NI 9237)?

 

An added problem with semiconductor strain gauges is the need for linearization of the output because the

basic resistance versus strain characteristic is nonlinear. Is this possible in LabView?

As far as I know, I can only create linear scales in Ni Max?

 

Thanks in advance,

Ronny Comyn

Belgium

 

 

 

Create a tracer indicator to display actions

$
0
0

I cannot find a better definition. I try to explain what I need.

 

 

On a user interface I need an text indicator where I can display all the actions the machine is doing. It is like a log "on the fly". Something like the "printf" in C, where you can add one message after the other.

 

 

I did it with a string or a list box but I got the following issue:

 

1) I cannot attach just the new massage. Every time I have to update the indicator I must pass to the indicator the entire string or table. It is not a big issue, but If the string becomes longer and longer there could be some performance issue,

 

2) I would like to use different color or font for different type of action. In this case I should use a listbox, but I still have the issue #1. When I have to refresh the indicator I must refresh, values, color and font of each line using the active cell property. In this case I will have some performance issue for sure.

 

 

When I have to add a new message I should be able to "append" just the new msg setting the color and the font.

 

 

Thank you.

How to deal with XNET Write and Read in one loop?

$
0
0

  I just find that if the read function was placed behind write function in one loop, I can not get any reponse at all!

 

Write and Read.png

 

 

 

  For example, I send ID=0Xb000011 out, the response should be 0xa000011. However, I can not get that.

    >>('0xb000011', '[0x04, 0x00, 0x11]')
    <<('0xa000011', '[0x04, 0x00, 0x11, 0x30, 0x04, 0x01, 0x16, 0x00]')

 

  I know if write function and read function are placed two loop in parallel, it will be ok, but I don't want do like this, it makes block diagram looks some of mess.

 

  Could anyone tell me how to capture the response without any miss in just one loop. Thanks!

Remote Panel 8.6.1 won't load in Internet Explorer 9 (Windows7)

$
0
0

Hello everyone,

some years ago I installed a cRIO with an LabVIew 8.6.1 WebServer running on it. This worked flawlessly on XP with Internet Explorer.

The machine wasn't used for quite a while and in the mean time we have switched all our PCs to Windows 7.

 

I installed the LV RTE 8.6.1 and the patch 8.6.1f5 from http://www.ni.com/download/labview-run-time-engine-8.6.1/1244/en/

The addon is shown in Internet Explorer (although I am wondering it shows "8.6.0.something"). The IP is listed as trusted site and all ActiveX-Elements are enabled. 

 

Still the panel only shows that it's loading on 0.00%.

 

Can someone help me with this issue?

 

Regards

Andreas


Call a function from matlab labview

$
0
0

hi,
I would like to know how can I do to write a string on the front panel of Labview and write simultaneously in the Matlab command window.
Thank you

find peak and valley

$
0
0

i have tried make peak detection using array max and min or peak detector but data obtained is same, there is not difference between peak and valleys.
my data from sensor spo2 acquisition by analog read arduino then i make filter after that i want to find peak and valleys?
can you help me?

How to operate main vi with active subVI dialog?

$
0
0

Hey all,

 

I'm currently working on a user interface for a test facility. On the main screen you have all the data you want to see at a blink. However for a more detailed view I'd like to make pop up windows showing the details while still being able to control the mainVI.

I tried using a subVI with window appearance set to "Dialog Box", but this blocks the mainVI until the subVI is closed. Is there a way to have a subvi pop up like a dialog box, but without it blocking the main VI?

 

Thanks in advance. :smileyhappy:

Convert group of String fields to an Array?

$
0
0

Hello.

 

I am very new to Labview so please be nice.  :smileywink:

 

I want to convert a group of string fields into an array and I'm not sure how to do this.  Ultimately when the program is complete, it should write data to a csv file and each of the fields under "Channel Description" should be written into a column at the top of the csv file.  From my search, I could do this with arrays instead of using a bunch of string fields but now all of my string fields are already configured and I don't want to have to go back through and rebuild all of that if just using some sort of "convert to array" would do the trick.  Any additional tips or advice is appreciated. Thank you.

COM port from VISA alias

$
0
0

I have a test fixture I am designing in LabVIEW that is composed of many independent instruments. For simplicity sake I gave all of these instruments a VISA alias (for instance Programmer rather than COM3) so I wouldn't have to guess at which COM port the instrument was attached to.

 

Now, in LabVIEW, one of my instruments does not have a driver but does have a DLL shared library that I am trying to create wrappers for. One of the inputs is the serial port in a numeric format (0 for COM1, 1 for COM2, etc). If I didn't have the alias I would just do something like this...

 

 COM to Number.png

 

But....because I have these aliases I cannot make it so simple. Is there a way to get the serial (COM) port number (I can decrement it) from the VISA alias?

 

Edit: seems the code didn't make it in on the first pass

Viewing all 67089 articles
Browse latest View live


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