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

Mathematical integration problem

$
0
0

Hello everyone,

 

Here is one VI I am working on... it is a Powermeter instrument which measures power via photodiode sensor. The instrument itself is set to measure power at 1 wavelength. I made the VI to sample a whole wavelengths range, with a certain step, and than integrate all the values of the measured power into one. This way I can include the visible wavelengts component into the final value of the measured power.

 

However, when measuring, after integration, I get different values depending on the sampling step. This can not be true, since I am measuring in one and the same wavelength range, and changing the step (measurements for every 10 or 50 nanometers) should not affect the final result. I think the problem is in the method of intergration. Is someone familiar with the mathematical integration, or the integration VIs in the Full version of LabView? Can someone suggest me maybe another integration VI? Or maybe a different method. I will be much thankful! 

 

Best regards,

 

G.


MSI Installer

$
0
0

My company uses a piece of software that has been developed using LabVIEW to communicate with one of our products. It was compiled using the application builder and we have never had anyone raise an issue with it.

 

I have just received an email from the I.T. department saying that they would like the installer changed. Does anybody know if their request is possible?

 

"The bit I would like to request your assistance with is our ****** software.  Although I am sure this software works well, our issue is the way it has to be installed.  It requires administrative rights and it appears to be (and I am not a developer) poorly compiled as although it is an MSI, it does not conform to industry standards and allow us to use any of the standard switches (i.e. for quiet install or returning information to SCCM).  This means that we cannot package the software and make it available (both inside and outside the ***** network) via System Centre, which would make it available to all users.  A well complied MSI file is the industry standard so I would assume that this would benefit our customers as well as our staff??"

 

Multitask DAQmx

$
0
0

Hello,

I'm working in this code but I have some problems. In this project, I'm acquiring two  analog signals (this signals are the same). My objective is  record  all the samples in a channel and the another channel that is the same signal I  want to record the samples when there is an postrigger.

Depends on number of  the samples,  the program execute 'Record all the samples' or 'Postrigger Samples' but  I want to execute both at the same time

My question will be. How could Record all the samples and Postigger samples execute at the same time? 

Any answer will be helpful.

Thank you so much.
Pedro

Re: convert hex string to number

$
0
0

Good Afternoon;

I am trying to do the same thing.  I am reading 8 bytes of data from a modbus gateway.

I grab the substring that I am interested in....if I set the display to normal the reading is non printable.....set to hex display the reading is 3098 should be decimal 12440 I believe?

This feels like I am close but not quite.............

 

XNET Read CAN Frame

$
0
0

Hey guys,

 

I'm working on a project using a NI cDAQ 9034 chassis and NI 9862 CAN module to communicate with my frequency inverter, which uses the CANopen protocol.

 

Using the examples given by NI I was able to send SDO's using a (Frame) Stream Output Session.

 

My inverter sends its status word once every 250ms with the identifier 0x1A0 and the answer to my parameter communication SDO with the identifier 0x5A0 a 100ms after sending the SDO.

It also sends some current data every 5ms with the identifier 0x520.

 

Also using the examples, I have managed to read the data sent from my inverter as a (Frame) Stream Input Session.

The problem I am facing now is that my input session reads the data from every identifier. My front panel mostly shows the data sent over ID 0x520 since it has the highest frequency, but it 'flickers' when the other data is being read and you can see that the values change for a split second.

 

How can I read the data sent over each ID seperately so that I can further work with it and save it?

 

 

Thanks in advance for any help!

Event Node is empty

$
0
0

I have an event structure that was originally fine. However I had to change some things so I ended up deleting some clusters and creating and rewrining. It has all been rewired the same just a new cluster, but it still says the Event Node is empty and that the structure contains bad wiring or is unwired. Any possible reasons I could still be getting this error?

LV 2012 SP1 F5 excutable crashes whole system

$
0
0

Hi All,

 

 

I am facing a really strange problem. i developled an executable using LV 2012 SP1 F5. Now on two of my windows 7 system the application works perfectly fine but recently I got a new PC(in our factory) and on this new PC it doenst work. And I am not clear what the problem is.

 

What happens is that when i run the application everything works and there are no problems. but as soon as I start comunicating with my Digital and Analog cards , for the first three times the programs runs but at the third time the program hangs and also the whole windows system hangs as well till I restart the PC manually.  and the frustrating part is I donot get any error pop up or anything. I also tried using remote degugger option of whats going on but still i dont seem to find out why the first three times the program runs and then it just hangs. My last option is to install LV on the pc and run the application in debugger mode but before doing that I would like to know how else can I find out in an executable whats causing it not jsut to hand the executable but also the whole windows 7 system.

 

jsut as a small note its not a memory leak problem. this I am sure of.

 

Thanks.

 

 

Call Database Data in a file .ini

$
0
0

Hello,

 

I just wanted to know if it is possible to do something like:

 

[1633] //Assembly Part Number

 

CURRENT1_SEARCHED=(The value in the database, at table X, column X, case X)

CURRENT2_SEARCHED=(The value in the database, at table Y, column Y, case Y)

 

Nothing more, I am looking for it to test the card, and if they want to change the "test current" like "after 10 test calculate an average and put it in database" it can be a problem to change the value manually... I did all the code except this part so I hope it is possible haha.

 

Oh and I have to attach a Sub-VI, please say me if there is no other way than use 2 .ini file in this conditions. That's not really important anyway.

 

Bets Regards,

Robin.


timing problem highligth modus work

Force vi to open compiled version of LabVIEW (not last used version)

$
0
0

I have a programming computer that has several versions of LabVIEW installed.  Once I finish a program, I move the program to the "target" computer (or touch screen) that have only one version installed. 

The problem I have is when I run a VI, the VI always loads the version of LabVIEW that was used last.  When the VI is saved, it compiles to that version and will no longer work on the "target" computer.   

It seems that saving for a previous version of LabVIEW does not always work (it may be related to going from Win 7 to Win XP). 

Is there a way to force the VI to open the version of LabVIEW that the VI was compiled with?

FireWire Camera with IMAQ

$
0
0

I have the task of setting up a PC to run a scanner system that includes a FireWire camera (FireFly MV FFMV-03M2M).

The LabVIEW application executable was developed in LabVIEW 8.6, with Vision 2009.

I installed the firewire card and connected power from internal PC supply.

I started with a clean install of Win7 Pro x86, the PC autodetected the firewire card and found a driver.

I can see the firewire card and the camera in device manager.

I right-clicked the camera in device manager and searched for updates, the driver was updated.

I Installed LabVIEW Run-Time Engine 8.6 "lvrte861min" and installed Run-Time patch f5 "LV861f5patch", Restarted PC.
Installed LabVIEW Vision NI-MAQ 2009 driver "VAS2009.zip".

The camera is visible in MAX, I can grab frames in MAX.  The source code has default cam1 in camera reference box, so I've renamed the camera in MAX to "cam1", it was cam0.

When I run the application, it does not grab frames.  I receive the error message "IMAQdx Get Image, timeout".

 

What other settings may be required on the PC to allow the LabVIEW executable to run?  We've been using the executable on another PC for 4 years, so there's no issue with the execuatble.  I have annual paid up SSP.

 

I notice there are .icd files in the executable data folder, they have camera attributes inside.  Is is possible these must be manually imported?  The import wizard in MAX does not like .icd.

How to create a matrix with variables

$
0
0

I have 12 double variables (not an array) and I wanted to put them all in a 4 by 3 matrix. I was trying to use the Build Matrix function but I could not figure out how I would define which variable would be in each position of the matrix.

Is there a vi that can play video?

$
0
0

Hi

 

I am trying to play videos in Windows 10. I was wondering what vi plays video in Windows 10?

 

 

 

Thanks. 

Managing Large number of controls and indicators

$
0
0

Working on a test bench for doing some device characterization. There are 16 devices that are being tested at the same time with 15 front panel items for each. The front panel items are a 50/50 mix of controls for configuring VISA resource, and indicators with runtime data and test stats; all this totalling 240 items that need to be dealt with on the block diagram. I want to stay away from arrays for the front ppanel items as it creates UI organizational issues. Can someone suggest some methiods of handling this large number of items cleanly in the VI block diagram?

PXI 6229 - Synchronizing Digital Pulsed Outputs

$
0
0

Hello, I would like to use the PXI 6229 to setup 3 Digital Pulsed Outputs (Square Waves) with the same frequency.  

 

I would like each digital output to be shifted in time from one another by  50 ms.  Is this possible using the LabVIEW DAQmx support?

 

Thanks so much!


Project properties: Separate Compiled code?

$
0
0

I'm refactoring some code from LabVIEW 8.5 to LabVIEW 2013 SP1 with the intent of creating an executable with an installer.

I tried to create an executable from my project and when I ran it I got a bunch of Error code 59: The source file's compiled code has been seperated, and this version of LabVIEW does not have access to seperated compiled code. It turns out that for many of the NI RGT and Office toolkit vi's the checkmark is set by default to seperate the compiled code. 

 

The question is that if I unset the checkmark in the project properties window will this carry over to the subvi's in the project or must I unset the checkmark for every vi used in the project? If I click on the 'Mark Existing Items...' button and set the status to unmarked (the file uses the closed folder glyph) will that perform the needed action of including compiled code for every vi in the project?

 

 

Spawn graphics on a separate window, on demand

$
0
0

Greetings everyone, what I want to do, is (due to user request), show three (possibly more) waveform charts on a separate window, but only when user requests them, so they don't obstruct visibility of the main VI and honestly, I'm lost at even where to start. They would have to be summoned by a boolean button or something like that, show up in a different window (dialog style VI or the such) and stay there until user closes the window, while not interrupting execution of main code. Now the tricky part is, they would have to be constantly updating, so the chart shows the histogram of the past few seconds like it does right now as an always visible (albeit, tabbed) indicator, what would be the best way to do this? Could anyone please point me to examples that do something like that, or what function or SubVi style should I use? Thanks in advance.

time tdms

$
0
0

Hello,

 

I am writing a script that uses a DAQmx function to take in voltage data, then writes the data to a TDMS file. I have a running elapsed time header as well. I would like to write an additional channel keeping the running time for each sample, but do not know how. Can someone help me?

 

 

Thanks,

 

Mmoon

LabView: I am unable to extend evaluation period

$
0
0

This is LabView 2014 Version 14.0.1f3 (32 Bit).  [Edit] And running on Windows 7 Pro 64 bit SP 1 on Intel Core I7 and 16GB Ram

 

I downloaded via LabView Maker Hub and installed no problem.  There is a default 7 day evaluation period and an offer to extend the evaluation period to 45 days when LabView initially starts up.

 

I answer Yes to the prompt which launches a NI Evaluation Wizard.  I'm asked to log in with NI user account and password which I do.  The next panel asks me to enter personal and company information, name and address basically, and I do that also filling in all the required fields.

 

But when I hit Next from this panel it displays "Attention: Errors were found while processing your form. Please make the changes below"

 

But there are no errors indicated on the form.  Nothing red or highlighted or flagged in any way.  All the information is valid and all required fields completed.  The only empty field is the second address line which is optional.  I get the same result even when I fill in that field.  I searched the forum for this error message but no luck.

 

I think I am stuck.  If I cancel the wizard LabView does start up just fine.  I hope someone can help me get past this hiccup before my 7 days are up.

 

Many thanks!

Save as with "open additional copy"

$
0
0

Just a little annoying problem, someone might know a trick or a workaround...

Scenario: I have a project or a lvlib. I have some VIs already in the project. I would like to quickly create a new subVI based on an existing one (new feature, but with small differences). So I just open up an existing subVI, and I go to "Save as" option. I chose the option "Open additional copy" plus the "Add copy to project or lvlib". I get the new VI under new name, and I can work with it: modify it and change its icon. However, the original subVI which I opened first, stays open. This procedure is repeated during coding very often, so it is a bit annoying that I have to manually close the original VIs not to clog my screen with opened FPs...

Any workaround? Thanks!

 

save_as.png

Viewing all 69285 articles
Browse latest View live


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