How to implement logical equation as LabView?

Hi,
I have this bit test logic I need to implement as a Labview code.
Should I use formula node or either something similar to this already in Labview?
"((var & (1<<bit)) != 0)"  where 'var' may be 8, 16, or 32bit, 'bit' is a number 0 - 31 representing
a bit number. 0 is the least significant bit.
Thank you,
Do
Solved!
Go to Solution.

Rotate, And, Not equal to zero
Message Edited by Ravens Fan on 08-10-2009 09:36 PM
Attachments:
Example_VI_BD.png ‏2 KB

Similar Messages

  • Implementing Differential Equations using Labview fpga modules on PXI-7811R

    Dear,
        I am working on   implementing dynamic systems modeled ordinary  differential equations on PXI-7811R FPGA using labview FPGA. Is there any body who can help me how to implement differential equation on PXI devices uding Labview FPGA, please? Is there any integrator in Labview FPGA, module. I used Discrete Integerator in LAbview FPGA  module in Maths palette, but i hesistated if it really works . I really appreciate your help,
                                        Gammee

    Thank you for posting on the discussion forum.
    You can solve differential equations using LabVIEW FPGA but you may run into some significant difficulties in doing so. If you are not tied to using FPGA, you could try using LabVIEW real-time, which may make things much easier. But if you would like to stick with FPGA, see the link below for a list of examples that may be helpful:
    http://search.ni.com/nisearch/app/main/p/bot/no/ap/tech/lang/en/pg/1/sn/ssnav:ipn/q/differential%20e...
    Below is a link that you can review to better understand the functionality of the discrete integrator should you choose to go that route:
    http://zone.ni.com/reference/en-XX/help/371599B-01/lvfpga/discrete_normalized_integrator/
    I hope that helps.
    Best,
    Rachel
    Rachel D.
    Applications Engineer
    National Instruments

  • How to implement this code in labview?

    How do implement this pseudo code in labview? Please keep in mind "a" and "c" in the code below ARE VARIABLES
    for i =0 to i=maxvalue
           if i <= a 
               output = output2
           else if i > a AND i<=c
               output = output2
           else if i < c 
               output = output3
           else i = d
               output = output4
    I understance i can use a case structures and modify the label, but i do not know how to make the label dependent on a variable value. 
    Thanks 

    Try an array of boudaries and use threshold array. See this old example:
    Now just iterate over an array of values using a FOR loop.
    LabVIEW Champion . Do more with less code and in less time .

  • How to implement wafer mapping using LabVIEW?

    Hello LabVIEW Masters!
    I am having an incoming project which includes controlling and gathering information from a PROBER. One of the difficulties I am having now is how to implement a WAFER MAP using LabVIEW. According to my customer requirements, the wafer element ranges from 6k to 23k. I guess doing all the element (one die = one led ctl/indicator) will be a hell of a task, especially on how to effectively manipulate each elements. Does anyone have better idea on how to this?
    Please, I badly need your help.. 
    Thanks and Regards,
    Dennis DG
    Solved!
    Go to Solution.

    Hi Dennis,
    Is it okay if you send to me the working VI also?
    No, it's not ok. I made that program for my customer...
    As I am not too familiar in using intensity graph.
    That's no reason to hand over programs for free...
    My customer also request me that if the cursor hover on the wafer map, he wants the x,y corrdinates to be displayed.
    I also have such a feature. Did you notice the little yellow cursor near the center of the wafer? One could easily change that to use a MouseMove event instead...
    He also wants to select some elements in the wafer map and come up with the coordinate values to do some testing.
    That's related to the cursor thing...
    Some points:
    - You have a customer that pays you. Why should I offer work for free?
    - You can send me contact dates of your customer, I will make him an offer...
    - When you take an job to provide software you should be able to code the software...
    - The VI(s) are now some years old. I didn't code so well back those days and don't want to hand out those VIs as they are right now.
    - I included some "license management" deep inside that program, I would have to remove this and spend time on testing afterwards...
    - The VIs are based on the PROBER output format used by the customer. All the file handling has to be changed for/by you...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to implement autotuning pid in labview in flow control process????

    I tried the same way as Example available in LabVIEW..... that is general auto PID simulator... But that didn't worked out for me.....

    The 'General Auto PID Simulator.vi' example uses the technique "PID Relay" feedback where it tries to calculate the PID values based on the relay feedback, but using the PID also in the loop:
    (http://zone.ni.com/reference/en-XX/help/370401H-01/lvpidmain/pidrelay_alg/)
    This technique works, but it requires initial PID parameters that will make the relay setpoint stable and it is able to obtain the results you are expecting.
    Now, for flow control, you can try the most classic techniques. Please use other shipping examples that start with "autotuning" and in special this:
    C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\control\PID\Autotuning PID Online.vi
    In this VI, you can choose other techniques like open-loop step response, closed-loop step response and the original 'relay feedback' where it doesn't have a PID inside the estimation loop.
    Anyway, here you have more information about those techniques http://zone.ni.com/reference/en-XX/help/370401H-01/TOC4.htm.
    One more thing: keep in mind that depending on the plant parameters, a PID could not be suited for your application and a more complex controller need to be developed.
    Hope this can help you...
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • How to implement logical delete in on table

    Hi,
    I am working in Jdev11.1.1.3.0
    I have one requirement, where i need to delete a row from the table when i click on delete button. But it shouldn't delete/remove from the VO, when i did execute vo.hasNext i should still need this row.
    Can any one suggest me the best way.
    -Thanks.

    hi,
    https://forums.oracle.com/thread/2225878
    http://www.jobinesh.com/2011/05/soft-deletion-of-rows.html
    http://deepakcs.blogspot.com/2013/01/ejb-dc-deleting-multi-selected-rows.html
    https://forums.oracle.com/thread/2534813
    http://www.youtube.com/watch?v=zl5QjihrU0k
    thx.

  • How to implement this complex logic on rpd

    How to implement following sql logic on OBIEE 10g RPD...whole thing to be implemented as single column on presentation layer.
    to calculate numerator===
    select sum(flag) as ap_account_no,exp from                                                                                           
    (select a.invoice_id as invid,a.payment_no, max(a.payment_dt) as payment_dt,max(a.due_dt) as due_dt,b.expenditure_type as exp,                                                                                          
    case when max(a.due_dt)+ 3 > max(a.payment_dt)                                                                                           
    then 1                                                                                           
    else 0                                                                                           
    end As Flag                                                                                          
    from Supplier_inv_pymt_map a, po_invoice_map b                                                                                          
    where a.invoice_id= b.invoice_id and a.invoice_dt!=a.due_dt and a.usd_gross_AMOUNT >0 and a.PAYMENT_STATUS!='VOIDED' and to_char(a.payment_dt,'MON-YYYY')='JUN-2011'                                                                                          
    group by a.invoice_id, a.payment_no,b.expenditure_type) GROUP BY exp                                                                                          
    to calculate denominator===
    select count(invid),exp from                                                                                      
    (select a.invoice_id as invid,a.payment_no, max(a.payment_dt) as payment_dt,max(a.due_dt) as due_dt, b.expenditure_type as exp                                                                                     
    from Supplier_inv_pymt_map a, po_invoice_map b                                                                                     
    where a.invoice_id= b.invoice_id and a.invoice_dt!=a.due_dt and a.usd_gross_AMOUNT >0 and a.PAYMENT_STATUS!='VOIDED' and to_char(a.payment_dt,'MON-YYYY')='JUN-2011'                                                                                     
    group by a.invoice_id, a.payment_no,b.expenditure_type) GROUP BY exp                                                                                     
    tables n column used in sql r available on physical layer....
    can anyone help

    Hi
    if you don't want to aggregate try to define a user function
    analytic_sum($(value))
    implémented by
    sum($(value))
    after that
    replace your
    sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)
    by
    analytic_sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)

  • How to implement this aggregate logic at target column in odi inteface mapp

    sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)
    how to implement this aggregate logic at target column in odi inteface mappings

    Hi
    if you don't want to aggregate try to define a user function
    analytic_sum($(value))
    implémented by
    sum($(value))
    after that
    replace your
    sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)
    by
    analytic_sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)

  • How to implement exist some x, all x these higher order logic in F#?

    http://www.cl.cam.ac.uk/~mjcg/OGI/Notes/HOL.pdf
    how to implement exist some x, all x these higher order logic in F#?
    where can find the example of open source code have these implementation?
    computing nightmare

    i do not know the whole code.
    i just imagine all x  is just a full one in logic table
    i guess that there are two cases
    for example,
    case 1
    Or(All x, B) 
    1 0 -> 1
    1 1  -> 1
    1 0 -> 1
    1 1 -> 1
    case 2
    All x such that B and C
    v x And(B, C)
    And(Or(v x , B), Or(v x, C))
    1 0      
    1 1
    1 0
    1 1
    becomes
    1
    1
    1
    1
    but all these just my guess, i still do not know how all x works in logic table
    is there open source example code in github show all x and exist some?
    exist some in logic table
    0   or    1  or  1  or 1 
    1          0       1      1
    1          1       0      1
    1           1      1       0
    computing nightmare

  • How to implement Non linear Curve fitting (lsqcurvefit of matlab) in Labview

    Hi Labview Team,
    I am looking a way to implement "lsqcurvefit" command of matlab in Labview to do some curve fitting ; basically to  Solve nonlinear curve-fitting (data-fitting) problems in least-squares sense, at present I couldn't find a better way to implement it. Can you please give me some suggestion on this to how to implement this " curve-fitting: on labview.
    Thanks,
    Ankit Gupta

    You did not say you have the mathscript module. Do you? In any case, labview has a rich set of native nonlinear fitting tools. This seems like a better option.
    LabVIEW Champion . Do more with less code and in less time .

  • How to implement this logic in odi

    suposse my table is like this
    a b c
    1234 01-JAN-09 0
    1234 02-JAN-09 1
    1234 05-JAN-09 1
    1244 06-JAN-09 1
    1234 10-JAN-09 0
    1234 13-JAN-09 1
    1234 25-JAN-09 0
    1234 27-JAN-09 1
    1234 30-JAN-09 1
    1235 01-JAN-09 1
    1235 02-JAN-09 0
    1235 05-JAN-09 1
    1245 06-JAN-09 1
    1235 10-JAN-09 1
    1235 13-JAN-09 3
    1235 25-JAN-09 2
    1235 27-JAN-09 0
    1235 30-JAN-09 0
    i want out put like this
    a b c
    1234 01-JAN-09 0
    1234 02-JAN-09 1
    1234 05-JAN-09 2
    1244 06-JAN-09 3
    1234 10-JAN-09 3
    1234 13-JAN-09 4
    1234 25-JAN-09 4
    1234 27-JAN-09 5
    1234 30-JAN-09 6
    1235 01-JAN-09 1
    1235 02-JAN-09 1
    1235 05-JAN-09 2
    1245 06-JAN-09 3
    1235 10-JAN-09 4
    1235 13-JAN-09 7
    1235 25-JAN-09 9
    1235 27-JAN-09 9
    1235 30-JAN-09 9
    to get out put like that iam using this query
    select a,b,sum(c) over(partition by a order by b) from table.
    how to implement "sum(c) over(partition by a order by b)" in odi interface mappings

    Hi
    if you don't want to aggregate try to define a user function
    analytic_sum($(value))
    implémented by
    sum($(value))
    after that
    replace your
    sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)
    by
    analytic_sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)

  • How to implement mapping logic?

    Hi Experts,
    i have 5 idocs coming with structure as this.
    IDOC-1* SEGMENT-EKPKF*
        SEGMENT-EKSEG
        field-KOART=D
        field-SKHZG=H
        field-WRBTR=200.00
       SEGMENT-EKSEG
        field-KOART=D
        field-SKHZG=S
        field-WRBTR=230.00
    IDOC-2 SEGMENT-EKPKF
        SEGMENT-EKSEG
        field-KOART=D
        field-SKHZG=H
        field-WRBTR=50.00
       SEGMENT-EKSEG
        field-KOART=D
        field-SKHZG=S
        field-WRBTR=290.00
    now two fields of reciever structure should have value as
    FIELD-1
    add WRBTR for each idoc when KOART=D and SKHZG=H
    i.e result should be 250.00
    FIELD-2
    add WRBTR for each idoc when KOART=D and SKHZG=S
    i.e result should be 520.00
    can someone tell me how to implement this.....
    regards
    Akhil
    Edited by: Akhil Rastogi on Mar 13, 2008 11:03 AM

    EKPKF>RemoveContext>EKPKF
    EKSEG>RemoveContext>EKSEG
    SKHZG----
    Constant(H)>IFWITHOUTELSE ()> WRBTR-->FIELD1
                             SKHZG==H
    SKHZG----
    >
    Constant(S)>IFWITHOUTELSE ()> WRBTR-->FIELD2
                             SKHZG==S

  • How to implement the sequence view controls in the customized LabVIEW UI

    Hi,
    I'd like to use LabVIEW to run the TestStand Sequence, and show the execution windows in the UI.(something llike the attached image)
    I followed my senior's method : connected the sequence view controls into the TestStand UI Execution View Manager as objects.
    Then use the register event callback to build a callback VI.
    The callback VI is checking which the RunState of the Execution Manager is stopped and assigning the execution to that Execution Manager.
    Though it works, but really confuses me, needless to say to you all.
    Could someone give me some suggestion how to show the execution windows in the LabVIEW UI? I'll appreciate your help.
    Solved!
    Go to Solution.
    Attachments:
    Multi_UUT_SequenceView.PNG ‏65 KB

    It's too complicated to answer your question in simple words.
    Please take a detail look at the following links. It comes with some basic concepts and tutorials regarding how to use TestStand UI in LabVIEW.
    http://www.ni.com/white-paper/7560/en/
    http://www.ni.com/white-paper/14376/en/

  • How to solve an equation which has integration

    Dear Sir,
    I need to implement an equation as below:
    I have checked many VI's from Mathematics and signal processing tool box but unable to fulfill my requirement. Kindly help me out with any suggestions.
    with regards,
    Sri
    Solved!
    Go to Solution.

    This is not an equation, because there is no equal sign.
    What do you mean by "solve"?
    What do you mean by "implement"?
    What parts are known, what are the unknowns?
    Are you looking for a symbolic math solution?
    Your probably shoud try to give significantly more information. What problem are you trying to solve? Where is the data coming from? How are the results used?
    LabVIEW Champion . Do more with less code and in less time .

  • How to implement reading data from a mat file on a cRIO?

    Hi all!
    I am not even sure, this is plausible, but I'd rather ask before i start complicating. So far, I have not found any helpful info about reading in data to a RT device from a file (kind of a simulation test - the data is simulated). 
    I have the MatLab plugin that allows the data storage read a MAT file, which has a number of colums representing different signals and lines representing the samples at a given time (based on the sample time - each sample time has it's own line of signal data). 
    I have no idea of how to implement this to cRIO.
    The idea is:
    I have some algorithms that run on the RIO controller in a timed loop. As the inputs to these algorithms, i would need to acces each of the columns values in the line, that corresponds to the sample time (kind of a time series - without the actual times written).
    I am fairly new to RT and LV development, so any help would be much appreciated.
    Thanks, 
    Luka
    Solved!
    Go to Solution.

    Hi Luka!
    MAT file support in LabVIEW is handled by DataPlugins. Here you can find the MATLAb plugin:
    http://zone.ni.com/devzone/cda/epd/p/id/4178
    And here you can find information on how to use DataPlugins to read or write files of a certain format:
    http://www.ni.com/white-paper/11951/en
    There is also an open-source project that addresses the problem, you can find it at
    http://matio-labview.sourceforge.net/
    Unfortunately, RT systems are not supported by DataPlugins, so fist you'll have to write a VI on the Host computer to convert your files to a usable format (I suggest TMDS for compactness and ease of use), and the work on the converted files in the cRIO VI. If you have other questions about DataPlugins or anything else, please get back to me.
    Best regards:
    Andrew Valko
    National Instruments
    Andrew Valko
    National Instruments Hungary

Maybe you are looking for

  • Payment block

    Hi All We have 2 vendors say Vendor X & Y. I have a PO raised say for 10 qty and GR & IV done for 5 qty, now i am getting Payment Block for Vendor X and it is not getting blocked for Vendor Y, i checked the Vendor master for both X and Y is not havin

  • NI OPC and S7200

    HI i want to develop SCADA application for S7 200 PLC. I am using NI-OPC. I have connected S7200 PLC to Ethernet network through CP243-1 communication module. DO i need additional hardware to communicate S7 200 with NI-OPC. PBP (CLAD) Labview 6.1 - 2

  • Updating the HR master records from Buffer.

    Hi All, We have requirement to update the 0008 infotype sub type 1 when 0008 infotype sub type 0 record is updated using the dynamic action. We have created the step in the dynamic action with F step and in the sub routine using the HR_INFOTYPE_OPERA

  • MacBook Pro (Late) 2008 running 10.8.4 Have a Black Screen cannot get out of sleep mode/will reboot/will sound off at restart.

    MacBook Pro (Late) 2008 running 10.8.4 I was using my computer every morning as I do everyday with no issues. I had left home for most of the day. Closed lid and while I was gone for a couple of hours. I returned home, opened my MacBook and nothing b

  • How do I edit authorized computers on my apple id account?

    I just put a new logic board in my Macbook pro and when syncing my iphone I was notified that I have now 4 computers of the 5 allowed, authorized on my apple id account.  I have 2 macbook pros (mine and my wifes) and I have a mac pro tower.  I'd like