Primitive polynomial (generate some Bits VI)

In the attached VI, I'm actually generate bits using the PN sequence and primitive polynomial. I'm having a problem in the primitive polynomial. If I have a primitive polynomial (x ^ 4 + x + 1) can any body guide me how to make it work? I tried different ways but error message.

Thank you

JK

I fixed it my self.

Thank you

Tags: NI Software

Similar Questions

  • Generating some timestamps

    Hello

    I encountered a problem with generating a channel timestamp of entire channels for years, months, days, hours, minutes and dry. All these channels have been read in a binary file as eI32s. Now, I would like to genereate a timestamp of them in #YYYY order. Mm Hh: mm: DD but nothing I've tried works. Ideally, I don't want to loop through the channel values, many preferring to call a function to calculate as:

    Call calculate ("Ch (" ' [1] / date "" ") = DateSerial (Ch (" ' [1] / year "" ""), Ch ("' [1] / month" "" "), Ch (" ' [1] / day "" ")," "#YYYY.)") (MM._DD_»_») ', NULL, NULL,"")

    Should I convert the strings all over I have to text? If so how to do that? "A command such as: call Calculate ("Ch(""[1]/textyear)"" ") = str (Ch(""[1]/intyear"")), NULL, NULL," ") does not work on the channels."

    Should I have read the values as strings of binary string with the plugin in the first place?

    Is there a better way to generate a bit string of stamps in time which are distributed on other channels?

    Thanks in advance.

    Hi tspc.

    I spoke too fast or some thought deeply enough.  Below you will find a use which uses indeed the property of Channel.Factor and a ProcessedChannel to combine only the hours, minutes and seconds channels, but the date is not linear, as the days per month and days per year is variable:

    Void ReadStore (File)
    Dim oBlock: Set oBlock = File.GetBinaryBlock)
    oBlock.BlockWidth = 3424
    Dim oChannelGroup: Set oChannelGroup = Root.ChannelGroups.Add (File.Info.FileName)
    Dim oChannel0: Set oChannel0 = oChannelGroup.Channels.AddProcessedChannel ("DateTime", eR64, eAddProcessor)
    Dim oChannel1: Set oChannel1 = oBlock.Channels.Add ("year", eI32): oChannel1.Offset = 1900
    Dim oChannel2: Set oChannel2 = oBlock.Channels.Add ("month", eI32)
    Dim oChannel3: Set oChannel3 = oBlock.Channels.Add ('day', eI32)
    Dim oChannel4: Set oChannel4 = oBlock.Channels.Add ("h", eI32): oChannel4.Factor = 3600
    Dim oChannel5: Set oChannel5 = oBlock.Channels.Add ("min", eI32): oChannel5.Factor = 60
    Dim oChannel6: Set oChannel6 = oBlock.Channels.Add ("s", eI32)
    Call oChannel0.Channels.Add (oChannel4)
    Call oChannel0.Channels.Add (oChannel5)
    Call oChannel0.Channels.Add (oChannel6)
    oChannel0.Properties.Add "DisplayType", "Time".
    Call oChannelGroup.Channels.AddDirectAccessChannel (oChannel1)
    Call oChannelGroup.Channels.AddDirectAccessChannel (oChannel2)
    Call oChannelGroup.Channels.AddDirectAccessChannel (oChannel3)
    End Sub

    You must call this use to load data files, then run a channel to transform a real number of seconds since 0 AD of the year, month and day channels and add them to the chain of the time, like this:

    Call Data.Root.Clear
    DataFilePath = "C:\NICS\Discussion Forums\tspc\DataFile.abc".
    Call DataFileLoad (DataFilePath, "tspc_abc")

    Presets = Data.Root.ActiveChannelGroup.Channels
    Symbols = Array ("dt", "year", "my", "day")
    ChanRefs = Array (Channels (1), Channels (2), Channels (3), Channels (4))
    (Équation = «dt = dt + TTR (yr & ««/»» & à droite ("" 00"" & Lun, 2) & "" / "" & right "" 00 "" & day, 2, "" # yyyy/mm/dd "" ")").
    Call calculated (equation, symbols, ChanRefs)
    Call the Channels.Remove (Channels (4). Name)
    Call the Channels.Remove (Channels (3). Name)
    Call the Channels.Remove (Channels (2). Name)

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Why C++ SDK always generates some clips from uncompensated image?

    I created a first with video image drop sequence, when I try to make a clip with MXF OP1a preset file using C++ SDK (controller of the exporter)), it's always the video playback image fall not.

    I tried directly from first ( "file-> export-> Media...' ") to export the movie with the same preset file and it works fine.

    I found a comparisons quests (why SDK always generates image trim clips? ) who asked previously, but no solution is given for the particular problem

    It is specifically export controller API.  We are aware of this problem (bug #4122394) and research in a fix for a future version.

  • Check generate some Comp based on the drop-down list box and the selection list?

    I currently have a dropdown list with the three sizing options in it. Then I have two check boxes, one is ticked ideally would create the model to its normal size composition and if other is checked that it would reverse the widthxheight in the size of the composition. Then below that I have a "Generate" button, I want to be able to click and according to my selections, it creates the model.

    Looks like I need a kind of if then statement, but I'm having a hard time putting the two together. See below what I have so far.

    There may be missing parts, but I have it all working in a decibel pallate currently. I don't have functionality related to a button again.

    Any help would be appreciated!

    (also I don't know how to format the script spread here so apologies for that)

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

    palette controls

    templateGen.VerticalCheckbox = new Object();

    templateGen.HorizontalCheckbox = new Object();

    set the values for controls

    templateGen.comLookup = new Object();

    templateGen.compLookup = 'Template1 ';

    templateGen.compLookup = "Template2";

    templateGen.compLookup = "Template3."

    function templateGen_getHashValues (hash)

    { // {{{

    var ary = new Array();

    for (k hash) {}

    ARY.push (Hash [k]);

    }

    return area;

    } // }}}

    menu "composition".

    var panelGrp1 = templateGen.palette.add ('Panel', undefined, 'Templates Comp');

    compGrp1 = panelGrp1.add ('group', undefined, 'List templates');

    compGrp2 = panelGrp1.add ('group', undefined, 'Orientation');

    compGrp3 = panelGrp1.add ('group', undefined, 'Generate');

    templateGen.compList = compGrp1.add ('dropdownlist', LIST_DIMENSIONS, templateGen_getHashValues (bapple.compLookup));

    templateGen.compList.helpTip = "choose the type of desired here device model. All compositions are 60 fps. « ;

    templateGen.compList.selection = 'Template1 ';

    templateGen.compList.graphics.foregroundColor = darkColorBrush;

    templateGen.VerticalCheckbox = compGrp2.add ('checkbox', undefined, 'Portrait');

    templateGen.VerticalCheckbox .value = true;

    templateGen.HorizontalCheckbox = compGrp2.add ('checkbox', undefined, 'Horizontal');

    templateGen.HorizontalCheckbox .value = false;

    templateGen.generateBtn1 = compGrp3.add ('button', undefined, 'Generate');

    applyBtn.onClick =? ;

    When I work with drop-down menus, I always liked to tie the data they represent (like the width and height of the model in this case) directly to the elements.

    I run the code to really check, but it should work like this:

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

    Add models to your drop-down list and store the items in a table

    models var = [];

    models [0] = templateGen.compList.add('item','template1');

    models [1] = templateGen.compList.add('item','template2');

    models [2] = templateGen.compList.add('item','template3');

    set a width and height of each element

    models [0] .width = 1280;

    models [0] .height = 720;

    models [1] .width = 1024;

    models [1] .height = 768;

    models [2] .width = 1920;

    models [2] .height = 1080;

    Choose the item that should be selected by default

    models [0] .selected = true;

    applyBtn.onClick = function() {}

    read the width and height of the selected item

    var width = templateGen.compList.selection.width;

    var height = templateGen.compList.selection.height;

    {if (templateGen.VerticalCheckbox.value)}

    swap width and height

    var temp = width;

    width = height;

    height = temp;

    }

    now create your comp here with the given width and height

    }

  • Why SDK always generates some clips from uncompensated image?

    I created a first sequence: NTSC DV, Codec: DV NTSC, 29.97 FPS, 720 x 480, timecode offset.

    When I try to make a clip with file MXF OP1a (NTSC DV25) presets by SDK, it always generates uncompensated image clip.

    If I use "file-> export-> media..." with the same preset file, exactly compensated.

    "Offset" seems to be an option of sequence and there is no place for config it in the Presets dialog box.

    How can I generate clip image offset by SDK (Controller of the exporter)?

    Now I understand your question.

    There is no API to export controllers to intercept or to modify the rendering, contained in the .epr file being used.

  • generator Pseudo-aleatoire 511

    I'm kinda new generator Pseudo-aleatoire.  I was wondering how to generate a based model 511 V.52 specification:

    511 (2 ^ 9-1) which is a PN 9

    Primitive polynomial: x ^ 9 + x ^ 4 + x ^ 1 = 0

    Shift register taps: Q9 xor Q5

    How translate the polynomial and shift register taps seed or initial input state?  There are examples out there that I can loook?

    I don't know what level you are referring to (v.52) and cannot open Steve link so it can be redundant (and should be validated with the standard). Hope this helps.

    Note, I have found no sequence to validate this and it might need a bit of tweeking.

    Ben64

  • Demarshalling xml with the automatically generated class JAXB2.0 file does not work in jdeveloper 11.1.1.9

    I'm trying to familiarize themselves with JAXB in jdeveloper. I am facing some problems. There are a few test cases for which he works, for others it is not.

    Case 1:

    XML file is created manually. Respective java class to xmlelements is created manually. There is no ObjectFactory.java or jaxb.properties. Demarshalling this XML file works fine.

    Case 2:

    XML file is not created manually. All the respective java classes including ObjectFactory.java and jaxb.properties are generated using the widget ' JAXB 2.0 content XML Schema model "jdeveloper. I deleted ObjectFactory.java, jaxb.properties, and package - info.java. Demarshalling xml with this class file works fine.


    Case 3:

    Even in case 2, but this time I do not delete or change whatever it is generated and used as it is. It does not work. Get the following error.

    Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
    javax.xml.bind.UnmarshalException
     - with linked exception:
    [Exception [EclipseLink-25008] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: A descriptor with default root element rss was not found in the project]
      at org.eclipse.persistence.jaxb.JAXBUnmarshaller.handleXMLMarshalException(JAXBUnmarshaller.java:816)
      at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:109)
      at com.example.jaxbintro.JAXBExampleClass.main(JAXBExampleClass.java:36)
    Caused by: Exception [EclipseLink-25008] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: A descriptor with default root element rss was not found in the project
      at org.eclipse.persistence.exceptions.XMLMarshalException.noDescriptorWithMatchingRootElement(XMLMarshalException.java:129)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshallerHandler.startElement(SAXUnmarshallerHandler.java:208)
      at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1598)
      at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:455)
      at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:401)
      at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:239)
      at org.eclipse.persistence.internal.oxm.record.XMLReader.parse(XMLReader.java:157)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:688)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:271)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:258)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:218)
      at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:306)
      at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:106)
      ... 1 more
    

    The project is included in the annex to this issue. It is ready for use. More information in the commentary to the java code. The main class is JAXBExampleClass.java.

    What is the problem with case 3?

    OK, I've been messing around with codes generated a bit and found the solution. The problem is that the value of the XmlSchema namespace had error in package - info.java class. There is no specified XmlSchema namespace in the XML file. Thus, the given value in the package - info.java was wrong.

    @javax.xml.bind.annotation.XmlSchema (namespace = "http://www.example.org", value / / wrong, set it to an empty string or that of your xml file, if it has any)

    elementFormDefault =

    javax.xml.bind.annotation.XmlNsForm.QUALIFIED)

    package com.example.jaxbintro.xmlerror;

    After you set the namespace to the empty string, since my xml file do not have one, code ran very well.

    @javax.xml.bind.annotation.XmlSchema (namespace = "",)

    elementFormDefault =

    javax.xml.bind.annotation.XmlNsForm.QUALIFIED)

    package com.example.jaxbintro.xmlerror;

    The file package - info.java can also be removed and it will work. For more details on the package and XmlSchema annotated level, what information on the package class is for, be found in the following link.

    https://JAXB.Java.NET/NoNAV/jaxb20-FCS/docs/API/javax/xml/bind/annotation/XmlSchema.html

  • Generate PDF with itext in PL/SQL

    Hello

    I am generating some PL/SQL PDF using itext. I loaded iText - 5.0.4.jar, but found a few invalid javaclass, after going through a lot of forums I found some suggestion that I need to load a jar file more so I loaded the
    loadjava - < user > / < pw > bcmail-jdk14 - 147.jar
    loadjava - < user > / < pw > bcprov-jdk14 - 147.jar
    then again loaded iText - 5.0.4.jar, but the result is the same.
    I use oracle DB 11.2 on 64-bit Windows.
    I also tried with bcprov-jdk15on - 147.jar and bcmail-jdk15on - 147.jar
    because the version of java database is
    Java version "1.5.0_17.
    Java (TM) 2 Runtime Environment, Standard Edition (build 1.5.0_17 - b04)
    Java for 64-bit Server VM (build 1.5.0_17 - b04, mixed mode)

    need help to solve this problem. Please let me know if you need more information. Thnax

    I have tried with - genmissing - v - r but had the following problems.
    What authorization I give to load jar files also I want to drop the file jar to do a fresh charge, but dropjava gives file not found error.

    jump: com/itextpdf/text/pdf/hyphenation/CharVector of class
    resolution: com/itextpdf/text/pdf/standard/standard class
    error: com/itextpdf/text/pdf/standard/standard class
    ORA-29534: referenced object SAMPACC.com/itextpdf/text/pdf/BaseFont could not
    t be resolved
    resolution: com/itextpdf/text/pdf/hyphenation/HyphenationTree of class
    error: com/itextpdf/text/pdf/hyphenation/HyphenationTree of class
    ORA-29534: referenced object SAMPACC.com/itextpdf/text/pdf/hyphenation/Simpl
    ePatternParser could not be resolved
    jump: class com/itextpdf/text/pdf/hyphenation/TernaryTree$ iterator$ Item
    jump: class com/itextpdf/text/pdf/hyphenation/TernaryTree$ iterator

    Error creating java, security, interfaces, ECPublicKey class
    ORA-29545: Malformed class: user attempted to load a class (java.secu
    rity.interfaces.ECPublicKey) in a small set. The authorization may be part
    d using dbms_java.grant_permission (, LoadClassInPackage...
    ORA-06512: at line 1

    The following is not
    class java, security, interfaces, ECPublicKey: creation (failure)
    output: failure occurred during treatment

    Published by: pkpanda on January 9, 2013 18:01

  • Firefox 64 bit (64 bit x 64 Firefox 3.6.3) on Windows 7 Download Site. Is this official?

    I came across a 64-bit download of FireFox on the Windows 7 download site - http://www.windows7download.com/win7-firefox-64bit-x64/tafschzm.html - it's official? Because according to the own Mozilla download site, there is no timetable yet for a 64 bit FireFox.

    generates 32-bit works very well at the time anyway. For now, the 32-bit versions are faster compared to 64-bit build, built on the same source.

    As for officially supported 64-bit Firefox version for Windows, much earlier that can be is currently Firefox 12.0

  • 8-bit CRC-CCITT

    Hello

    I'm trying to generate a bit 8 CCITT CRC with the polynomal 9-bit U3 + U2 + U4 + U8 + 1

    I have studied and tried to change the CRC 16 bit found here calculator and Vi post by Shoneill here, but I'm getting nowhere...

    Generator of CRC should be initialized to 0, LSB is sent first.

    In the datasheet, I found the example:

    Data 1:1010 0000

    2 data: 0000 0011

    CRC: 0010 1010

    Any intervention on how I can modify the existing 16-bit calcultors, or would it be a better idea to start from scratch?

    Solved. Change the shoneill vi finally gave me the result I needed.

  • How to make the data previously generated reuse vi?

    Attached VI is just a simple example for my problem. I want to generate some data (or read it thanks to a shared variable, etc, etc) and create statistics on these data. In this example, a histogram and value medium.

    Now, if I stop the VI & restart again, the first time that I generate a new data point, all old data is deleted the chart and indicators. I want to change my program, so he'll see actually yet all the data I have accumulated before the table.

    I know how to do for example in matlab:

    output = myfunction (output)

    so when I call this function, the first 'myfunction()' time it will generate the output array I can then move again on the next call so that the previously generated data will be used.

    So, how do I do that in Labview?

    Make a search for globals functional, which is based on the use of a shift register uninitialized for a while loop. You basically already have this if you simply delete the matrix constant which initializes the shift register holding the data table. It is a technique that was used before that global variables have been introduced. It's an old technique, but it is very effective and the basis for the Action engines. Jim Kring suggested a version no.-loop for LabVIEW 8.5.

    Note: You perform a comparison on floating-point values. As noted several times on this forum, it is doomed to failure because of how floating point numbers are stored in computers (this has nothing to do with LabVIEW).

  • Generate SNMP traps for monitoring tests

    Hi all

    We would like to test our network management system effectively.

    We have configured SNMP. But as we cannot generate some breakdowns that we want to generate some test traps.

    Could you tell me if there is a way to generate the CLI for i.e. false SNMP traps?

    Ideally, we would like to test things like: excess temperature, the FAN failure, failure of power, etc...

    Any help would be appreciated,

    Thank you very much in advance

    Concerning

    Sorry I see you wanted traps, not sys records my bad, so try this link https://supportforums.cisco.com/docs/DOC-11745

    Sent by Cisco Support technique iPad App

  • Using keys with 4096 bit RSA encryption

    Hello

    I would use encryption RSA 4096 bit on BB device (for the test I use BB 8300 with 4.5.0.52 b75 OS).

    Is this possible?  I am getting exception in this code:

    RSAKeyPair sampleKeyPair;
    sampleKeyPair = new RSAKeyPair (new RSACryptoSystem (4096));

    Change of 4096 by 2048 solve this exception, but it is not the solution for me.

    Thank you.

    I answer myself.

    After reading "Blackberry Enterprise Soluttion Security, Technical Overview", I found that I can use the 4096 bit encryption algorithm, but key generation is limited to 2048-bit (probably performance issue).

    If the problem was not with

    new RSACryptoSystem (4096)

    but with the generation RSAKeyPair.

    I had received an RSA private key from outside, so I need to generate a (at least in the current state of the project I'm working on)

    I'm really curious to know, if someone know how to generate 4096 bit RSA key.

  • Exporting DNxHD in 10-bit

    I can't get my export of DNxHD for export in 10-bit depth.  The original file is DNxHD 10 bits, but when I export using the settings shown on the attached photo and re - import and make any color ranking... obviously she went to 8-bit.

    (1) there is no effect on the non 32-bit images.

    (2) the sequence is set up for a bit depth of max.

    (3) when I have the clip prior to export and re-import of rank, he clearly is 10 bits.

    I save to DNxHD 10-bit and like to use DNxHD as my intermediary when send to other programs or simply to flatten a complicated timeline part.  My other options produce too huge files (animation, dpx, etc.) and I really want to keep in the family.

    Any ideas how I can get the first exporting DNxHD to a 10-bit?export1.jpgexport2.jpg

    EUREKA!

    Discovered that the clamping occurs when some bit depth options are selected in the export Panel.  Apparently when 24-bit or 32-bit is selected, it fixed to 8 bits.  But when 48-bit or 64-bit is selected, no clamping occurs.  I wonder if it is limited to DNxHD or not.

  • When you use the buttons to generate points of quiz - can problems with cpQuizInfoPointsscored anyone help?

    Hello

    I am putting together that a test is several sections which must give "advice" on measure to users based on their interactions across multiple slides.  I tried this several ways but can get anything to work for my needs.

    Is closer to just using the keys to generate some test scores (each button can be given an individual score for generating marked differently from interactions on each page) and then attempt to deliver scenarios advice branched using advanced actions 'if cpQuizInfoPointsscored variable if' less/more than... etc go slide....  I'm frustrated by the fact that the cpQuizInfoPointsscored variable does not seem to pick up dozens of buttons, even if you include the points in the quiz and these scores come out at the end of the quiz or the results page.

    These scores are obviously stored somewhere - is it variable anther I can go to read these scores at some point and branch a scenario in response?  Is there another way to do this?

    See you soon,.

    Matt

    I would recommend that you create your own user variables to measure the success of the interactions and then use the values of these variables to trigger the branching of fast Action.  As you have seen, some score is computed only once you get to the Quiz results slide.  Having your own variables will give you more freedom to do what you please.

Maybe you are looking for

  • Safari issues - 9.1.3 version

    Hardware: Macbook Air (early 2015) - OS X Yosemite (10.10.05) Guys good day. I've just updated my OS X Security and Safari last night. I am currently having problems with my Safari, it varies not being able to load a Web site (cannot connect cannot c

  • How can I empty trash after that deletion of items in the download file - when I click on the trash said notice

    I left items downloads in the trash, and when I tried to empty the trash I got a notice that it was unable to empty because of some elements.  Now, I can not find that notice and I can not open Trash because I get a notice that it's been emptied.

  • Why is my new iPad Pro so more time to alert me on the texts then my other devices?

    I recently bought an iPad Pro 9.7 inches and looks like a backup and restore of my iPad 2. I have also an iPhone 4S and an iPad 2. I noticed it takes about 30 seconds for my iPad Pro to get them then my other device. I checked all my settings and res

  • DV7-4173us: Re-install windows 7

    I have a dual boot configuration on my laptop: Win 7 Home edition and Linux Mint. The two works for 2 or more years now, BUT... Question #1: My Win 7 home edition is messed up. She has no updates of software on hundreds of times. So whenever I stop W

  • T410 Optimus readers is no longer my HDTV

    Today my T410 anchored (with optimus) refuses to drive my HDTV. The only thing I did differently is that I accosted the T410 it would close down.  I only anchored hot probably less than 5 times since the purchase of the T410. Maybe the NVIDIA graphic