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

Eliminar ruido en señal adquirida con cDAQ NI 9201

$
0
0

Buenos días,

 

Estoy intentando adquirir seis señales de 4-20 mv con una tarjeta NI9201 instalada en un cDAQ  (Ethernet 8 slots). El problema que tengo es que las señales leídas presentan mucho ruido, adjunto pongo una imagen de la señal adquirida con MAX y para que vean un ejemplo, en este caso, el transmisor esta emitiendo 7,74 mv y la señal en MAX varía entre 7,2 y 8,6.

 

 

 

He intentado filtrar la señal en LabVIEW aplicando filtros pasaba bajos pero e igula manera tengo mucho ruido en la señal . ¿Podría alguien decirme como podría mejorar esto?, no me importaría hacerlo por software en LabVIEW o a nivel de hardware.

 

 

Mi pregunta es porque el multimetro marca un valor estable y mi adquisicion de datos con labview no?

 

Un saludo,

 señal del fluke.jpgseñal del fluke.jpg


LABVIEW INSTALLER FAILS UNDER CERTAIN ADDITIONAL INSTALLER SELECTIONS

$
0
0

Under Additional Installers of the Installer Properties menu for LabVIEW 2013 SP1 f2:

  1. Application installs normally when NI-DAQmx Core Runtime 9.8 is selected.
    1. Will not populate MAX with configuration.nce file.
  2. Application will not install when NI-DAQmx Application Development Support Software is selected; looks for license and never stops – keeps looping.
  3. Application will not install when NI-DAQmxMAX Configuration Support 9.8 is selected; displays message: “Currently executing National Instruments help install into Visual Studio 2010.

I need the installer to do a silent install of the MAX nce configuration file during the installation.

converting complex numbers to vectors

$
0
0

I was wondering if  I could convert two complex numbers to vectors in order to get their cross and dot products. Any help would be appriciated! Thanks!

Zoom into Pic on Key Press not working

$
0
0

So I have a picture on my front panel. I also have a zoom control wheel attached to it. The Zoom wheel on the front panel at the top right of the picture works fine. But I want to implement a way in which the user can press a button + or - to zoom in/out of the pic that way. (the zoom wheel is a bit cumbersome) Right now I have an Event Structure with a Key Down case event and inside that is a call to the Page-Down button. The VI runs but when I press Page-Down, the pic goes complete black. I do think the pic actually is zooming in because when I use the zoom wheel to zoom and go past the 6 on it, the pic turns black there also. So I think that when I'm pressing the Page-Down key as I have it configured now, it is zooming, but it's zooming all the way. If that is the case, is there a way to tell the Key Down event to zoom incrementally? Or is there even a better way to do about this all together?

sub vi contain matlab script

$
0
0

I have a sub VI contains Matlab script. I tested sub VI and it works properly on it won but when I call it from another VI the Labview crash and I get a crash report refer to this sub VI as the cause of the crash.  I attached a screenshote of the report.

delete bits from binary file

$
0
0

Is there a way to remove few bits from start of binary file. All file functions are byte based, not bit based. My files are large (GB size) so I would prefer not to read/write files as characters as this takes a long time.

Where does Labview save variables?

$
0
0

So I'm trying to read a text file line by line, and I've already seen some VI's that do this.  However, I want to go a step further and save some strings as local variables.  My background is in Matlab, where there's a 'workspace" where all local variables are saved and can be used/called later.  I was wondering a "workspace" of saved local variables exists within LabVIEW- and if not, how I would go about saving particular lines from my text file as some sort of variable that I can access later, or in a another sub-VI.

 

Thanks

LabVIEW 2014/2015 crashing with my wrapper library

$
0
0

I have a bunch of LabVIEW library wrapping VIs saved in LV8.6, they pretty much all contain Call Library Function Nodes. Recently I was working on a new program which uses these library VIs. I found that when using those VIs it causes LabVIEW to crash. The crashes are not due to runtime errors but may occur during runtime and development(not running).

 

Here are my sympthoms with various labVIEW versions.

  • LabVIEW 2010 - These crashes do not appear to happen at all.
  • LabVIEW 2014 - Crashes the most of the 3 versions I have tested. LabVIEW has crashed on me when pressing "save all", "run", "exit/close", double clicking a Sub VI to open it (both the library VIs and new SubVIs made for the new program).
  • LabVIEW 2015 - Appears to be slightly more stable then 2014. I only noticed crashes when pressing "save all" and "exit/close"

I have tried the following

  • I read on the forums that opening the VIs with a new version, mass compiling, and saving for previous would fix the issue. I have tried this with no luck.
  • Mass compiling all the 8.6 library VIs into the new version of LV before trying to use them in an applcation. This has no effect either.

 

Is this a labVIEW issue or an issue with my VIs?

 

 


what is the best way to parse TCP data packets?

$
0
0

So I am trying to read packets of TCP data and the size of the packet changes depending on the message sent.
Is there a better way to parse this data?

 

I was looking at clusters and flatten/unflatten to string but not sure which would be the most efficient method.

 

What I am trying to do is extract data from packets which indicate that is was processed from a device at address 20h
(address indicator) and then read the number of bytes as indicated by  size (size indicator) but the compare for
address 20 and the read size number of bytes is not working.

 

 

tcp-parsing.jpg

 

 

What is the best way to do this?

 

thanks

Controlling Frames Per Rate in VI

$
0
0

I am using a DMx 72BUC02 camera in my VI and I want to be able to control the frames per second, but when I try applying an FPS control the program is still going its regular speed. I have tried changing the resolution of the camera in LabView to increase the speed of the program, but it isn't working. the file of the VI is too big, but I am posting an image of it.

LabVIEW forum

$
0
0
I have installed LabVIEW 2014 and daqmax 14.1.0 but I can't find daq assistant on tools pallet. Plus my daqmax keeps hanging. Can you suggest any solution?

Command prompt calls from executable

$
0
0

I need to shut down my computer when Labview closes. So I wrote a VI that just calls cmd with the line: "cmd /k shutdown -s -f -t 1". Runnnig this from a VI in labview works, it shuts down the computer. But when I try to just build an executable from the file and run it the call doesn't work....the computer doesn't close down.

 

Any ideas about differences in cmd calls from within LAbview and from an executable made in a Labview project? 

how to force refresh of plot

$
0
0

I am trying to load data from a text file and plot it on 2 different contour (3d surface plots).  Inevitably, the first time I load the file after I open the VI, the coarse plot does not update.  However the fine plot does.  I don't know if this is an issue of timing the completion of loading all the data from the file, or what.  I have tried re-wiring error wires to force sequence and I have tried sequential structures.  Nothing seems to work and I can't find a control to allow me to force it to refresh.  Does anyone know what might be going on here?  I have included the 2 required VI's and a sample text file.  Can anyone help me out here?

Thanks,

Chris

 

Custom symbols in listboxes at Edit-Time

$
0
0

Hello guys,

the only way I know so far to define a custom symbol in listboxes is using the Invoke node, so I need to execute my code in order to store an icon in the control, once it's done I can delete my read PNG file, invoke node and keep coding. Afterward, I can assume the custom symbols are stored in the control and display them properly by setting an index in the property node...

 

Is there a way to do this without running the code? Just using "Import from clipboard" or any such thing that could be done at Edit-Time using the LabVIEW menus?

 

Cheers,

Jimmy

Link Error

$
0
0

Hello.I have an error with attaching my cross product to the indicator. These are the errors and my system:

 

Snapshot_2015-09-18_205916.png

 

Snapshot_2015-09-18_211404.png


Mass Compile has caused load issues

$
0
0

Hello,

 

Software used: LabVIEW 2014 SP1 64-bit 14.0.1f3

OS: Windows 7 Professional

 

I thought it would be a clever idea to do a mass compile yesterday.  I selected the root drive, kicked it off and then walked away.

 

When I returned the computer had reset itself which seemed a bit odd.

 

Anyway, now when I open up the LabVIEW project, and open the top level VI, it cannot find <vi.lib>:Utility\miscctls.llb\LVBoundsTypeDef.ctl.

 

I traverse to the above directory, and can see miscctls.llb is there (and the date of the file has changed to approximately when I ran the mass compile), but when I select it I get the following error:

"An error occurred while listing the contents of C:\Program Files\National Instruments\LabVIEW 2014\vi.lib\Utility\miscctls.llb"

 

So, I went to Control Panel --> Programs and Features --> National Instruments Software, and repaired LabVIEW 2014 SP1 64-bit.

 

After rebooting the PC, I still see th same issue. Smiley Sad 

 

Is there a way to fix this short of doing a complete re-install?

 

Thanks

 

Deploy To Compact Rio

$
0
0

I have deployed a simple VI to my CRIO to ensure I could do it...was feeling great because it went easily.  Now, I want to move my more complicated program...when I drag it down to the AVC Chassis, it loses all of the SUB VI's.  There are all kinds of help files and such, but after sifting through so much of it, can't figure it out.

 

Capture.JPG

 

I want to send the 'Main.VI" to the AVC CRIO...but it says it can't find all of my second-party VIs.  The MAIN.VI runs great if I run it through the RIO from my Laptop.  Lost!!!

Making the system

$
0
0

actually I am pretty new to the programme (ive started working with it like 2 days ago) my assignments ask to design a system which we can put the length of vector and its angle in and get the dot product and cross product out. I have no idea how to do it. I just know we have to have the following intput:

 

 

 

 

 Untitled.png

modbusTCP slave默认的TCP端口为502怎样修改为其它端口?

$
0
0
dsc模块配置I/O server 的modbus slave为以太网模式时,默认的TCP端口为502。因为要用安卓系统访问的,Android底层使用Linux实现,linux中规定,0-1024称之为特权端口,一般不能用。 现在想要改modbus slave的端口,不知道在哪里改!!

Error 7

$
0
0

Hi,I have a problem with path selection.The actual path it has to be select is \\coimachp.mach.corp\Data\EHS\multihub v2\17_ 9_2015.log.When i use the build path the appended path gives the same location as i mentioned above.but the read from measurement file gives the error as not a path.Can anyone help me to solve this?

Thank you in advance for your reply.

 

read.png

Viewing all 69317 articles
Browse latest View live


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