Split a channel at the specified point value

Hello

I want to divide a channel he has found a ChnSplitAtValue command but it is set where you want to split the channel. I have data that has a sinusoidal behavior and I need to cut to specified time or tell 100th point to leave. How to do this.

ChnSplitatValue function guard picking on the first value whereas she meet in channel.

Hello!

You can use the DataBlCopy command to copy both sides of new channels.

Matthias

Tags: NI Software

Similar Questions

  • Superposition of the images on the specified point

    Hello!

    I have 2 pictures with a lot of similarities. I want to layer them on a specified point or edge or a unique feature. Is it possible to choose a point (by hand or by an algorithm) and then find the corresponding (or similar) on the other image? and then superimpose the images according to the corresponding point? Algorithm of the overlay is made, now I need to find matches between the two pictures and then you cover them according to the similarity.

    Thank you!

    gbbalint

    Hello

    I modified the labview example. Run it, input two images (left, right), then "load", select the edge KING (see image below) and "search". Then superimpose one image over another with transparent ('overlay'). The code is a bit messy, but you can clean for your project.

    You said that the superposition algorithm is done, could you please share it? Maybe your solution is more sophisticated and can help me with another project.

    I hope this helps you.

    Best regards

    K

  • Select from a drop-down list and the specified element values are displayed in the textfield

    I need for one to be able to select from a list drop-down and specified the item values appear in textfield.

    For example, if I select Amy

    If I select Bob

    If I select Jane

    Amy

    Bob

    Jane (I want to appear as shown in the list)

    I associated a value to each item in the drop-down list so that the choice is easy to compare and determine what initial (default) value to the value in the text field. In my drop down list change event, I have the following:

    var sNewSel = this.boundItem (xfa.event.newText);

    Switch (sNewSel)

    {

    case '1': / / Amy

    TextField1.rawValue = "Amy \n";

    break;

    Switch (sNewSel)

    {

    case '2': / / Bob

    TextField1.rawValue = "Bob \n";

    break;

    Of course that's not work one name shows at a time. Help, please!

    Thank you

    Don't know what the code is supposed to do, but basically, you want to add the name of the drop-down list the addition on the current value of the TextField? Why not use the dropdownlist display value directly? For example on the change event:

    if ( TextField1.rawValue == null )
        TextField1.rawValue = xfa.event.newText;
    else
        TextField1.rawValue += ( "\n" + xfa.event.newText );
    
  • Video Start at the specified Point

    Hi, I'm hoping to learn how to make a video start playing at a specified point in the middle of the video rather than from the beginning. Not sure if this is something that can easily be done in Dreamweaver or if she's involved with the flash settings, but any help would be greatly appreciated. Thank you!

    1. use:

    Fl.video import. *;
    my_FLVPlybk.addEventListener (VideoEvent.COMPLETE, rewind);
    function rewind(eventObject:VideoEvent):void {}
    my_FLVPlybk.seek (52);
    my_FLVPlybk.play ();
    }

    2. unless you're streaming your video, you must use a video with keyframes (IE, cuepoints).   That is to say, use the addASCuePoint() method.

  • Video of the Autorun Start at the specified Point

    Hi, I hope someone can help me to make a change to my Actions. Basically the code below is designed so that a video starts 52 seconds (rather than at the beginning) when you press play. It works well at this time, starts where it is supposed to, but I want to change the code so that it autoplays the video from 52 seconds. Well, the problem is that when I try and set it for automatic playback, the video starts from the beginning and does not wait so that it loads in 52 seconds before it autoplays. Any input on the coding? I need just so that AutoPlay is not kick until the video is loaded, and the second point 52. Thank you in advance! Beyond appreciated!

    Import fl.video.MetadataEvent;
    Import fl.video.VideoProgressEvent;

    Fl.video import. *;

    my_FLVPlybk.addEventListener (VideoEvent.COMPLETE, rewind);
    function rewind(eventObject:VideoEvent):void {}
    my_FLVPlybk.seek (52);
    my_FLVPlybk.play ();

    }

    var fp:FLVPlayback = my_FLVPlybk;
    fp.addEventListener (VideoProgressEvent.PROGRESS, videoProgressHandler, false, 0, true);
    fp.addEventListener (MetadataEvent.METADATA_RECEIVED, metaDataHandler, false, 0, true);
    fp.autoPlay = true;

    var startSeekTime:Number = 52;
    var videoDuration:Number;
    var videoSeeked:Boolean = false;

    function metaDataHandler(event:MetadataEvent):void {}
    If (event.info.duration! = null) {}
    videoDuration = event.info.duration;
    }
    }

    function videoProgressHandler(event:VideoProgressEvent):void {}
    var fp:FLVPlayback = event.currentTarget as FLVPlayback;
    var bytesLoaded:Number = event.bytesLoaded;
    var bytesTotal:Number = event.bytesTotal;
    If (! isNaN (videoDuration)) {}

    If ((bytesLoaded/bytesTotal) > = ((startSeekTime + 4) / videoDuration) & &! videoSeeked) {}

    videoSeeked = true;
    FP. Seek (startSeekTime);
    }
    }
    }

    use:

    Import fl.video.MetadataEvent;
    Import fl.video.VideoProgressEvent;

    Fl.video import. *;

    my_FLVPlybk.addEventListener (VideoEvent.COMPLETE, rewind);
    function rewind(eventObject:VideoEvent):void {}
    my_FLVPlybk.seek (52);
    my_FLVPlybk.play ();

    }

    var fp:FLVPlayback = my_FLVPlybk;
    fp.addEventListener (VideoProgressEvent.PROGRESS, videoProgressHandler, false, 0, true);
    fp.addEventListener (MetadataEvent.METADATA_RECEIVED, metaDataHandler, false, 0, true);
    fp.autoPlay = false;

    var startSeekTime:Number = 52;
    var videoDuration:Number;
    var videoSeeked:Boolean = false;

    function metaDataHandler(event:MetadataEvent):void {}
    If (event.info.duration! = null) {}
    videoDuration = event.info.duration;
    }
    }

    function videoProgressHandler(event:VideoProgressEvent):void {}
    var fp:FLVPlayback = event.currentTarget as FLVPlayback;
    var bytesLoaded:Number = event.bytesLoaded;
    var bytesTotal:Number = event.bytesTotal;
    If (! isNaN (videoDuration)) {}

    If ((bytesLoaded/bytesTotal) > = ((startSeekTime + 4) / videoDuration) &! videoSeeked) {}

    videoSeeked = true;
    FP. Seek (startSeekTime);

    FP. Play();

    }
    }
    }

  • Specify the end point for the digital using an output circular buffer

    When you use DAQmx and a NOR-DAQ for issuance of a digital signal using a circular buffer (buffer Renault). The program works and works, but when the 'DAQmx Stop Task.vi' function is called to end the task, he stops at the output buffering as soon as it is called and does not wait until the buffer pointer reaches the final value in the buffer. I would like that the program to wait until the buffer pointer is on the last value in the buffer, does anyone know how to specify this setting?

    If you need to stop on exactly the last sample output you will need a way to trigger the stop in the material.  The options available to you will depend on what hardware DAQ, you use, but here are some possibilities on the top of my head:

    1. set up a digital output redeclenchables task finished (not all hardware supports).  Set up a counter of output to issue a periodic trigger with the necessary synchronization signal such that the end result is a "continuous" digital output without interruption.  When you stop your loop, stop the task of counter - digital output ends his generation but the trigger signal will be removed and so it will not continue after that.

    2. If you have an unused extra digital output line, add it to your task.  This line should exit 0 all except the last sample.  Physically, this additional digital line in a wire line PFI and use it to trigger a meter output.  Have the output counter generate a single pulse of some long-term (long enough to ensure that the software can respond prematurely).  Use the output from the task of counter as a trigger of break for the task of digital output.  Do not start the task of the meter until you leave your loop.  Do not stop the task of digital output until you have detected in the software that the meter has been triggered.

    If you need to stop on approximately the last sample output, you could query the TotalSamplesPerChannelGenerated property after leaving your loop and only stop the task once it reaches a multiple of the size of your circular buffer.  This is no guarantee that it stops on the last sample (if you use a device on a bus with a latency higher as USB or Ethernet the non-determinisme would be worse).

    Best regards

  • Error-200478 - specified operation cannot be performed when there is no channels in the task

    I write a task in NiDaqmx read 8 thermocouples 2 9222 or 4 thermocouples of a NI 9223 modules. Under Source of CCM I entered the channel and specified a type K thermocouple connected to a NI 9219. All modules are located in the same chassis of cDAQ9178.

    I get the above error.

    I add the CJC channel and he complains that I have double readings of the same channel in one of the tasks.

    The environment where it will be installed will vary widely affecting thus the constant CCM is not a viable option.

    Any help would be appreciated.

    Simple reason - we already possess the 9222 s of NOR and the NI 9223. I'll check the price NI9213 and see if the Group has the budget.

    I watched your program and compared it with mine. Tried to channel the CJC as Temperature_12 but all local channels are grayed out. BUT I moved Temperature_12 the command to the top you and Voila! He is available for selection. I put all 9222 s and 9223 channels at points to Temperature_12, and it saved without error.

    So I would say put the CJC channel as the first channel to read fixes the problem - it makes sense that the following channels need a reading to serve their CCM. Where this logic breaks down is if you consider that the 9222 and 9223 channels are simultaneous channels, but that's a topic for another post!

    For now, I thank very you much for your help.

    Best regards

    Dean

  • To access the 'specified values' through script

    When you specify (on the link tab) point values for a drop-down list field, how to access a script specified values - as opposed to access the string value?

    I use the example of WindJack script (part 1 of the list of programming) to feed a combo, but he needs to complete the initial drop string value - chains I have are a little long and unweildy and if they change I need to update the scripts, etc.. Be able to access the value of the drop-down list would make things much simpler.

    var oReasons = 
        {
         "CHQ Returned Undeliverable Cheque": ["01: Unclaimed at Address","02: Unknown Address","03: Address Incomplete","04: No Such Post Office","05: No Such Address","06: Deceased","07: Moved, Address Unknown","08: Refused by Addressee","09: No Reason Given on Envelope","10: Returned Twice from Same Address","11: Additional Information Required - Re-Direct to Ministry","12: Refused - Duplicate Payment"],
            "CHQ Stop Payment - Cheque Attached": ["30: Cancelled - Payment Not Required","31: Stale Dated","32: Cancelled - Incorrect Payee Name","33: Damaged/Destroyed","36: Cancelled - Duplicate Payment","37: Cancelled - Incorrect Amount/Currency","38: Cancelled - Not Entitled","39: Cancelled - Deceased","40: Cancelled - Cannot Locate Payee","41: Wrong Currency","43: Cancelled - Change of Payee"],
            "CHQ Stop Payment - No Cheque Attached": ["20: Never Received/Lost in Delivery (BOI Required","21: Lost/Stolen After Receipt (BOI Required)","23: Not Entitled - Duplicate Payment","24: Not Entitled - Deceased","25: Lost in Clearing (BOI must be signed by negotiating FI)","26: Damaged/Destroyed","27: Not Entitled","28: Stale Dated","29: Not Entitled - Incorrect Payee Name","44: Not Entitled - Payment Not Required","45: Not Entitled - Incorrect Amount","46: Not Entitled - Cannot Locate Payee","47: Not Entitled - Wrong Currency"],
            "Restricted Codes": ["34: Forged Endorsement","35: Material Alteration"]
        };
    
    // the long values above (before the colons) 
    
    // are what I'd like to access by specified value
    
    function SetReasonEntries()
    {
       ReasonList.clearItems();
       ReasonList.rawValue = null;
    
       var aReasons = oReasons[xfa.event.change];
       if(aReasons && aReasons.length)
       {
          for(var i=0;i<aReasons.length;i++)
            ReasonList.addItem(aReasons[i].toString());
       }
    }
    

    Hi Jono,

    You can specify a value as the second parameter to the addItem method and then access this value using the method boundItem as when the values are entered in the designer.

    So in your case, you can load your values

    ReasonList.addItem (aReasons [i] m:System.NET.SocketAddress.ToString (), aReasons [i] m:System.NET.SocketAddress.ToString () .substring (0.2));

    In the click event (or both) then you can use;

    this.boundItem (xfa.event.change)

    to return the value which was adopted as the second parameter of the addItem.

    In your case, you can get out with the help of the .substring (0.2) to get the value, but an alternative would be to have an array of objects.

    'QHC returned the returned cheque': [{id: 1, text: "01: unclaimed at the address"}, {id: 2, text: "02: unknown address"}, {id: 3, text: "03: incomplete address"}, {id: 4, text: "04: No Such Post Office"}, {id: 5, text: "05: No Such address"}, {id: 6, text: "06: d."}, {id: 7, text: "07: moved, address unknown"}, {id: 8, text: "08: refused by the addressee"}, {id] [{: 9, text: ' 09: no reason given on the envelope "}, {id: 10, text:}" 10: returned twice to the same address "}, {id: 11, text:}" 11: additional information required - re - direct to the Department "}, {id: 12, text:}" 12: declined - duplicate payment "}]
    ,......

    Then, you might have;

    ReasonList.addItem (aReasons [i] .text, aReasons [i].id.toString ());

    ... Just in case they come with a 100th reason for not producing the cheque.

    Bruce

  • The point value of graphic display WPF overview

    Hello

    Y at - it an easy way to display the value of a point (with formatting similar to a slider) flying over when the mouse point? I use the chart control WPF (MStudio 2013) with several plots represented graphic on an AxisDouble. (y-axis) and AxisPrecisionDateTime (x axis). Let me know if you need more information and thanks in advance.

    When a Cursor is set to align the data, it uses the FindNearestValue method to find the value of land near. When it is not set to align the data, he reports the value of the current screen with the ScreenToData method. The following code example shows how to use both to display the current value of the mouse on a chart using a ToolTip:

    private static readonly GraphQueryArgs query = new GraphQueryArgs(

            PlotsToSearch.Any, SearchDimensions.HorizontalAndVertical,

            SearchDirections.ForwardAndReverse, isInclusive: true );

    public MainWindow( ) {

            InitializeComponent( );

    graph.PlotAreaMouseMove += this.OnPlotAreaMouseMove;

            graph.PlotAreaMouseLeave += delegate { graph.ToolTip = null; };

            ToolTipService.SetInitialShowDelay( graph, 0 );

            ToolTipService.SetShowDuration( graph, int.MaxValue );

        }

    private void OnPlotAreaMouseMove( object sender, MouseEventArgs e ) {

            IPlot plot = graph.AllPlots[0];

            Point screenPosition = graph.GetPlotAreaPosition( e );

            IList pixelValue = graph.ScreenToData( plot, screenPosition );

            string tip = string.Format(

                "Absolute value at point {0} is {1}.",

                screenPosition, FormatValue( pixelValue ) );

            Point relativePosition = graph.ScreenToRelative( screenPosition );

    PlotValue nearestValue = graph.FindNearestValue( plot, relativePosition, query );

            if( nearestValue != null )

                tip += Environment.NewLine + string.Format(

                    "Nearest value on {0} is {1}.",

                    nearestValue.PlotObserver.Label,

                    FormatValue( nearestValue.Value ) );

    graph.ToolTip = tip;

        }

    private static string FormatValue( IList values ) {

            return string.Join( ", ", values.Cast( ) );

        }

  • How do the box values ring to have figures after the decimal point

    How do the box values ring to have figures after the decimal point

    Thanks in advance

    Control properties editor:

    Change the representation in the floating point data Type tab type, DBL will do.

    Then go to the Page of display Format and increment 'Numbers' to something greater than 1

    That toggles the column of values on the tab change the items to % .6f, or 6 digits of precision. Uncheck sequential following, values and you're there.

    If you think that's too restrictive, go back the display Format, then select if rating and you can type anything (but, the editor has a hissing fit, so you must load chains and property [] with a property node values programmatically)

    I've been struggling to get OR improve this editor of properties of the years!

  • Write to digitall all ports (channels) with the decimal value

    Hello

    It is possible to write all digital channels with a value decimal for a device with 96 channels at the same time?

    I have a USB-6509 camera and I want to write each value of Pentecost bit 1 in the loop (for the first transfer I write 0,1,2,4,8,16, 32, 64 and 128) with the line "Dev3/port0 / line0:7", but if I want to write all ports at the same time, how to set the line and the "write.vi DAQmx?

    Thank you.

    You can configure the reading and writing in the ports of 8 bits with the 6509.  For example, you could write just 128 to "Dev3/port0.  If you want to write to all 12 ports, I recommend doing a task that is several channels on the 6509 module, each channel of the task being a port.  You can then use the channel Multiple, single sample of writing of your values.  Your values must be in a table of U8.

  • creating a restore point gives error 0 x 80042308: the specified object could not be found

    What is the specified object cannot be found - 0 x 80042308? trying to create a restore point in the protection system?

    a snapshot could not be created, please check "vss" and "spp" applications for more information event logs!

    Details: the specified object is not found! backup and restore system keeps giving me these messages!

    HEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEELP!

    Thank you!

    Hello

    I suggest you to follow these steps and check if that helps:

    Method 1:
    If you have installed a security software on the computer, then I suggest you try to disable temporary and check to see if the same problem happens. Make sure that you enable security software back once the diagnosis is made to prevent the computer from virus attacks.

    Method 2:
    Try to perform the clean boot and check if it helps:
    http://support.Microsoft.com/kb/310353

    NOTE: When you are finished troubleshooting, make sure that you reset the computer in start mode normal such as suggested in step 7 of the above article.

    Method 3:
    Try the running System File Checker and see if it helps:
    http://support.Microsoft.com/kb/310747

    It will be useful.

  • Get the error when you try to manually create a restore point in Vista 32 - Bit - System - Protection of the system control panel. Got the unable to create the specified task

    Get the error when you try to manually create a restore point in Vista 32 - Bit - System - Protection of the system control panel.
    Got the unable to create the specified task

    Hello

    What is the exact error message received when the problem occurs?

    Methood 1:

    Auditor of file system (CFS) scan to fix all of the corrupted system files. To do this, follow the steps in the following link:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833 

    Method 2:

    You can start Windows Vista by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    I suggest to put the computer in a clean boot state, and check if the problem persists, see the link:
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: See step 7; Reset the computer to start as usual after troubleshooting is performed.

    Method 3:

    You can temporarily disable the security software and check if the problem occurs. Check out the following link to do the same thing:

    http://Windows.Microsoft.com/en-GB/Windows-Vista/disable-antivirus-software

    Warning: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    I hope this helps! Let us know if you need more assistance.

  • On my user account on my labtop when I click on a program, such as mozilla firefox, it happens 'windows cannot access the specified device, path or file. May not be the appropriate permissions for access you point. "Please help

    On my user account on my labtop when I click on a program, such as mozilla firefox, it happens 'windows cannot access the specified device, path or file. May not be the appropriate permissions for access you point. "This message appears for firefox, AVG, Windows live messenger, windows MediaPlayer etc.

    I can access my documents, Panel etc. and everything is there, but it won't let me not get access to the programs.

    Also when I go to click on itunes and open office it happens "this file has no program associated with it for performing this action. Create an association in the set associations Control Panel.

    Given that I was able to access control panel, I was able to create a new user and use it for now to send this message and all programs have worked on it and I was able to check for the presence of viruses on the Avg on this and everything was clear.

    Could you please explain whats wrong and tell me how to fix this please: D thanks

    Hello
     
    1. don't you make changes before the show?
    2. is the computer is joined to the domain controller?
     
    You can not start any application on a client computer that is joined to the domain controller. When you try to start this type of application, you receive an error message similar to the following:
    "Windows cannot access the specified device, path or file. You can not have the appropriate permissions to access the item.

    This can also occur if the user account is damaged. If the computer is not connected to a domain controller, try the following steps.
    1. connect to another user account and create a new user account to fix the damaged user account.
    For more information about creating a new user account and the fixing corrupt user account, visit this link: http://windows.microsoft.com/en-US/windows-vista/Fix-a-corrupted-user-profile
     
    Previous post the results in more detail, so that we can help you further.
     
    I hope this helps.
     
    Kind regards
    Syed
    Answers from Microsoft supports the engineer.

  • OBIEE error - Datetime-01-01 value does not match the specified format

    I get this error after the promotion of Production. It works perfectly well on the Test Server.

    I am using SQL server. After launching the date as a varchar, it works fine.

    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 43119] Query Failed: [nQSError: 46046]-01-01 Datetime value does not match the specified format. (HY000)

    Gurus of OBIEE please help

    JD

    I found the solution as well.

    The Windows Server ODBC driver was old (Version 6). I have who has upgraded to SQL Server Native Client 11.0 and everything works fine.

Maybe you are looking for