Generate CRC table with Formula Node

I want to generate an CRC table by formula Node,but the table which generated is not correct,could someone with experience could help me?
uInt8 j;
uInt16 i;
uInt16 crc, c;
uInt16 crc_tabccitt[255];
for (i=0; i<256; i++)
 crc = 0;
 c = ( i) << 8;
 for (j=0; j<8; j++)
    if ( (crc ^ c) & 0x8000 )
        crc = ( crc << 1 ) ^ 0x1021;
    else
        crc = crc << 1;
    c = c << 1;
crc_tabccitt[i] = crc;

How is it not correct?
Post your VI with a description what is wrong and what it should be.

Similar Messages

  • Embed table with formulas into a keynote page....

    Someone know how to embed a table with formulas of excel or numbers into a keynote page?
    Attached is a template that what I want to do but don't have formulas in side the cells.
    Thanks guys

    Copy the table in Excel then paste on the slide in Keynote

  • Generate Alter Table with ERWin

    Hi all,
    Is the a way to Generate Alter Table with ERWin.?
    I need this to generate release of a database, thats contains only
    the updated tables.
    thanx

    If you have a stored/saved model of the database or the original schema structures in a script file, you can use ERWin to compare that to the current database. You can have ERWin generate a script the contains the differences which in most cases would be alter statements.

  • Error while generating  BI Reports with Formules From Oracle 10g reports

    Hi Team,
    I had a problem of viewing reports in Bi Publisher. I will explain what i am doing
    I an taking an example table emplyee to generate the reports
    create or replace package body tstPkg as
    I am creating Package Header as Below
    function check_role(p_sal number) return varchar2 as
    v varchar2(100);
    begin
    if p_sal > 2000 then
    v := 'MGR';
    else
    v := 'EXEC';
    end if;
    return v;
    end;
    and I am creating Package Body
    create or replace package tstPkg as
    function check_role(p_sal number) return varchar2;
    end;
    after creation i am generating a report by using the formulae so that in paper layout it will generate 14 pages
    with an extra column in a passage format.
    After this i saved it in specific folder
    Then i am converting to XML by using "Reports Converter" Tool to xml.
    By using ConvetionTool ioracle.apps.xdo.rdfparser.BIPBatchConversion , i converted the xml file and it generated .Pls files , template files and the rest..
    After this i cpoied the folder structure into bi publisher reports, then i refreshed the metadata and i changed the defualt data source. but it showing the error as
    ORA-00923: FROM keyword not found where expected
    and my quetry is like this in data template
    select *,EmpSal.cf_1formula(emp.SAL) CF_1 from emp
    How to resolve the above problem?
    Regards
    Bhuvan
    end;
    Edited by: 867649 on Jun 22, 2011 6:38 AM

    Hi,
    When i tried to compile below packages. It gave 'Warning: Package altered with compilation errors.' message for both.
    DBMS_SWRF_REPORT_INTERNAL
    DBMS_SWRF_INTERNAL
    Again i came back to original position. Now again all 4 objects are in INVALID state. Please advice.
    Regards

  • Units with formula node

    hi,
    I have a little problem with the formula node. I am trying to multiply h (Planck constant) by c (speed of light), already defined in Labview. But i can't link them to the entries of a formula node because of the units.
    By the way, i have another problem which is that if I want to write 6.63E-34 for h, i have an error and i think that it comes from "E".
    Do you have any ideas ?
    Thank you for your time!
    Solved!
    Go to Solution.

    You can use the Convert Unit function to get a unitless number. You just need to enter the units of the constant in the Convert Unit function. For example, for Planck's constant:
    By the way, what is it that you're doing that you believe you need to use a formula node as opposed to just coding it in LabVIEW? Just curious.
    Message Edited by smercurio_fc on 07-01-2009 11:24 AM
    Attachments:
    Example_VI.png ‏3 KB

  • Low pass filter with formula node

    Hi guys.
    My teacher gave me an exercise (attached) in which i have to realize a low pass filter with the formula node. He gave me also the input/output but I  have no idea where to start.
    Can you help me?
    Attachments:
    Exercise6.vi ‏10 KB

    Check out this thread:http://forums.ni.com/t5/LabVIEW/Butterworth-Filter/m-p/2496680
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to generate xml file with multiple nodes using sqlserver as database in SSIS..

    Hi ,
    I have to generate the xml file using multiple nodes by using ssis and database is sqlserver.
    Can some one guide me on to perform this task using script task?
    sudha

    Why not use T-SQL for generating XML? You can use FOR XML for that
    http://visakhm.blogspot.in/2014/05/t-sql-tips-fun-with-for-xml-path.html
    http://visakhm.blogspot.in/2013/12/generating-nested-xml-structures-with.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Generating table with XML Type column while registering schema

    Hi,
    Is it possible to generate a table with an XML Type column during schema registering. Does the "xdb:defaultTable" always create an XMLType table?
    Thanks.
    Rahul

    "You can create XML schema-based XMLType tables and columns and optionally specify, for example, that they:Conform to pre-registered XML schema ."
    http://download-east.oracle.com/docs/cd/B10501_01/appdev.920/a96620/xdb01int.htm

  • Table with tree view on master column

    Hi,
    I'm trying to generate a table with tree view on the master column and I get the table values from an RFC.
    The problem is that I need to control some properties like "expanded" or "isLeaf" and I can't add the value attributes to the model node to control the rows.
    Any ideia on how to overcome this (what i  think is a) problem?
    Thanks for the help.
    Pedro Barbosa

    Hi Subramanian,
    Maybe I didn't explain myself right. I also followed that tutorial with success but in this case i have on my custom controller:
    -MyNode (model node)
      - Output
        - MyTable
          - attribute 1 (model attribute)
    In my context/view controller the only way i can map that node is by using a model node referecing "MyTable" but this way i can't add any of my attributes to same level of the attributes (is that the ideia right?).
    I also tried to recreate the structure in the view with value nodes and value attributes with the same type as the model attributes and then bind them but i always get "Incompatible context element type".
    Am i missing something?
    Pedro Barbosa

  • Array output from formula node

    How to get an array output from the formula node.I am trying to use a for loop inside the formula node and want an array output.

    You cannot place a For or While Loop inside the formula node.
    Here is what the Help Description says about the syntax inside the Formula Node:
    Formula Node
    Evaluates mathematical formulas and expressions similar to C on the block diagram. The following built-in functions are allowed in formulas: abs, acos, acosh, asin, asinh, atan, atan2, atanh, ceil, cos, cosh, cot, csc, exp, expm1, floor, getexp, getman, int, intrz, ln, lnp1, log, log2, max, min, mod, pow, rand, rem, sec, sign, sin, sinc, sinh, sizeOfDim, sqrt, tan, tanh. There are some differences between the parser in the Mathematics VIs and the Formula Node.
     Place on the block diagram
     Find on the Functions palette
    Refer to Creating Formula Nodes and Formula Node Syntax for more information about the Formula Node and the Formula Node syntax.
    Note  The Formula Node accepts only the period (.) as a decimal separator. The node does not recognize localized decimal separators.
    <SCRIPT type=text/javascript>if (typeof(writeVarRefs)=="function"){writeVarRefs("763");}</SCRIPT>
    <SCRIPT type=text/javascript> if(typeof(lvrthelp763) != "undefined"){document.writeln(lvrthelp763)}</SCRIPT>
    <SCRIPT type=text/javascript> if(typeof(lvfpga763) != "undefined"){document.writeln(lvfpga763)}</SCRIPT>
    <SCRIPT type=text/javascript> if(typeof(lvemb763) != "undefined"){document.writeln(lvemb763)}</SCRIPT>
    <SCRIPT type=text/javascript> if(typeof(lvpdahelp763) != "undefined"){document.writeln(lvpdahelp763)}</SCRIPT>
    <SCRIPT type=text/javascript> if(typeof(lvtpchelp763) != "undefined"){document.writeln(lvtpchelp763)}</SCRIPT>
    <SCRIPT type=text/javascript> if(typeof(lvblackfin763) != "undefined"){document.writeln(lvblackfin763)}</SCRIPT>
    <SCRIPT type=text/javascript> if(typeof(lvdsp763) != "undefined"){document.writeln(lvdsp763)}</SCRIPT>
    Example
    Refer to the Create Function with Formula Node VI in the labview\examples\general\structs.llb for an example of using the Formula Node.

  • Formula node: type conversion

    Hello guys
    I have LV 5.0 and have to edit a script which has some kind of overflows. For testing I set all variables to the hightest usable range - extended or i32. Now I see, in all formula nodes, there are type conversions. How can I change the type of the inputs/outputs of the formula node?
    Hardware_Tester
    My first language is German, please ignore my faults...

    Hi,
    I forgot that you run Lv5.0. My example refers to Lv7.1.
    As far as I know in Lv7.1 the input variable type changes automatically as you connect a control.
    On the contrary the output is DBL by default but you can change it in the formula node introducing an explicit declaration of that variable (see "h" in the attached picture).
    Here are some useful link:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=12253&requireLogin=False
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/d6bed7d73659c43586256a7300691c26?
     Sorry, I understand that this cannot solve your problem but I don't remember how Lv5.0 works with formula node.
    Regards
    CLD - Labview Certified Developer
    Attachments:
    untitled3.gif ‏42 KB

  • Error on Formula Node :Error on line 1 is marked by a '#' character:

    Hey!!
    This is a part of my prog..
    Whats the problem with the prog?
    Error on line 1 is marked by a '#' character: "y=[#uvl*50+(ul+ull+utlll)*40+(um+umm+umm"
    Attachments:
    Formulanode.vi ‏7 KB

    you did not define "n" or "d". You can declare them in the formula node code, or even easier, just add outputs with these names.
    (What is your obsession with formula nodes, why not use wires instead? This is LabVIEW! )
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Formulanode1MOD.vi ‏7 KB

  • Table with Pages:  � Previous  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11

    Hi!
    How to generate a table with Pages: "� Previous 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 Next �"
    like when you do a search in this forum..
    but my data will be comming from a database.
    Thanks in advance!
    Regards,
    Pao

    Check out this link,
    http://forum.java.sun.com/thread.jspa?forumID=45&threadID=417030
    if you're not clear, let me know your email id...I will send my source code.

  • Precision of formula node?

    I need to calculate a simple formulae.
    But different results between two program.
    Can you check which one is correct using other program?
    or tell me the principle of calculation with formula node?
    Enclosed is the example.
    LabVIEW: 8.0614613965
    Excel: 8.0614616898
    -labmaster
    Attachments:
    excelexam.xls ‏584 KB
    LabVIEW exam.vi ‏7 KB

    If you do all the calculations in regular LV functions rather than in the formula node, you can use Extended Precision data types.  That changes the 17th digit right of the decimal point.
    When I look at the data at intermediate steps (the individual terms summed to get e_ITS90) I see that the spreadsheet matches to 7 to 13 significnat digits, depending on the exponent.  Note that for the third term (with exponent = 0), the spreadsheet calculation does not return the g2 coefficient: g2 = 19.542636 and g2*x^0 = 19.54263612. I set up a column in the spread sheet with the values equal to the g[i] coefficients but displayed with as many digits as the spreadsheet allows. g1, g2, and g3 differ from what is entered in column C in the first several digits to the right of the last digit entered. When I do the same thing in LV, the differences tend to be in the 15th or 16th digit.
    All of these things are the result of the way numeric data is represented in the computer, as Jeff pointed out earlier.  It appears that you can get somewhat more precison in LV than in the spreadsheet. I did not do any accuracy checking.
    Lynn
    Attachments:
    LabVIEW exam.2.vi ‏11 KB

  • Need help with selfmade Hough Transform in formula node

    Hello everyone,
    I'm making my own Face Recognition system and I'm at the phase of making a Hough Transform of my captured CAM-image.
    So if a pixel is not zero; I generate its sinusoidal with -90° to 90° and calculate the corresponding value with the general Hough formula. Then for the voting process I increase the value of every pixel by 1.
    Now the output is just a bit darker but there is no transformation at all.
    I think I interpreted the algorithm wrong or I missed a detail in my coding..
    Thanks in advance
    Solved!
    Go to Solution.
    Attachments:
    Houg Transform.zip ‏229 KB

    I looked at your code and have some comments.
    I looked at the Wikipedia article on the Hough transform. It appears that the definition in that article is somewhat different from your code.
                                             from Wikipedia
    for(i=-90;i<=90;i++)
       { Hough_Space[x][y] = Array[x][y]*cos(i)+Array[x][y]*sin(i);
         Hough_Space[x][y]+=1;
       }                                                                                        From your VI.
    Note that the factors multiplying the sine and cosine terms are different.
    The sine and cosine functions in the Formula Node take arguments in radians. The -90 to +90 in your code suggests degrees.
    You may want to use a different threshold for creating the Hough Space array. The data is unsigned integer and the minimum value in your image is 25. So no pixels in your image are excluded and very few in most images will have pixels exactly equal to zero.
    Is there a reason you prefer to use the formula node rather than the usual LV functions? 
    Lynn

Maybe you are looking for

  • HT201317 How do I sync video from ipad to computer using Lion and iphoto 9.4.2

    I have new Mini Ipad and newest version of iphoto, Lion O/S.  Photo stream does not transfer video from ipad to computer.  Transfer app very slow and does not always work even though all devices and Wi Fi 5 feet from each other.  What other method ca

  • Delete position in CRMD_ORDER

    Hi, I want to send up a warning message when the user mark a position and then delete the row entirely. I have noticed that when I turn on debugging mode when pressing "delete button" nothing happens, so the deletion seems to appear above server leve

  • Is reading local file possible?

    Hi, My intention is to use Flash 8 Pro as a tool allowing to upload large files into the server (something like FTP client). Unfortunately a lot of servers have tight restrictions for transmition time (sometimes limited to 30s). Work around to this c

  • Bank account data is deleted from vendor master.

    Hello, My user wanted to change in the vendor master data Bank Account Number and VATnumber . So she deleted and entered new number for both . We we want to give confirmations we get confirmation only for VAT number . We saw in the field changes . Th

  • Adminstrator account requires password to move an item to the trash

    My administrator account has suddenly started to require me to enter my password before I can move anything to the trash, which is a nuisance. I have visited System Preferences>Users & Groups, and the box "Allow user to administer this computer" rema