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

Video from Webcam

$
0
0

I want to transmit video using universal software defined radio. In my design i am taking video from my pc webcam.  Without universal software defined radio my design is working fine and I can see my video on the video display box (Tx_simple_test.vi). But when I add universal software defined radio VIs then it does not work properly(Tx_universal_software_defined_radio_test.vi). Can any body guide me what is the problem. VIs are attached for your reference. 

 

Thanks.


open file need run as admin

$
0
0

Hello 

in my code there is simle open file .

in labview it works without any problem .

 

when i creat executable file it can't open file but when i run as admin it works fine .

 

 

here wht i have done :

 

1-change built property to run as admin (didn't work).

2- read/write registry data (didn't work).

change manifest .

this is my minifest :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"><assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="NationalInstruments.Installer.MetaInstaller" type="win32"></assemblyIdentity><description>MetaInstaller</description><dependency><dependentAssembly><assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*"></assemblyIdentity></dependentAssembly></dependency><trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"><security><requestedPrivileges><requestedExecutionLevel level="requireAdministrator" uiAccess="false"></requestedExecutionLevel></requestedPrivileges></security></trustInfo><compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"><application><supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"></supportedOS></application></compatibility></assembly>

as you see it's 

<requestedExecutionLevel level="requireAdministrator"

 

but still the program doesn't ask run as admin .

 

what can i do ?

 

Best Regards

filtering a 1D array of data

$
0
0

Hi,

I have already asked a question about my problem quite some time ago, but I figured I had got everything wrong, so i created this new topic:

I have stored the data that I had acquired through DAQ and now I want to filter the data.

Capture.PNG

the data I need to filter is the one entering the BUILD WAVEFORM vi (NVB4 and NVB3 are data from DAQ). the sampling  rate is 10000 and the freq of the signal, of which I stored the data, was 90Hz. yet the output doesn't seem to be right, ( I want to use different LP and BP filters on it). please tell me if you know what i have done wrong.

thanks in advance

PS:I used .txt format to upload the files

timed sequence

$
0
0

Hello every one,

could some one could help me. i dont unterstand the timed sequence on this .vi

Why cant I remote AimTTi TG2511A func. gen. through VISA?

$
0
0

Dear Members,

I bought the named device, and installed the necessary drivers (newer versions) on my 64 bit win7 PC.
There is an example in the VI-s which should work properly but it gives an error.

 

When I try to open the I/O through VISA vi and send an *RST command, the device shows REM on the display, but does not reset itself. So not even VISA and not even the factory examples work..

Can You give any advice, what to try to solve this problem? I keep in touch with the factory, but no any helpful advice yet. They tried it, it works for them.

I think, there is some driver conflicts, or maybe some of them works properly with the older versions.

Thank You a lot!
Zsika

Monitor value change?

$
0
0

Hi ,

 

Someone  can pls advise me?

Attached vi work basically but there is a loophole in one case..

Those share variable from network signal express Thermocouples.. If user close signal express in other pc... in this program value remain as last reading. 

If the user forgot to make write to share variable in signal express the value remain as last reading..

So how to program this vi if the value remain unchanged for certain timing and prompt user to check respective shared variable..

 

Pls help..

 

Thanks and Regards,

Brian

DOWN SAMPLING

$
0
0

Hi everyone

 

I want to downsample the data and then convolve it with match filter. Could someone help me with downsampling . I do not i should use resample or something else.

 

Thank you for your help

Error in MemoryManager.cpp

$
0
0

Hello

 

I build my application that continuously measures temperature from 4 thermal cameras and monitors if the temperature limit is not exceeded.I am writing to a file only when the camera is calibrated and when the limits were exceeded, but I did it also in old code that seamlessly work. What exactly is happening before the program crashes do not know because I do not watch the monitor for a few hours every second until it falls. But it should not happen nothing unusual because the cameras stare at a constant temperature.

 

I registred issue in MemoryManager.cpp. But in development environment Labview I dont register any problems or errors.

 

Error.jpg

 

 

This issue have been appeared after few hours and I dont know where is the problem. I tried switched off firewall and antivir but it doesnt help.

Please have anyone any idea where can be problem?

 

Best Regards

Petr Vavra


Weird behaviour with inlined SubVI's

$
0
0

Every now and then I've ran into some serious weird behaviour where I've eventually traced it down to some inlined subVI. It has seemed as if the values used inside the inlined subVI don't match what the calling VI is feeding into its inputs. I haven't been able to consistently reproduce this issue so I apologize for the vague description, but since I felt I should finally address this and I couldn't really find anything similar by searching, I'll do my best to describe it and we'll see what turns up.

 

As I mentioned, the issue certainly doesn't occur consistently. I use inlined subVI here and there and most of the time there are no problems whatsoever. I ran into the issues randomly I think four times now, first three of them were on LV2013 and this last time on LV2014. In all cases I have been using AF and I think the first times were actually with an actor class. At the time I thought it might have been related to the AF, and it still might, but now the last time it wasn't the actor class itself but a data member of one. So far all of the problems have occured with class methods, and I think the "corrupt values" have been the object private data, but I can't confirm this.

 

This time the inlined subVI was a static dispatch method with contents shown below on the left and the calling on the right.

inline_subvi.pngcalling_vi.png

I'm showing the calling just to point out that when I was investigating the problem and I probed the object wires before and after the inlined subVI the values (Calibration.X Step and Calibration.Y Step) were OK, but the result of the VI (Point out) was some insane value as if the actual division inside was performed by corrupt data. I think that the output value wasn't Inf, though, so the divider might not have been a default value such as 0.

 

Other notes:

  • I checked that the wires are connected to the inputs and outputs
  • As I mentioned, the projects have always been relatively large AF setups, the problematic method has been an actor method or a method called by an actor somewhere down the chain. I have no reason to assume AF is the culprit, I'm just pointing this out, just in case
  • The problem seems to occur quite randomly but once it "starts" it doesn't go away until I find which inlined subVI it was and change it to a normal VI call
  • The problem might not even be specifically inlined subVI related but for example pre-allocated VI related instead
  • I don't know whether the problem would occur in a built executable as well, so far I've only ran into them while testing while developing and fixed them there
  • Looking at the "Known Issues" related to inlined subVI's I don't know if this related to them. The other one deals with execution systems, which I haven't touched to my knowledge, and the other one says "An Inline public methodVI calling a private-scope method VI, inlined into a non-class caller may give a runtime error when trying to call the private method from the inlined code in the non-class caller."
  • LabVIEW version is 14.0.1 (2014 SP1 32bit) on Windows 8.1

Yep, reading through this post I gotta say I'm not expecting much, what a mess, but it would be great to find out if anyone else has ever ran into similar problems or has a clue what's going here.

How can i verify the licenced addons/ toolkits installed in Controls palette LabVIEW Environment?

$
0
0


Hello ALL,

I have licence for student install version of LABVIEW. I am new to the LabVIEW.
I have installed licence LabVIEW Digital Filter Design Toolkit in my laptop. But i am unable to find the digital filter options under signal processing of the Controls palette. Its not there despite of installation. I have checked in the NI licence Manager it says Digital filter design toolkit has been activated for this computer.
Can someone please help to locate the digital filter options from that particular toolkit? How can i verify the functions in control palette for the toolkit i have installed?

Thank you

Ihave the licnece fot the following Content:
LabVIEW Student Development Environment
LabVIEW Toolkit for LEGO MINDSTORMS NXT
LabVIEW Control Design and Simulation Module (Installed)
LabVIEW MathScript RT Module
LabVIEW System Identification Toolkit
LabVIEW Digital Filter Design Toolkit (Installed)
LabVIEW Modulation Toolkit
LabVIEW SignalExpress
NI Vision Development Module
NI Vision Acquisition Software
NI DIAdem Student Edition (Installed)
NI LabVIEW Real-Time Module (Installed)
NI LabVIEW FPGA Module (Installed)
LabVIEW Database and Supervisory Control Module
LabVIEW Mobile Module
LabVIEW PID and Fuzzy Logic Toolkit
LabVIEW Robotics Module
LabvIEW Simulation Interface Toolkit
LabVIEW SoftMotion
LabVIEW Statechart Module
Motion Control and Motion Assistant

I need some help to control isel C 142-4 controller with Labview

$
0
0

I need some help
I have a C142-4 ISEL controller and i need to control with Labview via a serial port. I am a beginner with Labview
Could you please send me any help
Thanks in advance
Michael

Running a LabVIEW app on a MAC yosemite without LabVIEW

$
0
0

Hello all !

 

When you compile LabVIEW codes on a Mac, you create a ".app" instead of a ".exe". I would like to run my ".app" on another Mac running with Yosemite (OSX 10.10) and without LabVIEW on it.

 

I downloaded the latest RunTime Engine for LabVIEW on that Mac in order to make the application run but it does not seem to work ...

Has anyone already done such a thing and would have a method to follow ? :-)

 

Thank you in advance !

pci 4472 external trigger

$
0
0

Dear all,

 

I have PCI 4472 card. I want to trigger this card using analog voltage from external source. I have referred to the example " ...Acquire voltage..Int clk_Start analog edge" ... I have been able to self trigger the signal. When I connect another physical channel, I could see both the signal together. But, I have following problems:-

i) I want to see signal of one voltage channel ( sinusoidal one) and not  the trigger voltage channel (pulse one). How should I achieve it? Actually, when I use the Vi Analog 1D Wfm N channel N sample, it show the waveform of both the trigger voltage channel and the other one. I need to see the FFT of sinusoidal one without the FFT of pulse one.....

ii) I want to use this trigger to run a timed loop. Is it possible to achieve this with this card? Moreover, I want to acquire data after some delay time from the zero crossing of trigger. Is it possible to achieve it?

 

I am new in this Labview thing... Please pardon me if it is too silly......Thanks in advance for the reply.....

 

timed button

$
0
0

Hi,

 

My application is to give the Operator a visual indication of time elased after pressing one of a number of buttons.

 

To give an idea of what I am after, the sample vi attached has this working for the top 2 buttons with a timing of 5 seconds. I've placed the buttons on top of the slide indicators, and made the button's true state transparent. I know this could be displayed many ways - a digital or analog clock, an LED - but how it is displayed is not the problem.

 

My intention is to extend this to (at least) 24 buttons, with a timing of 2 hours. I could just extend the page downwards and include all 24 buttons with their own references, shift registers and event cases and make the sub-vi reentrant but I'm sure that's not the way to do this.

 

So, how can I achieve this neatly and make it scalable to include any number of buttons?

 

 

Thanks.

 

 

Front Panel.png

 

 

Timer.png

state machine

$
0
0

Hello,

I am relatively new to Labview and have a problem with state machine.

I have a state machine which executes a vi when one button is pressed and executes another vi when a second other button is pressed. Both vi contain motions sequence for stepper motors.

The problem I have is that when I press the second button after having pressed the first one, the vi corresponding to the second button won't execute until the first vi ends. I need to be able to switch from one motion sequence to the other even if their execution is not complete. How do I do that and can you please provide an example?

Thanks a lot

 


Labview interface for Arduino Failed

$
0
0

Hi

 

I bought Arduino Mega 2560. I want to interface labview with arduino. I have installed Arduino IDE 1.7.3. I am using Windows 7 64bit version and Labview 2012. When I tried to compile LIFA_Base File with Arduino IDE there is the following error: 

 

C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\IRremoteTools.cpp:5:16: error: 'TKD2' was not declared in this scope
int RECV_PIN = TKD2; // the pin the IR receiver is connected to
^
Error compiling.

 

 

 

I tried to delete the folder   C:\Program Files (x86)\Arduino\libraries\RobotIRremote but without success.

 

Please help me to resolve the problem.

 

Regards

 

communicating version advancement Information to users

$
0
0

Hello people,..i have seen that with many applications written in other languages,everytime you open them you are informed of the availability of a new version of the application(if available),,what would be the smartest way to do this using labview vis,in otherwords what is the best way to communicate version advancement information to  users of a given application without using emails or anything of that kind?Thank you.

Variant to data type conversion

$
0
0

Hi All,

 

I am using VI Scripting in LabVIEW 2010. I am in need of finding out the datatype of the wire connected to a terminal. Wire terminal reference gives a property called "Datatype". I believed this will help me out. But this is a variant and how do i actually convert it to data to find out the datatype. I do specifically want to make use of cluster datatype. How to find out whether the wire is of cluster type?

 

Thanks for any help.

How to modify pulse script to include current control and data save

$
0
0

I have a Keithley 2611 connected to LabView 2014, the driver works and I'm using one of the factory scripts (attached) to generate a continuous pulse. My question is how can I modify this to

1) include the option of controlling current and measuring voltage as well (right not it only controls votlage)?

2) include the ability to set an off value for the voltage or current (meaning it will be set it to a certain value and not just zero).

3) I extract time vs voltage or current data to make a graph using excel.

 

I'm fairly new to this program so sorry if this sounds like a silly question! Any help is appreciated. 

HELP NEEDED ASAP 'Error -1967362038' while trying to create bound variables for Modbus Communication

$
0
0

Hello,

 

I am a student currently employed by my college, which has purchased both the 2012 academic site license, and the 2014 academic site license for Labview which include the Real-Time module, as well as the DSC module,etc. I am currently trying to communicate with a Do-More H2 series PLC via Modbus, but run into an unknown error when trying to create bound variables. Our Do-More PLC is connected to our network via ethernet switch, and I can ping the IP address and get a response, so I know that there is communication to the PC. I have also tried using the SimplyModbus tester and can verify that values read properly, giving me the impression that it's not a hardware issue.

 

The error occurs while trying to set up variables within labview. I am Currently working on the 2012 version, however the same error occurs in the 2013 SP1 version as well. The NI License Manager licenses folder has been renamed to 'licenses_old' in order to get licensing from our server rather than the local machine. I'll run through the steps that cause the error:

 

1. Create a blank new project in Labview

2. Right click on 'My Computer' and add a new Modbus I/O server

3. Select Modbus Ethernet, enter the appropriate IP address, and hit OK to create the library

4. Right click on 'Modbus1' under the new library, and select 'Create Bound Variables'

5. Under 'Browse Source' I can hit the drop down boxes Project: Untitled Project 1 > My Computer > Untitled Library 1, but when I select the drop down box for Modbus1, The following error message appears:

 

"Error -1967362038 occurred at

MND_offlineBrowse.vi 

Possible reason(s):

IAK_SHARED: (Hex 0x8ABC700A) Not found."

 

The Shared Variable Engine started properly, and has been reset with no change to the error.

 

I've also tried to run the Modbus Simulator example VI, rather than connect to the PLC, however the simulator can't run due to errors. The error that shows up is "NI_DSC.lvlib, The Labview DSC Module Support Library is expired or invalidly licensed." I don't know why it wouldn't be licensed, as the academic site license comes with the DSC Module. Any help would be greatly appreciated!

Viewing all 67408 articles
Browse latest View live


Latest Images

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