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

Diagramm of PSD vs frequency

$
0
0

Hi!

my name is Carlos and I need to do a PSD diagram vs frequency. I have my signal's data in an array and the sample rate is 250Hz bust I don't know how to put all this together...

I would be really grateful if somebody could help me....

Thank you very much 

Carlos


Problem when using the Myrio onboard LED

$
0
0

Hey,

 

i have some questions about my Project, which i already posted on this Forum. I am using the MyRIO 1900 and Basler camera to compare two Images and Highlight the differences. I have a vi which is working. but i have some question:

 

1) I am trying to use the onboard LED of the Myrio device to registrate any difference between the two Pictures. it doesn't go on. even when i write a constant (0 or 1) on on of the on board LED it doesn't work. I don't know what i am doing wrong?

 

2) secondly, i will like to save the compared Images and the result of the comparison on the Myrio (only when there is a difference). but i think saving too many Pictures on the device will take too much space. so is it better and posible to use the Report Generation and write this Pictures in word before saving them? that means if there is a difference between both Images, i will like to Report the result of the comparison in a Excel or word with 3 Images ( I_t1, I_t2 and the result of the comparison).

you can get a look on my actual vi

 

Thank you for your help

Problems with Arduino UNO and usb camera

$
0
0

Hello, 

it's my first topic on this forum, so please be forgiving, and note that english is not my native language.

I'm trying to create program that allow me to control homemade pupillometer.  

I have thorlabs camera uc480 with i connect to my coputer by usb. unfortunately MAX can't see my camera. I control my camera with uc480 .NET LabVIEW interface. Everything works fine (live streaming, init camera, saving images) until i try to create program that comunicate with both arduino uno and camera. 

When i run program that control arduino and other usb camera (i use IMAQdx for control camera) it works fine, but when i switch to program where i'm using uc480 .NET LabVIEW interface i have problem connecting with arudino uno. I receive error Error-1073807202 occurred at VISA clear in LabVIEW Interface for Arduino or Error 50002 at Init. 

When i reset arudino after turning on my vi it starts working but then i have problems with my camera. Only one shot form camera is taken and then i receive error invalid image type at IMAQ ArrayToColorImage. 

I'm very confused because separate my programs works fine, but combining together communication with camera and arduino uno create problem.

I attached my VI.

Any clues? I will be gratefull 

I'm using LabView 2016, and i have Win10

VI Performance with overlapping hidden subpanels

$
0
0

I am debugging some performance issues with a large Labview user interface program.  In order to break the large number of controls into usable groups, I am using several subvi's that are called at start and run asynchronously in subpanels.  All the subpanels are overlapping, but only one is visible at a time - when the user asks for a different panel, the others are hidden and the relevant one is made visible.  My question is, is Labview still taking time to draw the hidden subpanels?  I'm aware that overlapping controls can impact performance, but I was hoping that hiding the others would eliminate that performance sink.  Any thoughts?

Why UI Control Suite: System Controls 2.0 Not Included

$
0
0

Does anyone know why the package from VIPM "UI Control Suite: System Controls 2.0" is not included in stock LabVIEW by default? I understand the fundamental controls are included because they have native windows API counterparts (or very close to it). However, all other UI sets just include all LabVIEW useful controls.

 

Isn't it about time to include the System Controls 2.0 by default? This will maybe make it easier to take LabVIEW seriously as a programming environment.

 

As a side note, what are people using these days? I like the System controls because they don't looks comical or waste space...it adopts the local UI appearance.

Front Panel changes size when I change the windows font size

$
0
0

Running LV 2015 on a windows 10 computer.  I set up the VI to show all of the graphs controls, etc. on a screen set up at 1600 x 1080 so that it will work on various computers.  In this case the application takes up about 80% of a 1600 x 1080 screen in windows 7.  When I put it onto my Windows 10 laptop which has 1920 x 1080, it shows up fine when I have the windows font setting of 100%.  When I change the font to 125% or 150% the items on the LV front panel grow substantially and no longer fit on the screen.

 

Is there some default setting that I can do in LV (not on a vi by vi basis) to enable/disable this feature?

 

PS  I am also in the habit of not using the default system fonts and will specify fonts and sizes for my controls so that I do not have to worry about things changing relative sizes as I move them from computer to computer.

 

 

Labview Data acquisition over days with only logging/recording of data

$
0
0

Ok here goes...

 

Totally new to LabVIEW. Using the 7 day trail 2017 version. NI cDAQ-9172 with 2 NI9235 connected to windows 10 through USB. The goal is to run 16 strain gauges on a fatigue test and record the data. We figure the amount of data is going to be massive considering we might run for 5+ days so we have decided to only record some of the data. Lets say every 10,000 seconds for .1 second.

 

I tried in Signal express using the log option but failed to be able to save it to one excel file with a point of reference for time.

 

Can anyone point me in the right direction here?

Continuous filtering

$
0
0

I have created modified multi-filter based on VI shared by johnsold in this post. Thanks @johnsold for those VIs.

 

I am calling MultiFilter.vi every 100ms after DaqMx Read and passing 8channel 100 samples data in 2D DBL array format to MultiFilter.vi.

 

filter.pngMultiFilter.viMultiFilter.vi

Though I am able to get filter working, but there's break observed in a waveform. Something like filter restarts. So my query is, how to achieve continuous filtering? Filter.viFilter.vi


Typed variables

$
0
0

In none of this do I want to use a control or even define or use more than a very limited number of controls; I want to perform sequential programing with minimal graphical content.

 

I understand that I can use enumerated types, albeit with difficulty, since Labview is inherently graphical and not as easy or elegant as text programing. But I do not see any indication about to how to create a variable of a particular type, or several of them, without placing graphical images on my "front panel" that would not belong there and have nothing to do with what I want to display. I work occasionally with the book "Labview for Everyone", but the book neatly avoids any such discussion. In real life, I find that Labview applications have huge numbers of unwanted screen objects that, for some reason, have to have Front Panel representations and simply cannot be confined to the Block Diagram and the algorithmic basis of the software. With critical software, this is a huge embarrassment and impediment.

 

Can any thing be done to remove the huge amount of clutter?

Many thanks

 

Mark

Child vi cannot disappear when parent vi rolling up

$
0
0

Hello All,

 

I would like to do call control on demand, the approach i use is async call the sub vi and set it as child window

 

however when i try to scroll up the main vi, the child vi seem stuck on the top border

Capture.PNG

 

but it has no problem in bottom or side border

bottom borderbottom border

Saving images to memory and then to hard disk

$
0
0

Hello All,

 

I am working on a system which has some timing constraints while acquiring images (640x512) so as to make faster I need to acquire them in memory but eventually I need to save it on the hard disk.

I have already programmed how to save on memory and disk in separate vi's but don't know how to do it one VI to first acquire in memory and then transfer it in image format(tiff, bmp or png) to the disk.

 

Please let me know.

Thanks

download LV 2017 without NI downloader

$
0
0

I do all downloads of NI packages from a Linux box (don't ask), where I don't think the downloader.exe is going to be functional.

Can't find a direct download link to LabVIEW 2017, like most older stuff has. Is this the way going forward?

 

Initializing Column Size of Array

$
0
0

Hello,

 

I have a comma delimited text file which is initialised into an array using the VI below.

 

The issue is that I have to place additional commas in order to make the array larger to provide additional empty columns.

 

For example:

 

Dog, Cat, Rabbit, , , , 

 

This script provides an array which is 7 columns wide. 

 

Is it possible for the initialization of the array to be formatted automatically with LabVIEW functions without having to use additional commas in the text file to be set to 7 commas?Capture.PNG

Would appreciate any feedback you may have

 

Many Thanks

Value of Application Directory?

$
0
0

Hello All,

 

Capture.PNG

What should i type in the empty path constant so that it serve exactly the same function application directory palette provide?

Constrained non linear optimization in my VI doesn't work.

$
0
0

Hello? everyone,

 

I have tried to make my own optimization program based on a example provided by NI, "Optimization and Calibration with Simulation - Calculate Parameter". The provided optimization program  generates a spring simulation with Gaussian noise and fitting it.

I have tried to apply a complex exponential function to it. However, although there are no errors, the "Optimize" button does not optimize at all(actually graph vibrates a little but, it became original shape). I do not know what the problem is. Please help me.

I attach my optimizer.


Web browser plugin for Window Enterprise 2007 32 bits running IE9

$
0
0

Hi All,

I have a build application and a HTML page created using the web publishing tool in Labview 2016. I have been managing to display the html on other PCs using Internet explorer, but there's one machine where It wont work. The OS for the PC where I want to display the HTML use window enterprise 2007 and it is 32 bits and runs internet explorer version 9. For some reason the HTML I have wont work on that PC, do I need any specific web browser plugin? is there any incompatibility with that OS?  is there any runtime that support window server 2007? if anyone could please help me to find the answer to those questions I would appreciate it. Thanks!   

RGT Excel Import Module VI issues

$
0
0

Hey,

 

I was wondering if someone could help me figure out why there is a difference between the two attached screenshots. The 'Excel Import Module' vi is broken when i open my source code on another computer. Both computers run labview 2010, both have Excel 2016, both have Excel Object Library 16.0. The broken one has Windows 7 and the other Windows 10. Not sure why the data type for VB Object changes between the two computers. Thanks all!

Exporting Clock signal myRIO FPGA

$
0
0

Hello I am trying to generate a clock signal at 32 MHz to send to an external ADC. I came across this example:

https://forums.ni.com/t5/Example-Programs/Three-3-Examples-of-Exporting-a-Clock-Signal-on-an-FPGA-Device/ta-p/3530075

It is straightforward using a Single-cycle timed Loop with derived clock from the on-board oscillator at 40MHz. When I place an I/O node inside (or outside) I have a few minor issues for some reason. 

1) When I right click and click add new FPGA I/O nothing happens. I believe it should show the I/O line that I choose (ex DIO0). I can right click and select a constant and set that to the specific line. 

2) The FPGA I/O node defaults to a read mode, and I am trying to write. When I right click the node, the option to switch to write mode shows up, but when I click on it nothing happens. 

 

The target is added, but I'm not sure what I am missing. I'm sure it's something simple, but I'm stumped. I have attached the project folder. The vi I have been testing is called FPGA_Clock Testing.

 

Thanks for any help.

turn off control description

$
0
0

In an application, I have "description and tip" filled out for various controls such that when the user selects context help a description is available to them if they hover over the control.

 

However I have a string indicator that I want to use solely as a "dynamic label". Basically it is just a label whose string can change. This indicator does not need a description or tip. Is there anyway to turn off the description for a particular control while leaving the other controls' descriptions as is? To put it another way, I do not want context help to respond a particular control.

 

Thanks for your help.

 

regards,

mcduff

Install builder

$
0
0

Hey guys,

 

i'm trying to make my vi a .exe to use it on a pc without labview on it.

For it to work propperly it needs labview visa and ni-488.2 runtimes as shown in the png provided. but when trying to make the installer it cant find the those installer. do you know where these are on the pc or how i can provide the builder with the missing runtimes so it can build the installer?

 

Yours Michael

Viewing all 67022 articles
Browse latest View live


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