How to create the formula with the lookup table

Hi, I would like to convert formula in the below format of labview, no idea how this could be done more easy way?

I intend to use the node form, but I'm not sure how to use the table of choice within the formula not or is that even possible?

BR, Jani

Dim dblLookUp (-) As Double = New Double (3, 1) {{4, 4}, {10, 200}, {60, 3000}, {100, 7000}}
   
If dblAbsValue > = 0 and dblAbsValue<= dbllookup(0,="" 0)="">
USB = dblLookUp (0, 1) / dblLookUp (0, 0)
dblAbsValue = dblValue * USB
' lblMode.Text = 1
ElseIf dblAbsValue > dblLookUp (0, 0) and dblAbsValue<= dbllookup(1,="" 0)="">
USB = (dblLookUp (1, 1) dblLookUp (0, 1)) / ((1, 0) - dblLookUp dblLookUp (0, 0))
dblValue = USB * dblAbsValue - USB * dblLookUp (0, 0) + dblLookUp (0, 1)
' lblMode.Text = 2
ElseIf dblAbsValue > dblLookUp (1, 0) and dblAbsValue<= dbllookup(2,="" 0)="">
USB = (dblLookUp (2, 1) dblLookUp (1, 1)) / (dblLookUp (2, 0) - dblLookUp (1, 0))
dblValue = USB * dblAbsValue - USB * dblLookUp (1, 0) + dblLookUp (1, 1)
' lblMode.Text = 3
ElseIf dblAbsValue > dblLookUp (2, 0) and dblAbsValue<= dbllookup(3,="" 0)="">
USB = (dblLookUp (3, 1) dblLookUp (2, 1)) / (dblLookUp (3, 0) dblLookUp (2, 0))
dblValue = USB * dblAbsValue - USB * dblLookUp (2, 0) + dblLookUp (2, 1)
' lblMode.Text = 4
On the other
dblValue = dblLookUp (3, 1) ' * Math.Sign (dblValue)
' lblMode.Text = 5
End If

Return dblValue * intSign

Hello janijt,

You can certainly use formula node for it. What you would do is to create a constant for the lookup table.

Here is an implementation in MathScript node

Tags: NI Software

Similar Questions

  • How to create the logical tables &amp; how to give joints according to obiee 11g?

    Hello

    I have again to obiee 11g. I want to create the logical tables in MDB layer.

    After that I want to give joins according to MDB.

    I don't know, how to create the logical tables and how to give joints according to obiee 11g?

    Please help me.

    Thanks in advance,

    A.Kavya

    Hello

    The new logical table is right click on the MDB itself, for the join you generally in the business model diagram (again right click on objects).

    Maybe it's better if you start from a kind of tutorial to at least have an overview of what is happening where (layer business and physical layer etc.).

    Take a look at what Oracle has available: Oracle BI EE 11 g

    And no doubt, it can be a good start: https://apexapps.oracle.com/pls/apex/f?p=44785:24:0:NO:P24_CONTENT_ID, P24_PREV_PAGE:9787, 2

  • How to create the monthly table is created?

    Hi guys,.

    Impossible to create the table for each month in the analytical database, but to load the data in the previous table continues as the screenshot attached, schema user has the privilege of creation. We use Webcenter interaction 10gR 4.

    How to create monthly creating the table please?

    Thank you

    Katherine

    Hi Trevor,

    Thanks for your help.  We were able to create table and load data to attached Apr.

    However the analytical user privilege has changed the APR because of the operation of the server.

    Since then, there was a message saying that there is no permission to create tables in the crawl log.

    analytical user privilege was granted after checking this message, as I suspected, the problem occurred after you change the analytical user privilege.

    Currently, Analytics is granted with all the privileges.

    Any idea please?

    Thank you

    Kathy

  • How to create the new table by using the pertioned table

    Hello
    I use a partitioned table, now I want CPDR a new table with the same structure of my existing partitioned table.
    so can I use this syntax

    create the table abc_new as
    Select * from my_partitioned_table
    where 1 = 2;

    If I use this syntax, he would do the same my existing partitioned table structure?

    and

    When
    We use a syntax such as

    create the table abc_new as
    Select * from my_partitioned_table
    where 1 = 2;

    so he would also make the indexing on the new table if old table exists? If this isn't the case, then how can we create this indexing too at the time of execution of this syntax?


    regards

    N °

    Although the command would create a new table with the same column names and data types, it is NOT a partitioned table. You must explicitly specify the PARTITION BY clause and definitions of Partition when creating the table.

    Similarly, index definitions are not automatically copied. You must explicitly run the CREATE INDEX statements (which you can generate source using DBMS_METADATA. GET_DDL or by using any other tools/utilities).

    (However, if you use Export-Import - for example import to another schema, or to another database, it would create a table partitoned bearing the same name and with the same index definitions).

    Hemant K Collette

  • Workshop SQL-&gt; Tables-&gt; create the Lookup Table

    It is perhaps a SQL issue rather than an issue of Apex, but...

    With my experience of amateur to create database tables, I usually start with a parent table and create children and link them.

    While playing with Apex, I have the ability to create a Lookup Table of in any table.

    And, what is created is a new table that is, indeed, a parent.
    So I have been working from the bottom to the top.

    I understand that correctly?

    Thank you-
    Marion

    Marion...

    Yes...

    Lookup tables store data from reference and a link to your main table with a standard primary/foreign key relationship.

    This feature is particularly useful if you are creating your tables of data in the worksheet and you want to standardize it.
    Gus...

  • How to create the new domain with lookup?

    How to create the new domain with list of choices like terrain dDocType system?

    Administration/Admin Applets tab / SCCM / information fields.
    Add field or edit a custom field if you have one.
    The name field (the name will be prefaced with the lowercase letter x behind the scenes, if ever, you write the code to call it if you name this Fruit it will xFruit for code)
    Define your values for the field, but the important thing for a menu drop-down list or list of selection will be to list the Option activate the checkbox.
    Then, you perform one of the 3 main things to put data in the list.
    1. manually fill in a list of options
    2. use a DB or DB table view to view Configuration Manager
    3. create a complex tree (read the documentation on which I him have not used)

    If this does not answer your questions, click the help button in the applet.

  • How to create a button with rollover that appears in a different place than the button when you move?

    Hello

    How to create a button with rollover that appears in a different place than the button when you move by using only the Muse (reversal may be a different shape and color of the button). I managed to do it using Photoshop and the separate layers and import it, but it is not a good solution. All suggestions will be welcome.

    Thank you

    You can try to use the widget of the Composition of the ToolTip. In this way, the trigger area is isolated and a "State of reversal" can be placed anywhere on the screen (compared to the trigger).

    • Remove the two triggers additional default
    • Set to display the targets on working capital
    • Select hide all initially.
  • How to create a window with its own window border other than the local system window border?

    How to create a window with its own window border other than the local system window border?

    For example, a border: a black line with a width of 1, then a transparent line with a width of 5. Inside, it's the content pane.

    In JavaSE, there seems to be for the JFrame paintComponent() method to realize the effect.

    I can't see what you're trying to do now: it's a little trickier. You need stage.initStyle (StageStyle.TRANSPARENT), and I think you have to imitate the transparent part of the border by the presence of a second vessel inside the root container, properly positioned.

    Something like:

    
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.StackPane;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    import javafx.stage.StageStyle;
    
    public class CustomBorderExample extends Application {
    
      @Override
      public void start(Stage primaryStage) {
      AnchorPane root = new AnchorPane();
      root.setStyle("-fx-border-color: black; -fx-border-width: 1px; ");
    
      StackPane mainContainer = new StackPane();
        AnchorPane.setTopAnchor(mainContainer, 5.0);
        AnchorPane.setLeftAnchor(mainContainer, 5.0);
        AnchorPane.setRightAnchor(mainContainer, 5.0);
        AnchorPane.setBottomAnchor(mainContainer, 5.0);
      mainContainer.setStyle("-fx-background-color: aliceblue;");
      root.getChildren().add(mainContainer);
    
      primaryStage.initStyle(StageStyle.TRANSPARENT);
      final Button closeButton = new Button("Close");
        mainContainer.getChildren().add(closeButton);
        closeButton.setOnAction(new EventHandler() {
          @Override
          public void handle(ActionEvent event) {
            Platform.exit();
          }
        });
      primaryStage.setScene(new Scene(root,  300, 200, Color.TRANSPARENT));
      primaryStage.show();
      }
    
      public static void main(String[] args) {
      launch(args);
      }
    }
    
  • How to create the rainbow effect in the formulation

    Screen Shot 2014-06-19 at 1.19.16 AM.jpg

    I can't understand how to create the same type of effect (completely in the wording) as indicated in the text of the image above. I'm new to Illustrator, and any useful information would be greatly appreciated, thank you.

    STO

    You can:

    (1) in the tool box, set the fill to none;

    (2) in the appearance palette dialog box, click Add new fill;

    (3) with the new fill selected / highlighted in the main window of Apperance palette, apply the gradient.

    In the case shown and similar, you can click the gradient in the Toolbox instead of filling Uni, then change the colors in the palette degraded for each stop end of levels of grey, white and black for the right colors in the color palette (RGB or CMYK), then add stops with intermediate colors. you select / Create to stop clicking in the gradient bar, and you can move the stops in ClickDragging or by setting the percentage values.

    The image looks like a little green at 0%, blue 50%, red 755% and flame red / yellow 100%.

  • How to create the BC4J Package in JDev 10 g (with OAF)?

    How to create the BC4J Package in JDev 10 g (with OAF)?

    I use JDev 10.1.3.3.0 with Extension OA release 12.0.6. Right-click on the project of the new option Business Package of components is missing, I tried the business components of the Tables option but could not continiue as steps in the tutorial have does not match this wizard individual. I read on this forum that you can use this option to create the EOs and your and then specify packages later.

    Any help will be appreciated. The tutorial that I'm following is the Oracle Application Framework (tutorials) the JDevDoc\Index.html Toolbox

    Thank you
    Vijay

    Hello

    Tutorial is not being updated, Jdeveloper 10 g, there is no need to create the BC4j package explicitly, you just create AM OT or VO and mention the name of package, JDeveloper will take care rest of things, create new your EOs

    Right-click on the project--> New--> business components ADF (under the enterprise level)---> Module object/Application/view of object entity.

    Thank you
    Pratap

  • How to create the object rectangular box with a pure action script.

    How to create the object rectangular box with a pure action script?

    I think, it can be done through the clip library, but I'm not sure. Please, I want to take the suggestion to create a rectangular box as a script through

    Take a new file and write about the first image the code below, it works fine:

    var rect = new Shape();
    rect.graphics.beginFill (0xFF0000);
    rect.graphics.drawRect (0, 0, 100,50);
    rect.graphics.endFill ();

    var MC = new MovieClip();
    mc.addChild (rect);
    addChild (mc);

    If this doesn't solve your problem then paste the error you get

  • Satellite P750 PSAY1A: how to create the recovery Toshiba on the new HARD drive partition

    Hello

    I have an old Toshiba Satellite P750 (PSAY1A-01Y022). I just upgraded my memory from 4 GB to 8 GB and am preparing to take my 500 GB HARD drive 1 TB. I had to order the disk online and wait to happen.

    I always try to understand how to create the arrival of my new HARD drive Toshiba Recovery Partition. I do the same thing for an old book, I handled based on something similar to it's original factory State.

    I have reflected on the recovery partition, but does not know how it was created. It is not NTFS. Does anyone have experience in the creation of a Toshiba Recovery on a new HARD drive Partition?

    And the help is very appreciated.

    Thanks and regards,
    Dinesh

    Recovery partition can be created when you use the original Toshiba Recovery disk and install recovery image. Before the partitions to boot OS install will be automatically created, recovery image copied on a recovery and then partition as last step recovery image installation starts.

    A sort of migration of files from one to the other HARD disk is not solution.

    Only for laptop with factory will work and the usable recovery partition.

  • How to create the .cod file to run on the Simulator BB9900

    Hi, I already from the zip package in order to use the bbwp command to create the .cod file and be able to run on the simulator of BB9900, but when I run this command as described in: https://developer.blackberry.com/html5/documentation/compile_ww_app_for_smartphones_1873321_11.html

    It creates two files, each with a .bar file, this type of file, I can't run it on the 9900 Simulator but a .cod file is required to run applications on the sim card.

    I don't know how to create the .cod file.

    Thank you

    Have you used Blackberry Webworks SDK for smartphone or Tablet SDK? The .cod files should be located in the subfolder OTAInstall of your output folder if you are using the Webworks SDK for Smartphone

  • How to create the scroll to the menu icon click event bar

    How to create the scroll to the menu icon click event bar

    (as the "field of scrolling image")

    In my opinion, it is better for you to try something to help implementation of your solution to ask for the code.

    For example, create a few BitmapFields with icons that act as buttons.  There is source for this sort of thing on the forum if you look at, I think, looking FRO Image button, icon or Bitmap button.

    Once you have these buttons work, add these in a HorizontalFieldManager.

    Good luck.

  • How to create the user account using the command?

    How to create the user account using the command?

    Open cmd as administrator, and then type the following commands one after the other

    NET user / add program mypassword
    net localgroup administrators program / add
    net share concfg * C:------/ grant: program, complete
    This will create a user account with the name "Program" and the password "MonMotpasse".

    You can create the user name and password of your choice.

Maybe you are looking for

  • iOS 10.0.2 screen response

    I have an iPad Air. I have updated to iOS 10.0.2 yesterday and have had problems with the screen not responding do not to touch. I managed to market at each time with reset again and again until it works. I can't use my iPad for more than five minute

  • Satellite A200 - 1 MB don't wake up on hibernation

    Help, please. I was using my laptop for over a month and I can't use the hibernation mode... I can't turn on my laptop when it goes into hibernation mode. The power light is blue. Is there a keyboard sequence that I have to type? I use Windows Vista

  • On Satellite L855 wrong display resolution

    Series of satellite PSKACR-015010RU L855? 3C123577Q After installing Windows 7 Ultimate resolution is 1 024 786. How to pass the system to work with the graphics card Radeon 7670? Thank you.

  • Waveform table, a plot, shows

    Hello First of all, I use LV7.0.  I pass data to a waveform chart.  A two-dimensional painting converted to a cluster, and then passed to the table data.  Graph properties are set to only show that a single conspiracy, but there is so many places on

  • Error302, how can I remove it from my computer or repair?

    I have a report that I have a 302 error on my computer, how can I fix this and how I can disappear from my computer?