HOW TO MAKE A BOOLEAN FUNCTION IN LABVIEW5.0

I want to use a boolean funtion but it does not exist in existing functions?so how can I do it?I final aim is how to make a VALVE boolean function and how to use it?please teach me,experts! Thank you very much!

Hi,
what do you mean by "boolean function"?
For boolean operations you can use
1. Case structure. It is located in Functions->Structures
2. Boolean functions (such as AND, OR, NOT, etc.). They are located in Functions->Boolean
3. Comparison functions (such as equal?, greater?, less?, etc.). They are located in Functions->Comparison
You have to give more info about your problem.
Good luck.
Oleg Chutko.

Similar Messages

  • How to Use a boolean function in a process

    Hi,
    I created a boolean function named change_pwd with 3 varchar2 parameters : login_name, old-pwd and new_pwd. I would like to use it in a process but I can't, this is how I do it :<br><br>
    select change_pwd (
    v('P12_Login'),v('P12_Old_Pwd'),v('P12_New_Pwd')) from dual;
    <br><br>
    Benn

    I got this error : <br><br>
    ORA-06550: line 2, column 8: PLS-00382: expression is of wrong type ORA-06550: line 2, column 1: PLS-00428: an INTO clause is expected in this SELECT statement
    <br><br>
    and here is my function :<br><br>
    create or replace function "CHANGE_PWD"<br>
    (p_username in VARCHAR2,<br>
    p_old_password in VARCHAR2, <br>
    p_new_password in VARCHAR2)<br>
    return boolean<br>
    is<br>
    l_count number;<br>
    l_password varchar2(4000);<br>
    l_stored_password varchar2(4000); <br>
    l_idcontact number;<br>
    begin<br>
    -- Check to see if the user is in the user table<br>
    select count(*) into l_count from CONTACTS where MATRICULE = p_username;<br>
    if l_count > 0 then<br>
    -- take the stored password<br>
    select u.MOTDEPASSE, u.IdContacts into l_stored_password, l_idcontact from <br>UTILISATEURS u, CONTACTS c where u.IdContacts = c.IdContacts AND c.MATRICULE = p_username;<br>
    <br>
    -- apply the cash function<br>
    l_password := user_hash(p_username, p_old_password);<br>
    <br>
    -- compare the hashed password with the stored password<br>
    if l_password = l_stored_password then<br>
    -- change password<br>
    update UTILISATEURS set MotDePasse = user_hash(p_username, <br>p_new_password) where idcontacts = l_idcontact;
    return true;<br>
    else<br>
    return false;<br>
    end if;<br>
    else<br>
    return false;<br>
    end if;<br>
    end;<br>

  • How to make the wdDoIniiit() function executived twice in the view of WebDy

    Hi Guyes, How can i make the  wdDoIniiit() function executived twice in the view of WebDynpro? Thank you

    Hi
    WdDoInit() :- This is called only once when the View is loaded freshly.
    WdDoModifyView:- Called every time an action is performed on the View.
    It is called by webdynnpro runtime environment for modification of the view layout.
    For all the views,this takes place at a time immediately before the closing response renders.
    check for
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/86/16e13d82fcfb34e10000000a114084/frameset.htm">Modifyview</a>
    also you can know about <a href="http://help.sap.com/saphelp_nw04/helpdata/en/86/7fcf3d4f902d10e10000000a114084/frameset.htm">Supply function</a>
    Regards
    Abhijith YS

  • How to make Ctrl  + N function as down key in finder

    I want to make Ctrl + N function as down key and Ctrl + P function as up key in finder application for easy keyboard navigation. How can i do this?

    You're misinterpreting the way the Keyboard shortcuts you add in preferences work.
    For you to be able to turn the key sequence into a shortcut for some action that action has to exist as a menu item in the application. That is if you want to make say Show Clipboard (one menu item without a shortcut already assigned) you would put the command Show Clipboard into the section Menu Title and ad the key sequence in the Keyboard Shortcut section.
    But as there is no menu item for down one line in Finder there is nothing to put into the Menu Title section so no way to map it.
    As it turns out for text editing OS X already recognizes ^N as down one line (in fact a lot of the Emacs key bindings are recognized out of the box) Unfortunately these only apply to editing situations.  There is no way I know of to map motion commands like you are looking to do here.
    There is the possibility of adding a keybindings dictionary to your home library folder, google for something like emacs key bindings mac mavericks
    <edit> I dont't think you'll be able to do it this way either but it is worth a look</edit>
    regards

  • How to make a Predefined function out of this

    I am new into java, and I wanted to define certain sets of command into a single function to avoid redundancy and to have a much shorter code. Below is the problem,
    import java.sql.*;
    import java.io.*;
    public class Ivatanako
    static void displayResult(){
    name = resultSet.getString(2);
                             idnum = resultSet.getString(3);
                             mach1 = resultSet.getString(4);
                             mach2 = resultSet.getString(5);
                             q1 = resultSet.getDouble(6);
                             q2 = resultSet.getDouble(7);
                             q3 = resultSet.getDouble(8);
                             rsf = resultSet.getDouble(10);
                             fg = resultSet.getDouble(11);
         public static void main(String args[])
                   DataInputStream input=new DataInputStream(System.in);
    try
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
                   Connection conn = DriverManager.getConnection("jdbc:odbc:;DRIVER=Microsoft Access Driver (*.mdb);DBQ=c:\\db.mdb;PWD=mypass","login","password");
                   Statement command = conn.createStatement();
    if (option==1){
                             System.out.println("Enter name: ");
                             stdName = input.readLine();
                             resultSet = command.executeQuery("SELECT * from Students where stud_name='" + stdName + "'");
                             while (resultSet.next( )) {
                             displayResults();
                             allRecords(name, idnum, mach1, mach2, q1, q2, q3, rsf, fg);
    conn.close();
         catch (SQLException se)
                   System.out.println(se);
              catch (Exception ex)
                   System.out.println(ex);
    }It always returns a "undeclared" error.. How to fix this? Rather how to declare a predefine function that contains ResultSet's?

    static void displayResult()static void displayResult(ResulteSet resultSet)
    displayResults();displayResults(resultSet);

  • How to make customize Replace function with Positions not pattern ?

    Hi
    Due to Repalce with patterns in  flex, i am facing issue.
    I  want to make cutomize replace function with  parameters
    1 Parameter - String to replace
    2 Parameter - Start Posion.
    3 Parameter - Last position
      which return string value.
    For Example
      replaceInWholeString(str:String, sPos:Number, lPos:Number ):String
    values like
    1st paramter - "asked"
    2nd Paramter - 11
    3rd Paramter -  15
    Original String :: I want to reply
    Output string : I want to asked
    Please Reply ,if someone having solution
    Thanks
    Sunil Rana

    You can use any number of the String methods to acomplish this.
    I would proabably go with something like: slice(...) + input + substr(...);

  • How to make the scrollbar function with mouse scroll wheel?

    Is there a way how to make my content scroll even with the mouse scroll wheel?... I have to edit the coding??

    Hey!
    You shouldn't have to edit any code.
    There is an active player bug surrounding this issue however, which causes the following:
    1) It should work on windows.
    2) It may not work on Mac.
    We're continuing to pursue this issue, we know it's important to our users.
    Thanks,
    Tara

  • How to make a dynamic function call from within a package procedure

    Hi:
    I need to call a function dynamically (name and parameters determined at run time, but return value is known:always an integer). I can build the call and place it in a dynamic sql using dbms_sql. But the function is inside a package and is not public.
    So, if I issue:
    dbms_sql.parse( cur,'SELECT '||call||' FROM dual', dbms_sql.v7 )
    where call is "DOS(234,'V')"
    I get:
    ORA-00904: "DOS": invalid identifier
    If I make the function ("DOS") public and "call" equals "pack.DOS(234,'V')", it works fine, but I don't want to make it public.
    Is there a solution?
    Thanks in advance
    RuBeck

    Hi, Kamal:
    Calling from outside of the owner package is not possible if it is not public.The calls are from inside the package. It looks like the dynamic select is executed "outside" the package, so the private function is unknown
    Make it available in the package headerLooks like it's the only solution
    How often this will be executed?This is a library for loading files into tables and executing dynamic validation procedures.
    Here's an example of the mechanics:
    create or replace package mypack as
         function one return number ; -- public function
         procedure execute_it( p_name VARCHAR2 ) ;
    end ;
    create or replace package body mypack as
    function one return number is
    begin
    return 1 ;
    end ;
    function two( i number, s varchar2 ) return number is -- private function
    begin
    return 2 ;
    end ;
    procedure execute_it( p_name VARCHAR2 ) is
    select_str VARCHAR2( 1000 ) ;
    v_num NUMBER ;
    cur NUMBER ;
    nf NUMBER ;
    begin
    select_str := 'SELECT '||p_name||' FROM dual' ;
    cur := dbms_sql.open_cursor ;
    dbms_sql.parse( cur,select_str,dbms_sql.v7 ) ;
    dbms_sql.define_column( cur,1, v_num ) ;
    nf := dbms_sql.execute( cur ) ;
    IF dbms_sql.fetch_rows( cur ) = 0 THEN
    RAISE no_data_found ;
    END IF ;
    dbms_sql.column_value( cur, 1, v_numero ) ;
    dbms_output.put_line( p_name||' returns '||v_num ) ;
    dbms_sql.close_cursor( cur ) ;
    end ;
    end ;
    begin
    mypack.execute_it( 'mypack.one' ) ; -- Call public function: Works fine
    mypack.execute_it( 'two(234,''v'')' ) ; -- Call private function: error 0904
    end ;
    Thanks for your hints
    RuBeck
    PS: The indentation is lost when I post the message! I wrote it indented!

  • How to make a normal Function Module remote able function module

    Hi guys,
    i am a beginner in abap programming. I have made a programm in Se80 which shows all the nodes of the active hierarchies (5 stk.)
    in a ALV grid. Therefore i am getting the active hierarchies from table "rshiedir" and use the normal function module "RSSH_HIERARCHY_READ" to display the nodes of the hierarchie. The problem is the hierarchies do have a different techical name in the systems (development-acceptance-productive) but the descriptive nbame is the same in all systems. Because of the difference of the technical names I can use this programm in just one system. But the hierarchy content should be comparable and be displayed in all three systems. Therefore i would like to create a remoteable function module which covers the normal one. Can i do this and how can i create a remoteable function module and use it? 
    If not do you know any remotable functgion module which gives back all the nodes from an active hierarchy in table "RShiedir".
    Thanks and kind regards,
    Murat

    Hello,
    Simple, create a wrapper RFC (similar to 'RSSH_HIERARCHY_READ' ) & call the normal FM 'RSSH_HIERARCHY_READ' inside the wrapper.
    Something like this:
    FUNCTION z_rssh_hierarchy_read.
    *"*"Global Interface:
    *"  IMPORTING
    *"     VALUE(I_RSHIEDIRKEY) TYPE  RSHI_S_RSHIEDIRKEY OPTIONAL
    *"     VALUE(I_RSHIEDIRLOG) TYPE  RSHI_S_RSHIEDIRLOG OPTIONAL
    *"     VALUE(I_DATE) TYPE  RSHI_DATE DEFAULT SY-DATUM
    *"  EXPORTING
    *"     REFERENCE(E_RSHIEDIR) TYPE  RSHI_S_HIEDIR
    *"     REFERENCE(E_T_RSNODES) TYPE  RSHI_T_HIENODE
    *"     REFERENCE(E_TH_RSINTERVAL) TYPE  RSHI_TH_INTERVAL
    *"     REFERENCE(E_DUPLICATE_LEAFS) TYPE  RS_BOOL
    *"     REFERENCE(E_T_RSNODES_LNK) TYPE  RSHI_T_HIENODE
    *"  EXCEPTIONS
    *"      INVALID_HIERARCHY
    *"      NAME_ERROR
    *"      IOBJ_NOT_FOUND
    " Don't forget to add TYPE-POOLS rshi to the FuGr. TOP include
      CALL FUNCTION 'RSSH_HIERARCHY_READ'
        EXPORTING
          i_rshiedirkey     = i_rshiedirkey
          i_rshiedirlog     = i_rshiedirlog
          i_date            = i_date
        IMPORTING
          e_rshiedir        = e_rshiedir
          e_t_rsnodes       = e_t_rsnodes
          e_th_rsinterval   = e_th_rsinterval
          e_duplicate_leafs = e_duplicate_leafs
          e_t_rsnodes_lnk   = e_t_rsnodes_lnk
        EXCEPTIONS
          invalid_hierarchy = 1
          name_error        = 2
          iobj_not_found    = 3
          OTHERS            = 4.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Here Z_RSSH_HIERARCHY_READ is the wrapper RFC. Hope you get the point.
    BR,
    Suhas

  • How to make a fully functioning form in Acrobat 8

    I am trying to make a form in Acrobat 8 and when i send it to a PC to be tested, they get an error.It says"This operation is not permitted" when they click the submit button. ANy idea how i csn fix this? it works fine on my laptop.
    Please help!

    It sounds like you're trying to submit the entire PDF using Reader. For this to work, the document has to be Reader-enabled. Acrobat 8 Pro can do this by selecting: Advanced > Enable Usage Rights in Adobe Reader.
    Some newer versions of Reader may have a problem with a form enabled in Acrobat 8, so you'll have to test it out.

  • How to make the recv function in winsock2 stop after a specific time..?

    In an developing a Windows Desktop Console Application in c++ in Visual Studio 3013 for Windows Desktop, which acts as a client and tries to connect to a server. Once the Connection with the server is successful, it sends a handshaking signal to the
    server and waits for a response from the server. Iam using winsocks2 in this application. The receive function I am using is a blocking call
    iResult = recv(ConnectSocket, recvbuf, recvbuflen, 0);
    So until my server sends a response, the client is blocked. What I need is the client to check for response only for a certain time (say 10 sec). If there is no response within this time frame ,I want the client to disconnect from the server. How to achieve
    this?

    In an developing a Windows Desktop Console Application in c++ in Visual Studio 3013 for Windows Desktop, which acts as a client and tries to connect to a server. Once the Connection with the server is successful, it sends a handshaking signal to the
    server and waits for a response from the server. Iam using winsocks2 in this application. The receive function I am using is a blocking call
    iResult = recv(ConnectSocket, recvbuf, recvbuflen, 0);
    So until my server sends a response, the client is blocked. What I need is the client to check for response only for a certain time (say 10 sec). If there is no response within this time frame ,I want the client to disconnect from the server. How to achieve
    this?
    You could use setsockopt
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms740476%28v=vs.85%29.aspx
    to set the timeout option, SO_RCVTIMEO, for the recv
    function.

  • How to make "open file" function

    Is there a method that you can call that can prompt the user to open a file? Here is what I have:
    var file:FileReference = new FileReference;
    var newFile:BitmapData = new BitmapData (600,290,false);
    newFile.draw(file.upload(file.browse()));
    var s:Shape = new Shape();
    s.graphics.beginBitmapFill(newFile);
    s.graphics.drawRect(0, 0, board.width, board.height);
    s.graphics.endFill();
    board.addChild(s);
    What would I put in the line in bold to achieve this?

    How do I convert the File Reference to the bitmap data or a shape? This is what I have right now:
    var file:FileReference = new FileReference();
    var newFile:BitmapData = new BitmapData(600,290,false);
    file.browse();
    var selectedFile:FileReference;
    file.addEventListener(Event.SELECT, file);
    function f(e:Event)
    var selectedFile = FileReference(e.target);
    newFile.draw(e.target);
    var s:Shape = new Shape();
    s.graphics.beginBitmapFill(newFile);
    s.graphics.drawRect(0, 0, board.width, board.height);
    s.graphics.endFill();
    board.addChild(s);

  • How to make a "save" function?

    Hi everybody
    I am a novice and this is my first time to ask here
    I have seen a RPG flash game which have a "save" function
    although it is offline
    Could anyone tell me how can it do that please

    Look up the SharedObject class in the Help. If they're not
    sending the info
    to a server-side database, then they're using a SO.
    Dave -
    Head Developer
    www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • How to make an onKeyPressed function work

    Hi, i have some problems with making the onkeyPressed function work. Somehow when i run it, it complains about "'static' is no longer supported. It will be removed from the language soon. Use script-level declarations for Right ". So i need to get around it. Here's the code. Make an image or replace an image with spacecraft.png.
    var frame = 0;
    var spaceship: ImageView;
    var Spaceship = Image { url: "{__DIR__}spacecraft.png" }
    var KeyX: Number = 100;
    var KeyY: Number = 100;
    var offsetX: Integer;          // Possible values are -1, 0 and 1
    var offsetY: Integer;
    var x;
    var MoveLeft;
    var MoveUp;
    var MoveDown;
    var transition: Transition;
    Stage {
    visible: true
    title: "Spaceship"
    scene: Scene {
    width: 250
    height: 200
    content: [
    ImageView {
    image: Spaceship
    onKeyPressed: function(e: KeyEvent): Void {
    if (e.code == KeyCode.VK_RIGHT) {
    Move.Right
    if (e.code == KeyCode.VK_LEFT) {
    var y: Number = 200;
    var X: Number = 200;
    // Timeline updates y variable
    static class Move extends CustomNode {
    var image: Image;
    var transition: Transition;
    var fitWidth: Number;
    static var Right = Move {
    image: Spaceship
    translateX: 300
    translateY: 100
    fitWidth: 150
    transition: TranslateTransition {
    duration: 2s
    byX: 250 repeatCount: Timeline.INDEFINITE
    autoReverse: true
    }

    I tried the node.requestFocus(), but apparently, their is a new error when I ran it . It said "java.lang.StackOverflowError" with many at errors following it .Here our my fx codes. If you run it on your IDE, it should say the same error.
    Main.Fx
    Stage {
        visible: true
        title: "Spaceship"
        scene: Scene {
            width: 250
            height: 200
            content: [Move {}]
    }Move.fx
    var y: Number = 200;
    var X: Number = 200;
    var Spaceship = Image { url: "{__DIR__}spacecraft 2 png.png" }
    // Timeline updates y variable
    public class Move extends CustomNode {
        var image: Image;
        var transition1: Transition;
        var fitWidth: Number;
        var Right = Move {
                    image: Spaceship
                    translateX: 300
                    translateY: 100
                    fitWidth: 150
                    transition1: TranslateTransition {
                        duration: 2s
                        byX: 250 repeatCount: Timeline.INDEFINITE
                        autoReverse: true
    public override function create(): Node {
            //Assign Group to variable
            var myGroup = Group {
                        content: [Move.Right
                        focusTraversable: true
                        onKeyPressed: function(e: KeyEvent): Void {
                            if (e.code == KeyCode.VK_RIGHT) {
                                Move.Right;
                                transition1.play()
                        onKeyReleased: function(e: KeyEvent): Void {
                           if (e.code == KeyCode.VK_RIGHT) {
                                Move.Right;
                                transition1.pause()
                    } //Group
            myGroup.requestFocus(); //This sets the focus on the group that is to be returned and put onto the stage
            return myGroup
    }

  • How to make a fully functional eNewsletter and not dye trying

    Hi all.
    I´m trying to make eNewsletter with iWeb. I think i make the right way, but maybe i´m making something wrong.
    First: I make a new page with iWeb, insert hmtl of my images that are hosted in my server, i insert some text with some links... i save it... and i publish it on my server.
    When i try to open on a web explorer (such as Safari, Firefox, etc...) i have the LINE 1 parse error. I use to solution it editing the html file and deleting the first line. Then, I can see now the website in all the web explorers. But I see that in Safari all the web is funny, but in Firefox all the images have a FRAME! Why?
    Second. I use Safari->Send web by Mail->to some of my contacts. When the emails are received, some mail clients (such Mail, Entourage, Outlook...) received fine the newsletter. But the webmail based like Hotmail, Gmail, Yahoo... received distorted all the newsletter. Somebody know why? Somebody can help me?
    I have an enterprise and i need this function to give a good promotion for my products. I don´t have html knowledges, i´m not a programmer. And I think iWeb is a funny software to make my purpose, but I think the software has some bugs like i write here.
    Well, thanx to all, wait your words.

    Welcome to the discussions.
    productosbmm wrote:
    I think iWeb is a funny software to make my purpose...
    I agree — so here are some alternative approaches:
    Apple's "Pages" app in iWork '09 is HERE and fifty-eight extra newsletter templates for Pages can be found HERE. And more resources...
    http://www.emailtheweb.com
    http://www.mailchimp.com
    http://www.myemma.com
    http://www.constantcontact.com

Maybe you are looking for

  • Initial Time Machine Backup

    I have a MacBook Pro and a new 3T external harddrive.  I am connecting my laptop to the harddrive using an 800 firewire.  I am trying to create my first Time Machine initial back up and it is scheduled to take 1, 473 days for 267.82GB on OS 10.7.5. 

  • Exception in File To JDBC Scenario

    Hi, I am getting the Exception "Error ID     EXCEPTION_DURING_EXECUTE" while working with File to JDBC Scenario. Pl Let me know why this exception is raised? Thanks, Srini

  • Problems with applets.

    Hi to everybody. I've got a problem with simple applets. I've built several applets using Swing components (JApplet, JPanel, JButton, etc.) In my browser, the background color of my applets does correctly appear. But none of my components does !!!! N

  • Software update keeps quitting

    Software update keeps quitting on me. I have a G4 tower (powerpc) running 10.5.8 Below is the problem report I get: Process: Software Update [152] Path: /System/Library/CoreServices/Software Update.app/Contents/MacOS/Software Update Identifier: com.a

  • WRT400n range less than WRT54gs

    Hi, I just replaced my WRT54GS router with a WRT400N router because it was supposed to be greater range and faster.  I have 3 laptops.  One is an HP vista with wireless G capability , another is an HP vista with wireless N capability, and the last is