Jump to content

aka

Members
  • Posts

    15
  • Joined

  • Last visited

    Never

Posts posted by aka

  1. QUOTE(tnt @ Dec 3 2007, 09:24 AM)

    Hi Alex,

    the delay you are using adds up to the time LV needs to read (and draw) the frame,

    so it is better to use the metronome (Wait Until Next ms Multiple).

    As far as I understand your last test, 25 frames/sec is the fastest speed you can process your frames,

    if you want to go faster, for e.g. an avi with a framerate of 50 fps, you could set the fps to 25

    and the skip every other frame to keek the timing intact.

    Good luck,

    TNT

    thanks for the reply,

    i understand that i'm adding an extra delay but its purpose is to automatically detect and display the correct number of frames/sec. reducing this delay should as you say make it faster but then i will not be showing the video at the correct speed (meaning the speed of the real event that was recorded). also i guess that the time labview takes to read , display and delete each frame should be less than a millisecond.

    alex

  2. QUOTE(MikaelH @ Nov 18 2007, 09:46 PM)

    thanks for the reply,

    i tried using the Windows Media Player and the problem i'm having is that the playback is not very smooth, it kind of 'jumps' frames while it is loading the .avi . i dont think this is a labview problem because i have the exact same behaviour when opening the same .avi with windows media player running as an independent application. with other programs like DivX this is not an issue and everything runs just fine. by the way this happens with both WMP 9 and 11 on a pentium III 800MHz PC with 512 Mbytes RAM and running XP professional with sp2.

    i have tried also a different approach which is to use IMAQ AVI open.vi and IMAQ AVI read frame.vi. i have attached a pic of the code. the problem with this is that the playback is slow. meaning that the time it takes to update each frame is too long. i can not see why because i read the number of frames in the .avi file and then set a delay according to that. however i have seen that the time delay is not accurate. so for example if i dont read the frame rate from the .avi but hard code say 2 frames per second then it works. if i say 4 frames/sec then i see about 2.5 frames per second. if a say 1000 frames/sec the speed is not faster than 25 frames/sec.

    has anyone experienced the same?

    thanks

    alex

  3. hi,

    is there a function in LAbview 6,7 or 8 to playback a video file (.avi , .mpeg)? or do i need to get the IVision toolkit?

    ideally i would like to have a video function that handles both image and audio. is that possible? or will i need to extract the audio and then synchronise an audio and a video function to play simultaneously?

    thanks,

    alex

  4. eaolson, you're right-thanks for the pointer!

    for future reference:

    Q: how to create a new (empty) pic of a specified size

    Ans:

    http://forums.lavag.org/index.php?act=attach&type=post&id=5914

    Q: how to control the borders when opening an existing pic so that they fit perfectly around it

    Ans:

    http://forums.lavag.org/index.php?act=attach&type=post&id=5913

    Q: is it possible to display a pic without borders?

    Ans: the way is to customize the Picture control and move its border color to the background (the actual figure in on a 'higher' layer, thus covering the border). this works even when the picture control is programmatically resized.

    alex

  5. hej,

    a fast way to do your DSP would be to call Matlab from Labview (that's if you're familiar with Matlab). then you can load the wav file , do the FFT and analysis in Matlab (this kinda makes Labview obsolete though...!)

    otherwise,

    in Labview to :

    load a wav: Snd Play Wave File.vi

    FFT: under Functions there are vi's to do FFT

    bandpass filters: see under Functions\analyze\signal processing\filters

    LEDs: control the LEDs with outPort.vi

    good luck

    ps. if you have the time please tell me why it is that getting just the peak at a certain frequency range will tell you something...why not energy in the octave/third octave bands. how do you excite the coconut?

    alex

  6. hi there,

    trying to set the size of a picture, i read its "rect" data and then pass this to:

    draw flattened pixmap.vi or draw rect.vi

    i get no errors, neither control over the size...

    the question really is:

    a) how to create a new (empty) pic of a specified size

    b) how to control the borders when opening an existing pic so that they fit perfectly around it

    c) is it possible to display a pic without borders?

    working on LabView 6.0 ad 7.0

    thanks a lot,

    alex

  7. hi all,

    Read BMP File.vi and Draw Flattened Pixmap.vi

    are indeed the right functions. what i was doing wrong and caused the problem, was not connecting all inputs to the

    Draw Flattened Pixmap.vi (was connecting only the flattened image data array) - although this didn't cause errors, the pic didn't show up.

    thanks for the replies,

    alex

  8. QUOTE(Jonas @ May 15 2007, 03:52 PM)

    You can use windows media player to display anything.

    See attachment..

    hi Jonas,

    unfortunately i have only LabView 6.0 and 7.0 . is it possible to save yout vi's for version 7.0 compatability and post them again?

    thanks anyway,

    alex

  9. hi there, a simple question:

    how can i read a bmp file and show it on the front panel?

    i thought i had to use:

    Read BMP File.vi and Draw Flattened Pixmap.vi

    but nothing happens. what am i doing wrong?

    i dont have any specialized packages, so i'm running with the basic vi's on LabView 6.0

    thanks,

    alex

  10. QUOTE(JFM @ Feb 15 2007, 01:53 PM)

    Hi,

    I don't know if the "Snd Read Wave File.vi" existed in LabVIEW 6i, but if it does then it can read a wave file and output sound data together with sound format info. Look in the palettes, and if you don't find it, have a look in "vi.lib\sound\lvsound.llb\Snd Read Wave File.vi"

    If you just need to read the sound info, go into this VI and take out the parts where sound info is extracted. Put this in a VI of your own that only reads enough characters to extract the wav-header (~36 characters).

    Hope this helps

    /J

    it sure does!

    thanks JFM

    /aka

  11. 1. select the push button

    2. in Edit menu select; "Customize control..."

    3. while in control editor, locate and press the button with a wrench (in the Toolbar)

    4. use the "parts window" to access the different parts that you want to replace or edit.

    Good luck!

    /J

    ----------------

    i tried your suggestion and what happens is that you still cannot replace or edit the green part with a circle for example, or even rotate it. other suggestions?

    thanks

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.