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

Windows Media Player auto resize issue

$
0
0

Hi Guys,

 

I have searched the forum and other parts of the internet for a solution for an annoying problem with the ActiveX version of Windows Media Player (WMP).
If you embed WMP in the front panel and give the control a certain size, e.g. 800x600 and play a video with different dimensions (e.g. 320x240) the control will resize automatically.
The only 'workaround' I found is to regularly (every 50 ms or so) use a property node to resize the WMP-control.
I have attached an example of the problem below.

 

Apparently I'm not alone as there are more people having the same issue and it's still present in LabVIEW 2016. A couple of threads in this forum:

 

http://forums.ni.com/t5/LabVIEW/windows-media-player-resizing-issue/m-p/3321498
http://forums.ni.com/t5/LabVIEW/Windows-Media-Player-size/td-p/1310251/page/2

And one from Stackoverflow: http://stackoverflow.com/questions/3731828/why-my-embedded-video-resizes-automatically

 

However, after all these years nobody has found a working solution yet. So my questions are:

 

- Is there a solution for the WMP resize problem in LabVIEW?
- Has anybody ever tried an alternative embedded video player (ActiveX or .NET) that supports streaming video?

 

I have tried to get Viscomsoft Movie Player (http://www.viscomsoft.com/products/movieplayer) to work, but I couldn't even find the ActiveX control in LabVIEW.
The X360 Multiple Video Player (http://www.x360soft.com/products/multivideoplayer/) has a virus according to my scanner?!
The VisioForge Media Player (https://www.visioforge.com/media-player-sdk.html) does work for video files that are stored locally, but I couldn't get streaming to work since the documentation is very minimalistic.

 

Thank you very much for your help.

 

Paul

Windows Media Player auto resize problem


Send an email at a specific time with data

$
0
0

Hello everyone, I hope I'm posting in the right forum. 

 

I'm very new to LabView but I'm picking up quicky. 

Where I work they have a very complicated VI, it does have an emailer setup that when a tests fualts for low current or overtemp the VI will send out an email as to what rig faulted and at what time and the fault. 
I've been tasked with having these VI's send out an "update" email every morning at 8am, or whatever time I determine. 

Basically the email will contain,

-part number

-current test duration time

-temp...etc

 

I'm assuming I can make a while loop around the entire VI? What do I use to initalize an email at a specific time? 

 

I'm sure this is a newbie question, so for that I apoligize! 

 

Thank you for all your help!

 

Ryan

 

LabVEW 2016 (64-bit) installation failed due to "NI LabWindows/CVI 2013 Analysis Library (64-bit)" installation failure

$
0
0

Hello,

Hello;

I'm having a terrible time trying to install LabVIEW on my laptop. I have a
Lenovo laptop with a Windows 7 64bit OS and Ubuntu 14.04.3LTS dual booted onto it. I
was able to get seemingly all of the installation completed except two parts. I included screencaptures of the windows showing the failure messages. If I say no when asked "Continue?" to the "error" window, it goes directly to "The NI LabVIEW 2016 (64-bit) installatiuon has failed" window. If I instead press Yes, it brings up the "Install Hardware Support.." window where I have the option to Install or decline support. Unfortunately, I'm unable to select "Install Support" and I don't seem to have the folder that will satisfy the message stating "The specified folder...crrect volume." Therefore, my only option is to select "Decline Support", which again takes me to "The NI LabVIEW 2016 (64-bit) installatiuon has failed" window. Have any of you encountered this problem in the past and do you know of a way around it?

Thank you,
Noisy Jeremy

NI Software: NI LabVIEW 2016 (64-bit)
Computer: Lenovo ThinkPad W530
Processor: intel i7-3720QM CPU @ 2.6 GHz
RAM: 8 GB

OS: Windows 7 (64-bit),

       dual booted with Ubuntu 14.04.3LTS

Waveforms have different dt values

$
0
0

Hello,

 

I am new to LabVIEW and I'm buliding the piano stairs that AshLu posted on the community but I am having problems with the code ( https://decibel.ni.com/content/docs/DOC-12384 ). When I use my own .wav files for each step sound I get error:

Error -1802 occurred at Add in PlayNote8.vi:4570001->MyDAQ8.vi

Possible reason(s):

LabVIEW: (Hex 0xFFFFF8F6) Waveforms have different dt values.

 

The VI is attached at the bottom.

 Any help would be appreciated.

Thanks

Continous loop of selecting a File Image problem

$
0
0

Hi. I have a VI here that has a problem. Everytime I execute the program and hit the load image button, it loops infinitely and I can't fix that problem. Can you please help me to modify my code to fix the problem? Thanks.

3D-Machine Vision Library from ImagingLabs

$
0
0

Hi,

 

I am trying to use 3D-Machine vision Library from ImagingLabs for constructing a 3D Image from 3D Line Scan Laser. While viewing its sample application, 3D viewer control could not be loaded. I am using

OS : Windows 7

Labview 2016

Can anyone help me out with the reason for this?

Numeric control field: different display format, different behaviour

$
0
0

Hi all,

I noticed a different behaviour of numeric control field. I explain:

I have two numeric controls (DBL) whose Display format is set almost in the same way:

 

Control 1: Display format: %.1f mm/s -> data is shown like this: 3,1 mm/s

Control 2: Display format: %.1f °C -> data is shown like this: 3,1 °C

 

 

If I type a number 12,3 (not with unit of measurement) in the control, data is accepted in both controls:

Inserted value: 12,3

Control 1 shows 12,3 mm/s

Controls 2 shows 12,3 °C

 

If I type <number><space><unit>, data is accepted:

Inserted value: 12,3 mm/s -> Control 1 shows 12,3 mm/s

Inserted value: 12,3 °C -> Control 2 shows 12,3 °C

 

The problem is when I type <number><unit> (without space), data is accepted by Control2 and refused by Control1:

Inserted value: 12,3mm/s -> Control 1 refuses value and show the previous value

Inserted value: 12,3°C -> Data is accepted and Control 2 shows 12,3 °C.

 

I think that the problem is the slash character (/) in the unit.

Do you have any workaround for this issue?

 

Calling a SubVI without halting execution of main thread

$
0
0

Greetings everyone, I would like to do a rather simple demonstration VI, that opens a menu where user can call a few VIs, signal generation, signal reading and graph analysis, each contained into a SubVI and with their own front panel and controls. The idea is user can just click a button and the required SubVI will load, I am using an event structure for ease.

 

Problem is, after I open any option, said SubVI hogs the execution thread, and doesn't allow for further instances until it's closed (it's inside a while loop so it makes sense I guess), the events queue and next front panel loads only after I stop the SubVI. I would like to be able to just open the front panels and let them run in parallel, without them waiting for another to finish, is this possible?


IMAQ Interface Name

$
0
0

I can use "IMAQdx Open Camera.vi" and "IMAQdx Enumerate Attributes.vi" to get the attribute names for my camera.

I want to be able to get & set the camera attributes.  The functions "IMAQ Get Camera Attribute.vi" and ""IMAQ Set Camera Attribute.vi" require a "IMAQ Session In" but I can't figure out how to get an IMAQ session for the camera.  The function "IMAQ Init.vi" outputs an IMAQ Session, but it requires an "Interface Name" input, and I can't figure out what the interface name is for my camera.cam.png

Instrument Driver Management

$
0
0

Hi all,

 

I use Labview 2013 and later to drive various lab instruments including power supplies, multimeters, signal generators etc. The Labview drivers can be found on NI's or vendor's website. However, since I use a lot of different instruments, how can I get the latest driver in a better fashion than go to the websites and check constantly?

Is there something like JKI for instrument drivers?

 

Thanks for letting me know.

Generic File I/O Path Too Long RT Deploy

$
0
0

So I've been fighting with this setup and having errors on deploying code to an embedded RT target.  I have a cDAQ-9132 running RT Linux and I've found that if my path is too long it will give strange errors.  Sometimes the error will be on opening the project giving "Generic File I/O" but the VI opens without error.  And sometimes I see "loaded with errors on the target and was closed" on the deploy.

 

The path to the reuse code in the user.lib is similar to the following:

 

C:\Program Files (x86)\National Instruments\LabVIEW 2015\user.lib\_xxxxxxx\Automotive Communication\CAN Drivers\Generic CAN Drivers\CAN Class\Public\Signal Conversion\Read Signals Polymorphics\Read Signals - Single Sample_xxxxxxx.vi

 

Which is 233 characters including slashes and colons which is under the Windows limitation of 260 (or 255).

 

Attached is an example of this.  Unzip the user.lib zip in the user.lib, and then open the RT Test Project.  In it is an RT target but opening just the RT Test VI.vi should show the Generic File I/O error and the VI appears missing on the BD.  If you then open the Read Signals - Single Sample_xxxxxxx.vi the VI loads without error and the top level VI can be ran without error now.

 

I have not seen it documented anywhere, but is there a file length limitation that is causing this issue?  Is there a document stating how deep into the user.lib reuse can be?  I realize my paths were getting a bit long but also noticed Windows length hadn't been surpassed yet.  And is it possible that if this limtiation exists, that we get a bit more helpful of an error?  Thanks.

 

Windows 7 x64, LabVIEW 2015 32-bit.

LabVIEW real time Data HTML

$
0
0

Dear Frds,

 

 

I collected the data from the NI USB DAQ card . Now I want to communicate to the Data to my OWN UI design .The UI design i made in HMTL page . so now how to communicate the data from the HTML UI to LabVIEW

Error -1074395397 occurred at IMAQ InverseFFT

$
0
0

I have a problem in my VI. I can't get an image result after pressing the button for IFFT even though I initialized it as a complex image. Still it says in the error that it requires a complex image. Thanks for helping. 

Direct DMA support for 5673E

$
0
0

Hi All,

 

I am trying to implement transferring waveform data to the NI RF signal generator onboard memory using direct DMA feature.  I tried to follow instructions from this link:

 

http://zone.ni.com/reference/en-XX/help/371025M-01/rfsg/configuring_your_application_for_direct_dma/

 

but I got stuck. I am not sure what I should connect to  Direct DMA Window Address property and  Direct DMA Window Size property. I generated 1D array of complex samples which represents my custom waveform but the size of the waveform in some cases is very large(hundreds of MBs) and the process of writting samples to on board memory is very slow and I think that the direct DMA can speed up the process.

 

Is there any example of direct DMA implementation using RFSG blocks?

 

Thank you in advance

 

Multiple vi DAQmx

$
0
0

Hello!

 

I am fairly new to the LabView programming, so I have a bit of dillema, that I hope could be solved here.

 

We purchased NI PCI 6281 card for our lab measurements and we would like to make three .vi-s for three instruments - temperature controller, pressure controler and LVDT.

 

So far I wasn't succesfull in multiple vi-s. When I run the second one program crashes, presumably because card is busy with first vi.

I know there are several solutions, including cramming everything into single .vi, but I would appreciate suggestions about doing it with multiple vi-s for simplicity of the end user.

Could you suggest how should I do it? ActiveX, Events?


Error -1074396120 occurred at IMAQ FFT

$
0
0

Hi. I'm new here. I have attached a VI file here that has an error once I try to filter my loaded image. The error occurs on IMAQ FFT and it says, it requires an image. Can you please help? Thanks.

Error -200479 start task for all the DAQmx resources

$
0
0

Hello,

 

I need to use all the DAQ resources for my application, that means I need to initialize all the Digital Input/Output and Analog Input/Output channels. To do this, I'm using 4 different tasks, one for each type, each task is configuring their respective channels (not mixing analog/digital or input/output) but I´m getting the error -200479 in the probe 53 (from the image) which is configuring the digital inputs only.

Possible reason(s):

Specified operation cannot be performed while the task is running.

 

I don´t have any errors before the initialization, and when I disable the Analog Input task, I don´t have erros at all, so I´m wondering how can I start all the tasks simultaneosly? I tried mixing the inputs Analog and Digital, but it throws errors because it can´t be configure in the same task.

 

I appreciate any advice that you can give me about this issue.

 

Thanks,

Karla

Remainder quotient vi - Did i find abug or am I missing something

$
0
0

Can anyone confirm if the remainder quotient vi works well in Labview 2015 64-bit. For example When I divide 2 by 1, I expect my quotient to be 2 and my remainder zero. Apparently it behaves the reverse. Quotient is zero and remainder is 2???

UDP Connection cRIO 9031

$
0
0

Hi,

Does anyone know if a cRIO 9031 can be set to read a UDP port? I have set my cRIO as a FPGA and I do not see the UDP Connection function anywhere. I have scoured through and haven't found any examples either.Attached is the imge of the faults. Do I need any additional software installed in Labview. I am using LabView 2015 SP1

 

Any help is appreciated.

Generate Finite Analog Output Waveform on Demand

$
0
0

Hello.

I have a VI that reads in two channels of data (400 samples @ 400 Hz), computes features, and classifies the data based on a model.  If the class is a certain state, a boolean called "Detection" is set to True.  A second Boolean called "Stimulation" is also set to true, and flip-flops on and off every second until the "Detection" is no longer true.  Since I am reading and classifying one second of data, the booleans can only be updated once per second.  I am wanting to generate an analog output while the "Stimulation" boolean is true.  I had been accomplishing this by continuously generating a sine wave and writing it to a buffer in a separate loop (500 samples per write @ 10kHz), and multiplying it by zeros if "Stimulation" was false.  I have a code that more-or-less does what I want, but there is a ~200ms delay between "Stimulation" being set to True and AO generation, and I feel like it could be simplified.  I was wondering if it would be better to generate a finite waveform and trigger it to be written with the "Stimulation" boolean (i.e. write 1-second of a sine wave upon the state changing rather than writing 20 sections of a sine wave in a second while the boolean is True).  

 

Is there a good way to this with the daqmx functions? (Generate a set duration waveform when a control changes)

Viewing all 66961 articles
Browse latest View live


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