PFI0 Trigger : howto plot PFI0 and record dateTime of Rising Edge ?

Hi,
I'm acquiring an analog signal on my PCI 6250, triggered on PFI0. For this test, I use DAQ Assistant
I use VS2010, MS2013, DAQmx 14.0 .
I acquire at 1MHz, 5,000,000 of samples (5 seconds)
I would like to plot on a Digital Graph my PFI0 signal, which shows on horizontal axis Date Time. I would like also to know if it possible to record the DateTime of each Rising edge detected (Rising edge period on PFI0 may be faster than 5s) in parallel of my Analog Acquisition or at least the DateTime of the rising edge which has triggered the Analog acquisition.
Kind Regards,

Hello Charly,
Yes you could start 2 differents tasks, one analog aquisition to plot your signal and at the same time one numeric like a counter to mesure your rising edges.
Hope this will help you,
Kind regards,
Maxime G. | Application Engineer
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
LabVIEW Tour
Journées Techniques dans 10 villes en France, du 4 au 20 novembre 2014

Similar Messages

  • How can I use the pulse train from a 6602 to trigger an niFGEN and niSCOPE on each rising edge of the pulse train?

    Hello,
    Here is my application: I need to use a 6602 counter/timer to generate a pulse train of certain frequency and duty cycle. On each rising edge of this pulse train, I need to output an arbitrary waveform on Ch. 0 of an niFGEN (5422) AND acquire data from CH. 0 of an niSCOPE (5124). I also need to synchronize the niFGEN and the niSCOPE to the same clock used for the pulse train (6602/ctr0). This process needs to continue until the user stops the system.
    I can generate the pulse train using the 6602 just fine using ctr0, but the pulse train shows up on OUT0 by default. When setting up the niFGEN and niSCOPE to trigger on rising/positive slope edge, OUT0 is not an option for either device as a source for the digital rising edge (pulse train). The main options for both are PFI0-3 and RTSI lines.
    Questions:
    1.) Is there a way that I can direct the pulse train to a location (such as an RTSI line) where BOTH the niFGEN and the niSCOPE can use it as a start trigger for each rising edge? I noticed in MAX that a route can be made between ctr0's internal output and a trigger line and others. If this is a solution, could you please explain how to accomplish this?
    2.) Once I configure the niFGEN and niSCOPE to be triggered on a digital rising edge, how can I effectively have this happen for every rising edge from the pulse train? In other words, can I just initiate the FGEN outside of the while loop and it will generate a waveform for each rising edge it sees at the source until the while loop is exitted?
    3.) Is setting a reference clock for the niFGEN and the niSCOPE the same thing as synchronizing both devices using the same clock that generated the pulse train? It is not clear to me the difference, and why it would necessarily be useful.
    Images of my current front panel and block diagram are attached. If you would rather have the actual VI's just let me know. Any help and/or explanation on this is greatly appreciated. Thanks in advance.
    Attachments:
    Front_Panel_Control.jpg ‏278 KB
    Block_Diagram_Control.jpg ‏263 KB

    Hello Cgifford,
    Welcome to National Instruments Forums.
    To output your signal to the PFI lines,
    you can use external connectios between OUT0 and PFI lines. You can also use
    the backplane to do so by routing into the same RTSI line.
    1)
    On the SCOPE and FGEN, the name of the
    terminals are actually “PXI Trigger Line x/RTSIx” but on the 6602 you might
    need to route the signal using the property:
    You can also use the DAQmx route signal which perform the same opperation.
    2)
    This will depend on the frequency of
    your pulse train. If this is lower than about 10 ms, then you can probably
    place this on a loop and start and stop the acquisition every time. If the
    frequency is higher than this, you will have to use:
    -       Scripting on the FGEN side (read more)
    -       MultiRecord Fetch (more information in the scope help file
    section “Acquisition Functions Reading versus Fetching”).
    3)
    The short answer is yes. The longer one
    might depend on how tight you need the synchronization to be (us, ns, ps). For
    very tight synchronization, you should look into here.
    Message Edited by Yardov on 06-18-2007 03:14 PM
    Gerardo O.
    RF Systems Engineering
    National Instruments
    Attachments:
    property.JPG ‏7 KB

  • Is it possible to trigger the acquisition and recording of data in this condition?

    Hi
    I am a LabVIEW newbie,
    Is it possible to trigger the data acquisition and recording in the following case;
    I have two input signals 1. Pressure Transducer 2. Pulse from a magnetic pickup.
    I have to plot the pressure data against the pulses. Can I make the magnetic pickup signal as master signal to trigger the data acquisition and recording? and at the same time acquiring the pressure data as well.
    How can I do that ?
    Thanks.

    Hi Rich
    Thanks...
    I have PCI - 6033E High resolution multifunction I/O board and NI BNC - 2090 adapter chasis.
    What I am getting is the pressure from the transducer and magnetic pulses.
    Two cosecutive pulses encompass one complete cycle of the combustion process inside the engine.
    I need to record the data for presenting the information offline.
    Since combustion is a highly unstable process I need to get the optimum representative grapgh at a particular engine speed.
    So lets say, I want the magnetic pulse to trigger this the data acquisition for 50 of such pulses, i.e. 50 complete cycles of diesel engine. So that these 50 acquired cycles may be averaged for pressure readings and a single representative curve (graph) may be produced.
    Thanks again
    Message Edited by SeaMist on 06-26-2008 02:49 AM

  • How to catch an analog hardware trigger from the PFI0/TRIG1 pin?

    I have a PCI-MIO-16E-4 DAQ Board, a BNC-2090 Connector Block and LabVIEW 6.1. How do I configure a VI like the example 'Acquire N - Multi-Analog Hardware Trig.vi' to accept an analog input trigger from the PFI0/TRIG1? What parameters do I give to the AI Config, AI Start and AI Read VIs? The parameter 'Trigger channel' only seem to accept channel numbers, so what channel number do I have to give to make it undestand that I want to catch the trigger using the PFIO/Trig Channel?
    Thank you.

    Hi,
    look into Help!
    AI Start needs on "analog chan and level" the string "PFI0" to use PFI0 for analog trigger input. In the example it is the control "trigger channel".
    Unfortunatly the help is not complete. "analog chan and level" is a cluster of two elements, the channel name and the level. The level is not explained in help.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • How can I acquire and record pre trigger samples

    Hi I would like to acquire and record pre trigger samples. I have used many different methods including: 
    http://digital.ni.com/public.nsf/allkb/9DE9E3E4DAD​9EE93862579C60018B6EA
    the problem is I would like to acquire pre trigger samples before start trigger not reference trigger. I think reference trigger is used for stop triggering not start triggering. Could you please help me on this
    Thanks? 

    Hi tintin_99,
    I hope you are well and thank you for posting your issues to the forum. 
    I wanted to ask you some further information in regards to your application:
    - What version of LabVIEW do you have?
    - What operating system (OS) are you running on your PC/laptop?
    - Which application programming interface (API) are you using? NI-DAQmx, NI-Scope?
    When you mention you want to acquire the pre-trigger samples before the start trigger and not the reference trigger, how are you currently doing this? Would you be able to post up your code so that everyone can have a look at it?
    Here are some further links to look at:
    - Continous Analog Input Acquisition with Pre-trigger Scans using 2 E-series Boards
    - How Can I Acquire Pretrigger Samples with NI-SCOPE?
    - Software Analog Trigger with Pre-Trigger Samples
    - Synchronized Analog Input/Ouput with an Analog Trigger and Pre-Triggered Samples
    I hope this is alright for now.
    Kind Regards,
    Dom C

  • How to program to trigger off a channel then recording all other channels?

    I am converting my program from Visual C++ 6.0 to .NET (yup we are kind of slow so that we can use the new NIDAQ driver with M card.  Now I have some trouble converting the data acqusition routine.  I am trying to trigger off a channel then record data from all the channels.  I was told that I will have to have an extra circuit to wire the channel to TTL line.  Is this true?  I never had to do this in the older software.  I basically set the pretrigger and use SWAnalog and that is it.  The following is the code from the older software.  Right now in my .NET evenvironment, I basically monitor the voltage from the trigger channel then once the voltage exceed the level, I went into my buffer to grab the pretrigger and post trigger data.  It was fine except that the buffer is kindda huge and it slows down the data acq process by far since we still have older PC that is slow.    I attached the code of the new way (in .NET) that I am doing with this message as well.  Sorry for a long message and I hope someone can help me out!!  Thanks, Yajai.
    //// Older way
    void CWinTFSView:tartDaq()
     COleVariant vOptional((long) DISP_E_PARAMNOTFOUND, VT_ERROR);
     CString ScanChannels[9];
     int Device;
     long Scans;
     float SampleRate;
     float ScanRate;
     long PreTriggerScans;
     Device = 1;
     Scans = int (m_ActualPointPerRecord) *m_TotalChannel;
     SampleRate = (int) (1000000/(m_TimePerPoint));
     ScanRate = SampleRate;
     PreTriggerScans = m_TriggerDelay/m_TimePerPoint;
     m_CWAI.GetChannels().RemoveAll();
     // InsertChannel 
     ScanChannels[1].Insert(0, "0");
     ScanChannels[2].Insert(0, "1");
     ScanChannels[3].Insert(0, "2");
     ScanChannels[4].Insert(0, "3");
     ScanChannels[5].Insert(0, "4");
     ScanChannels[6].Insert(0, "5");
     ScanChannels[7].Insert(0, "6");
     ScanChannels[8].Insert(0, "7");
     CString Ch ="";
     bool First = TRUE;
     for(int i = 1; i< 9; i++)  
      if(m_Ch[i] == TRUE) 
       switch (m_NiGain[i]) {
       case 1:
        m_CWAI.GetChannels().Add(ScanChannels[i],CNiVa​riant(10),CNiVariant(-10), vOptional, vOptional);
        break;
       case 2:
        m_CWAI.GetChannels().Add(ScanChannels[i],CNiVa​riant(5),CNiVariant(-5), vOptional, vOptional);
        break;
       case 4:
        m_CWAI.GetChannels().Add(ScanChannels[i],CNiVa​riant(2.5),CNiVariant(-2.5), vOptional, vOptional);
        break;
     m_CWAI.SetDevice(Device);
     char temp[10];
     int RealTriggerCh = m_TriggerChannel - 1;
     itoa(RealTriggerCh, temp, 10);
     m_CWAI.GetStopCondition().SetType(cwaiSWAnalog);
     m_CWAI.GetStopCondition().SetLevel(m_TriggerLevel​);
     m_CWAI.GetStopCondition().SetSource(temp);
     m_CWAI.GetStopCondition().SetPreTriggerScans(PreT​riggerScans);
     m_CWAI.GetStopCondition().SetMode(cwaiFalling);
     m_CWAI.SetNScans(Scans);
     m_CWAI.GetScanClock().SetFrequency(ScanRate);
     m_CWAI.GetStopCondition().SetHysteresis(float (0.05));
     m_AcquireMode = true;
     m_CWAI.Configure();
     //delay function
     int k;
     for(i = 1; i<= m_TIME_DELAY; i++)
      k = 1;
     m_CWAI.Start();
    Attachments:
    code.txt ‏4 KB

    Hello DrObb,
    I'm not sure I know exactly what you are trying to do, but I'd like to offer some suggestions.  First, it looks like you are trying to use some sort of software analog triggering?  Depending on your M Series device, you might be able to use hardware analog triggering.  The 625x and 628x families have hardware analog triggering capabilities.  You can use an analog trigger on any one of the analog input channels or the APFI line.  Additionally, all M Series have digital triggering support.  So it should not be necessary to use external circuitry unless you have a 622x device and you need analog triggering.
    As far as the .NET programming, I suggest looking at some existing shipping examples.  If you included .NET support when you installed NI-DAQmx, you should have a bunch of .NET examples in the following directory (regardless of whether or not you have measurement studio):  C:\Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Example​s\DAQmx\Analog In\Measure Voltage
    It looks like you probably want to use an analog reference trigger (if you want pre and post trigger data).  So you might have to take pieces of a couple examples, like the analog start trigger example and the digital reference trigger example.  Good luck, re-post if you have additional questions!
    -Alan A.

  • Record inserted (for all records) datetime

    Hi All,
    I want to find out the record inserted (for all records) datetime for each and every records. If there is any way please let me know.
    Thanking You

    Hi,
    There is no way of finding datetime unless you have a column dedicated for this.
    Normally, designers add columns related to auditing like who and when inserted the record and who and when modified the record. Something like this:
    desc my_emp
    (empno number,
    ename varchar2(30),
    create_user varchar2(30),
    create_date date,
    update_user varchar2(30),
    update_date date)

  • Triggering and Recording for specific duration

    Enclosed is the VI which I am using to trigger a electrical circuit for generating a spark.
    My system is very simple wherein I am generating spark in a vessel (by a triggred electrical pulse to HV generator) and measuring the pressure and temperature for a specified time of X and Y seconds after the spark.
    Part A:
    On a single Boolean input (TRUE) I would like to have following:  
    1. The Trigger pulse (USB 6009 device) should start and last for say 1.5 sec. which is input to my electrical circuit. Two DAQ max is used since current from one port is not sufficient to trigger the HV generator - electrical circuit.
    2. At the same time the pressure inside the vessel should be recorded for X sec. only (writing to file)
    3. Simultaneously the temperature should also be recorded for Y sec. only (writing to file)
    In the present VI, I have to keep the “Auto fire and record” button pressed to write the data to file. I have set up preset time for the trigger pulse.
    After triggering and recording for specific time 1.5, X and Y sec. the Boolean should go to FALSE position since long duration pulse to electrical circuit can be damaging.
    *** REQUEST SOME-ONE HELP ON THIS MATTER ASAP. ****
    Part B:
    Later I have to record the values of current and voltage measured at three locations by Tektronix TDS 3034B Scope (channel 1, 2  and 3) for a duration of 300 nano-seconds after the spark has occurred (i.e. say P sec. after trigger pulse and recording till P + 300 duration)
    This simple logic seems to be more difficult than, I expected, can some one please help
    / suggest in the right direction. (**VI attached**)
    Sorry for the language – New to Labview and not an electrical engineer. So pl. explain.
    THANKS
    Email: [email protected]

    Hi xseadog,
    Sincere apologies for inordinate delay in reply.
    Was blocked up with actually setting up the experiment in physical sense. Keeping all the bits and pieces in right place.
    The pressure sensor / transducer is Omega PX219 with output 0 – 5 V. Recording pressure reading every 0.001sec. immediately after the spark trigger (USB 6009 signal) is switched ON. (through labview)
    The temperature is K type thermocouple. Recording temp every 1/12 sec.(0.0833 sec) after spark.
    I have made a provision to trigger the spark manually – through push button. But this mode requires me to start recording press and temp., before pushing the button to generate spark. Hence keen on using the trigger initiated through Labview.
    Regarding relay controlled by the 6009, I understand that circuit is similar to that. The HV is generated through an EHT pulse generator, which is ready now, the only thing is it requires a trigger of 5 V and more than 10 mA.
    Manually when we generate spark, we do not require the USB 6009, so we get spark every time when button is pushed, it was only during the Labview trigging we diagnose this prob. And hence clubbed the two channels of 6009.
    As of now the loop time “Auto fire and record” which is the key for firing –spark generation –runs every 1.011 sec. can you suggest, how to reduce the loop time ?.
    Does the DAQ’s consumes time or which step consumes more time. I would request your comments.
    Thanks for the continuous help / replies.
    nnnsh

  • ORA-04098 trigger"BANKTRAN_BEF_DEL" is invalid and and failed re-validation

    Hey Experts,
    I created follwoing trigger successfully...
    create or replace trigger BANKTRAN_BEF_DEL
    before delete on BANKTRAN
    declare
    weekend_error EXCEPTION;
    not_authentocated_user EXCEPTION;
    begin
    if TO_CHAR(SysDate,'DY') = 'SAT' or TO_CHAR(SysDate,'DY') = 'SUN' THEN
    RAISE weekend_error;
    end if;
    if SUBSTR(User,1,3) <> 'ATN' THEN
    RAISE not_authentocated_user ;
    end if;
    EXCEPTION
    WHEN weekend_error THEN
    RAISE_APPLICATION_ERROR (-20001,
    'Deletions not allowed on weekends');
    WHEN not_authentocated_user THEN
    RAISE_APPLICATION_ERROR (-20002,
    'Deletions only allowed by authentocated users');
    end;
    but when deleting the records using query delete from BANKTRAN
    getting the below error
    ORA-04098 trigger"BANKTRAN_BEF_DEL" is invalid and and failed re-validation
    Edited by: SShubhangi on Jan 7, 2013 4:21 PM

    Alright.
    Now Try the DML that causes the Trigger to fire.
    And post the details.
    PS:- Please use {noformat}{noformat} before and after the SQL statements/results or code samples.
    It makes post more readable and you get better help.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • PCI-4461 - Generate and Record Tone

    Hello,
    I am trying to play a tone (1K for Example) and record the tone using a microphone.  I am using a PCI-4461 to generate and record the tone.  I managed to make a somewhat functional program but there are some issues I would like to clear up:
    1)  I had to make a start and check time function to determine if the tone plays and is recorded for the appropriate amount of time.  If I remove the while loop the tone does not play.  I tried using the DAQmx wait until done function but it does not seem to make a difference.  Is there anyway I can play and record the tone without monitoring the time?
    2) The recorded waveform always has a delay which seems dependent upon the sample rate.  Ex: 10000 Samples/Sec results in 83 sample delay, 20000 Samp/Sec results in 114 sample delay.  I read in some other articles that samples are stored in the buffer and that reading 60ish samples before the actual measurement would clear up the problem.  I tried reading samples before the tone is generated but the delay is still present.  Currently I am using post processing to remove the delay, is there anyway to only record the tone that is played.  Am I triggering the read properly?
    Let me know if I should post the VI.  Also incase anyone is familiar with acoustics how do I convert a waveform of Voltage vs time to dBV/Pa
    Thanks,
    E
    Attachments:
    Play and Record Waveform.PNG ‏86 KB

    Hi Plexonite,
    The first thing that comes to mind is Pre-trigger Acquisition which could help you retrieve missing data. Further details about this can be found under:
    http://www.ni.com/white-paper/4329/en/
    Let us know if this helps you move forward.
    MJ
    Application Engineer
    National Instruments

  • DatagridView and Sql DateTime Column

    Hi all,
    I've got a problem that is driving me crazy, I have 2 datetime column in my Sql database and I want dispaly into my datagrid only the time. I need  a datetime column 'cause I want to filter time in my datagrid but TimeSpan syntax doesn't work, but when
    I add the record ex: 15:00 (obviously sql register it as 01-01-1900 15:00:00) and when I load my datagrid I get an exception (Cannot store <01-01-199 15:00:00> in the column 'Time' because type is 'TimeSpan) I tried to tryparse my control as datetime
    and used datetime.now.toshorttimestring, I tried to format my datagrid cells in 't' format but it keeps not loading!
    I need your help please

    Hi all,
    I've got a problem that is driving me crazy, I have 2 datetime column in my Sql database and I want dispaly into my datagrid only the time. I need  a datetime column 'cause I want to filter time in my datagrid but TimeSpan syntax doesn't work, but when
    I add the record ex: 15:00 (obviously sql register it as 01-01-1900 15:00:00) and when I load my datagrid I get an exception (Cannot store <01-01-199 15:00:00> in the column 'Time' because type is 'TimeSpan) I tried to tryparse my control as datetime
    and used datetime.now.toshorttimestring, I tried to format my datagrid cells in 't' format but it keeps not loading!
    I need your help please
    Hi,
    I am afraid that this is not the proper forum for this issue, since this forum is to discuss and ask questions about the Visual Studio Debugging tools, Visual Studio Profiler tools, and Visual Studio Ultimate IntelliTrace which doesn't include how to solve
    development issues.
    You could post this issue in the following forum depends on the type of your project and the language you are using to get dedicated supports.
    C#:
    Visual C#
    vb.net:
    Visual Basic
    winform:
    Windows Forms General
    asp.net: ASP.NET
    Thanks for your understanding.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to Plot number and string in one row (data logger counter) ?

    hi all i made data log quantity using Digital Counter via modbus to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
    i have problem about plot the number & string in one row, as shown on the picture below :
    how to move that string on one row ? i attach my vi.
    Thanks~
    Attachments:
    MODBUS LIB Counter.vi ‏39 KB

    Duplicate and answered - http://forums.ni.com/t5/LabVIEW/How-to-Plot-number-and-string-in-one-row-data-logger-counter-via/m-p...

  • Problem with Adobe Audition 2.0 and recording from a 1212m.

    I bought a brand new machine and have be configuring it all week. Everything has been going well, except getting Adobe Audition 2.0 (the new version) to “hear” sound from the 1212m.
    The intel 975 motherboard has an integrated HD sound system already on board and I have been able to get adobe audition to recognize it and record from it. This is what I have Windows XP Pro set to as my default sound card.
    I installed the 1212m and I have gotten my monitors to work by using the XLR jacks on the monitors to the ¼ inch jacks on the 1212m using a VST (NI’s Kontakt 2) as the audio source. So it works.
    What I can’t seem to get to work is getting Adobe Audition to “hear” the sound coming from the 1212m.
    Patchmix seems to be working ok. The audio bars jump each time I hit a note on the keyboard.
    I have configured Audition by going to Audio Hardware Setup and setting it to EMU ASIO and tried every combination of INPUT and OUTPUT, but when I hit the Record button in Audition it just flat lines..
    I was hoping that once the audio made it from the VST though the 1212m and out to the speakers, that getting Audition to record it would be easy, but that hasn’t been the case.
    The Intel 955 Extreme Edition and the 975 motherboard are brand new and I’m worried that being on the bleeding edge of technology, that one of the drivers isn’t working correctly and causing me hours of debugging a problem that is unworkable from my end.
    Hopefully the problem is just some small stupid thing that I’m doing or failing to do (like normal).
    Any ideas would be helpful.
    thanks

    I'm just saving it into a file in "My documents" on the internal hard drive. It's a computer in the office which has been used my other people before me and I have my own file which I was always able to save Adobe sound files into before, so I don't think it's anything to do with me not being allowed or read-only.
    I've also been trying to save it onto USB hard drives. This works when I save it under a different name, but not when I'm just trying to update a file i've been working on. Basically I have to create a new file everytime I add something, so like "myaudit1", "myaudit2", "myaudit3" etc etc, even though it's the same piece of work just updated.
    Hope that makes sense!

  • Can Express 9 play and record multiple instruments at the same time?

    I have logic express 9 and was told with my interface that I can play and record different instruments at the same time on Express 9. Is this true because I have spent a long time trying to figure out how.

    Hi,
    to record multiple Inputs at a time, open up the appropriate number of audio tracks. Now for each track, select the correct Input in the Channelstrip.
    Now, ARM all these tracks for recording by clicking the little red R in the track header or channelstrip. Now if you hit record, all these tracks should record simultaneously their respective inputs.
    All other existing tracks should playback while recording.
    Fox

  • How do you watch and record a live h.264 stream at the same time using fmis and FMLE?

    I've read all the similar post but could not find a solution that actually works, and please no "just use the dvr or record on the FMLE suggestions" as neither will work for me.
    Some posts I've read suggest naming the stream in the FMLE to something like mp4:mystream.mp4 or mp4:mystream.f4v but then you can no longer view the stream, and according my the admin console the stream will not even publish using this syntax.
    I can view the published stream if I name the FMLE stream to something like mystream.mp4 or just mystream, but then it doesn't record at all or records as a FLV file depending on how I code the main.asc file.
    Here's one version of my main.asc, this one correctly publishes the live stream after the client triggers the joinStreams function but will not record it.
    application.onConnect = function (client, userType)
        trace("userType is " + userType);
        this.acceptConnection(client);
        //this.clientCount++;
        client.joinStreams = function (channel)
            trace("joinStreams on channel " + channel);
            liveVid = Stream.get("livevideo/" + channel + ".mp4");
            liveVid.play("hdvideo/" + channel, -1, -1);
            liveVid.record("append");
        client.clearStream = function (channel)
            trace("clearStream on channel " + channel);
            liveVid = Stream.get("livevideo/" + channel + ".mp4");
            liveVid.play(false);
            delete liveVid;
    I've been working on this for 48 hours straight, please advise.

    I think lets keep it simple, will explain what you have for watching live streams and recorded streams
    Live Publish and Play:
         FMLE Settings:
    Video Codec: H.264
    Audio Codec:<any of your choice>
    Server URI : Please put your server uri with application name here , for example i will use "rtmp://myServer/myApp"
    Stream name: livestream
        Subscriber Settings:
              Server URI :  "rtmp://myServer/myApp"          Stream name: livestream
              Mode: "live" ( i.e. ns.play("livestream",-1,-1,true)
    Playing VOD H.264 file:
         Subscriber settings:
              Server URI :  "rtmp://myServer/myApp"
              Stream name: if file name is "sample", use "mp4:sample", if file name is sample.f4v, use "mp4:sample.f4v"
              Mode: "record" ( i.e. ns.play("mp4:sample.f4v",0,-1,true)
    For DVR (Record-in-progress stream)
    If you are using FMLE and want to use "Record" option of FMLE then you need to have to dvrcast_origin application and subscrier needs to FLVPlayback 2.5 component
    If you want to use that option, do let me know i will give details later.
    For now we will use simple server-side code and FMLE as publisher.
    main.asc of "myApp"
    application.onPublish = function(myclient,mystream){
         mystream.record();
    application.onUnpublish = function(myclient,mystream){
         mystream.record(false);
    FMLE Settings:
    Video Codec: H.264
    Audio Codec:<any of your choice>
    Server URI : Please put your server uri with application name here , for example i will use "rtmp://myServer/myApp"
    Stream name: mp4:mydvrstream.f4v
        Subscriber Settings:
              Server URI :  "rtmp://myServer/myApp"          Stream name:  mp4:mydvrstream.f4v
              Mode: "live" ( i.e. ns.play(" mp4:mydvrstream.f4v",0,-1,true)
    Try out above and let me know if that works or does not work for you.

Maybe you are looking for

  • GMT wrong in activity report

    We have just instaled latest version of portal activity report, sap note 1084379, and now we see statistics with 3 hours of diference, por example, at 14:00, we see datas for 11:00 Download Report Portal Activity Report - Number of users who logged o

  • How do I move Outlook email from Windows to iMac

    I have decided to move from Windows (Vista) to iMac (Mavericks) and need to move all my email from my Windows PC (Outlook 2010) to iMail.  I've found several suggestions on the internet including various software applications for converting from one

  • Calendar and Contacts won't sync between my iPad (ios6) and iMac (mountain lion). I've trolled forums looking for fixes but nothing is working so far. Any ideas?

    Not really sure where this question should go, since it crosses 3 topic areas. Neither my contacts nor my calendar will sync from iMac (mountain lion) to iPad 3 (ios6). I've tried a byzantine series of fixes - mostly involving backing up each, turnin

  • Regarding  Dimension Table and Fact table

    Hello, I am having basic doubts regarding the star schema. Let me explain first regarding  star schema. Fact table containes Key fiigures and Dim IDs,Ok, These DIm ids will be connected to my dimension tables.The Dimension table contains Charactersti

  • Extreme + Shared Disk through a NAT?

    Hi, I've done a search on this topic but can't find a thread that answers my question - so I beg forgiveness if this has been asked and answered many times... I've got an Extreme base station hosting a shared disk for a small business LAN. It works g