In c#, how set digital Ports lines outputs or inputs

Can a port contains the input and output lines at the same time?

Hello

The 6221 is a map of the M series for you can configure each individual line as an input or output so you might have a release for your control, then as an input signal as you suggest.

Kind regards

Tags: NI Hardware

Similar Questions

  • How to use the Bpel output as input to the stored procedure

    I am a beginner SOA. The scenario is to use the output of a BPEL process in a procedure stored as input and validate it against the data in the database. The data received from the BPEL are compared with fields from different tables.

    It's basically a business process data validation.

    The output of BPEL is an Xml file and how it can b used in the query of a procedure?

    Published by: 869091 on June 29, 2011 12:14 AM

    The output of the BPEL process is in XML format.
    Your requirement is not clear, please state it correctly what you doing.

    Yatan-

  • How to choose the line PFI to use on the port of the 5761?

    I understand that the VIDEO that I use on my DAC 5761 allows me to access 8 PFI lines.  However, when I access my 5761 devices in the project window by clicking the "+" next to the name of the module, I see that 'PFI Input' and ' output PFI.  I tried to get this to send a signal in the past, but I have been unable to determine how to select the line PFI I want to use.   How can I select the PFI line?

    Any ideas?  I was able to get the my AWG PFI (5422) for work and it is amazing.  I want to order an attenuator digital step for a ground penetration radar that I develop.

    Your time and your help is very appreciated.

    PS: I have worked with this PXI system (chassis, embedded controller, FPGA digitizer 5761 and AWG) for 1 year and I am afraid that it is time to learn this one way or another.

    Good day!

    -Daniel

    I found the solution. In addistion to the node which is visible in my previous post, there must be a node to enable PFI write with an entry of decimal number indicating the line is activated. Then, there must be a node PFI active connector, set to true. Not sure if the node of the latter is really necessary, however. Otherwise above examples should work as is.

  • How can I change my code the method to set a specific line id in my lov as a default?

    Mr President.

    How can I change my code the method to set a specific line id in my lov as a default value instead of the first value?

        public String defaultDebit() {
    
    
           String debit = (String)getAttributeInternal(DEBIT);
           if (debit == null) {
              COAViewRowImpl coaRow = (COAViewRowImpl)getDebitView1().first();
              if (coaRow != null) {
                 debit = coaRow.getAcctId();
              }
           }
           return debit;
        }
    

    Concerning

    You can see the below example code. This code assumes a view attribute named AcctName and the code returns the AcctId when the AcctName is DEFAULT_DEBIT.

    public String defaultDebit() {}

    String output = (String) getAttributeInternal (DEBIT);
    If (flow == null) {}
    getDebitView1 (.reset ());
    While (getDebitView1 () .hasNext ()) {}
    COAViewRowImpl coaRow = (COAViewRowImpl) getDebitView1 () .next ();
    If (coaRow! = null) {}
    If (coaRow.getAcctName () .equals ("DEFAULT_DEBIT"))
    flow = coaRow.getAcctId ();
    }
    }
    }
    return flow;
    }

    Let us know if this does not work in your case.

    Thank you

  • How to Set Digital i/o status of Watlow EZ - Zone RM on 'ON' in LabVIEW?

    I have an EZ - box RM Watlow controller and here is the driver:

    http://www.Watlow.com/downloads/en/software/Watlow%20EZ-zone (R)%20LabView%20Driver%20a.zip

    I have 16 e / s digital connected to the CRDD and I need to use to trigger the SSR.

    so here's my question

    How to Set Digital i/o status of Watlow EZ - Zone RM on 'ON' in LabVIEW?

    What ID setting should I use to replace the OFF state (62) (63)?

    First I thought that I can write "63" in the ID parameter "6007", and it does not work because it is a read only parameter. Is it supposed to be a way I can just simple it switched off to change on?

    Thank you for answering my question.

    The OID cannot be set directly. First a block Variable must be digital and connected to the block of DIO mode. Then changing the numeric status can be changed (63) to off (62).

  • How selectBooleanCheckbox can set the current line?

    Hello

    Using ADF Faces 10 g, I have an af:table component that is read-only, but the last column contains an af:selectBooleanCheckbox. This checkbox is used to 'activate' and 'disable' to each line. When I click on the box, I need the valueChangeListener be aware which line has been activated (so that I can then make some changes on this line to toggle). By clicking on the box to check must call setCurrentRow, or at least pass on values I can use later to set the current line manually.

    My first thought was setActionListener, but it seems that it may not be combined with af:selectBooleanCheckbox. I searched and found the following post:
    HOW to set an ID for the component from variable
    and after reading this I tried setPropertyListener, once again, I found that this is not a valid child of af: selectBooleanCheckbox. The post dry with nuansantio mentioning several times that setActionListener and setPropertyListener cannot be used, but there is no other comments on a solution.

    Any thoughts on how I can get this to work?

    Hello

    Could you elaborate more about

    I need to make a number of manual steps (invoking request Module) when the user selects / disables the check box

    You can pretty much add a method in your Impl VO (who did all the steps you want to do) and call the method in an expression for the value of groovy / call it in valueChangedListener of the box?

    Arun-

  • How can I measure the output of a sensor pwm ultrasound using the module or 9403

    How can I measure the output of a sensor pwm ultrasound using the module or 9403

    Khalil,

    When you say 'measure' the PWM signal, exactly what to tell you?

    You're looking to measure the frequency or cycle of the signal function? You count the edges of the PWM output increase? Looking to control the waveform?

    With reconfigurable FPGA hardware, it is up to the user to define the function of the physical i/o on the FPGA chip. By connecting the signals as Adam suggests your digital pulse will be brought to the cRIO. In your FPGA program, you define the function. You can set a base counter or transfer digital data from single point to welcome you cRIO for floating-point more complex treatment. Example FPGA programs are located in the http://www.ni.com/IPnet.

    Hope this helps, please post any additional questions.

  • Individually control the digital ports

    Hello

    I'm getting a weird behavior when I run the VI attached on my computer out of ports digital test/control individually. I have not tested on real hardware because it is not available at this time.

    When the code is executed, the output pins are beginning to count gradually immediately (binary counting). Activation of the input pins has no effect which is contrary to the wide of the goal.

    It seems to me that the DAQmx function is one that behaves badly, but I don't know why. All I want to do is activate different ports return specified by my selection.

    Could someone please tell what I am doing wrong?

    Thank you

    It is because you are using a simulated device.  Readings are just the model of metering for digital ports.  Once you get real hardware, it should work the way you expect.

  • How to add multiple lines when the button is clicked

    How to add multiple lines when the click on button now is just add a row .plz give me idea how... waiting for answer

    / public final class screen extends MyScreen
    {
    /**
    * Creates a new object of MyScreen
    */
    ObjectChoiceField obj1 obj2, obj3, obj4.
    Table of String() = {'101 ', ' 102'};
    String of shadow [] = {"Shade1", "Shade2"};
    Rolls of string [] = {'101 ', ' 102'};
    String cutting [] = {"100-150", "150-200"};
    Chain of selectedindex1, selectedindex2, selectedindex3, selectedindex4;
    LabelField lbl1 lbl2, lbl3, lbl4;
        
    GFM LinedGridFieldManager;
    HFM HorizontalFieldManager, hfm1, hfm2 hfm3;
    VerticalFieldManager vfmMain;
        
    public MyScreen()
    {
        
    Set the displayed title of the screen
    hfm1 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm2 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm3 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    HFM = new HorizontalFieldManager (HorizontalFieldManager.FIELD_RIGHT);
    vfmMain = new VerticalFieldManager (Manager.NO_VERTICAL_SCROLL |) Manager.NO_HORIZONTAL_SCROLLBAR);
            
    obj1 = new ObjectChoiceField ("", graph, 0, FIELD_LEFT);
    obj2 = new ObjectChoiceField ("", blind, 0, FIELD_LEFT);
    Obj3 = new ObjectChoiceField ("", rolls, 0, FIELD_LEFT);
    Obj4 = new ObjectChoiceField ("", cuts, 0, FIELD_LEFT);
            
    LBL1 = new LabelField("");
    LBL2 = new LabelField("");
    lbl3 = new LabelField("");
    lbl4 = new LabelField("");
            
    ButtonField btnAdd = new ButtonField ("ADD", FIELD_RIGHT);
            
    GFM = new LinedGridFieldManager (4, LinedGridFieldManager.VERTICAL_SCROLL);
            
    hfm1.setMargin (20, 0, 10, 0);
    hfm1. Add (new LabelField ("Chart"));
    hfm1. Add (obj1);
    hfm1. Add (new LabelField ("Shade"));
    hfm1. Add (obj2);
            
    hfm2. Add (new LabelField ("Rolls"));
    hfm2. Add (Obj3);
    hfm2. Add (new LabelField ("Cuts"));
    hfm2. Add (Obj4);
    HFM. Add (btnAdd);
            
    GFM. Add (new LabelField ("Chart"));
    GFM. Add (new LabelField ("Shade"));
    GFM. Add (new LabelField ("Rolls"));
    GFM. Add (new LabelField ("Cuts"));
            
    vfmMain.add (hfm1);
    vfmMain.add (hfm2);
    vfmMain.add (hfm3);
    vfmMain.add (hfm);
    vfmMain.add (new SeparatorField());
    vfmMain.add (gfm);
    Add (vfmMain);
            
    btnAdd.setChangeListener (new FieldChangeListener()
    {
    ' Public Sub fieldChanged (field field, int context) {}
    TODO self-generating method stub
    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];
                    
    While (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }
    }
    });
    }
    }

    Hi Piya,

    I run your code, and according to your logic that it works correctly.

    It's adding that line only once because according to your logic that one line can be added to MDT, if you do not want to add line on each click on the button, follow these steps:

    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];

    Lbl1 LabelField = new LabelField("");
    Lbl2 LabelField = new LabelField("");
    LabelField lbl3 = new LabelField("");
    LabelField lbl4 = new LabelField("");
    If (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }

  • How to transpose a line date wise?

    Dear Experts,

    How to transpose a line date wise?

    date            value
    11-jan-2016 101
    11-jan-2016 102
    11-jan-2016 103
    12-jan-2016 104
    12-jan-2016 105
    12-jan-2016 106
    13-jan-2016 107
    13-jan-2016 108
    13-jan-2016 109
    

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

    Expected results

    date            value     value_2 value_3
    11-jan-2016 101 104 107
    11-jan-2016 102 105 108
    11-jan-2016 103 106 109
    

    Thank you for your help in advance.

    Kind regards

    IVW

    Hello

    Whenever you have a problem, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements) of all the tables involved, so that people who want to help you can recreate the problem and test their ideas.

    Also post the exact results you want from this data, as well as an explanation of how you get these results from these data, with specific examples.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

    and: Re: 4. How can I convert rows to columns?

    Swivel (which is the generic name for what you want to do) assume that you can tell, by looking at each input line, you can specify what columns of output that the row will affect.  In this case, it seems that you need to derive a column like this, perhaps using the ROW_NUMBER analytic function.

  • How to add two lines when the second row is not visible, but also gets the first data line too?

    Mr President

    Jdev worm is 12.2.1

    How to add two lines when the second row is not visible, but also gets the first data line too?

    I want to add two lines like below picture, but want the second to remain invisible.

    tworows.png

    I asked this question but my way of asking was wrong, that's why for me once again.

    Concerning

    Try to follow these steps:

    1. in the database table to add the new column "JOIN_COLUMN" and add the new sequence "JOIN_SEQ".

    2. Add this new column in the entity object. (You can add this in entity object by right clicking on the entity object and then select "Synchronize with database" then the new column and press on sync)

    3. in your bookmark create button to create only one line NOT 2 rows.

    4 - Open the object entity--> java--> java class--> on the entity object class generate and Tick tick on the accessors and methods of data manipulation

    5 - Open the generated class to EntityImpl and go to the doDML method and write this code

      protected void doDML(int operation, TransactionEvent e)
      {
        if(operation == DML_INSERT)
        {
          SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
          oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
          setJoinColumn(seqValue);
          insertSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        if(operation == DML_UPDATE)
        {
          updateSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        super.doDML(operation, e);
      }
    
      private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "Insert into table_name (COLUMN_1,COLUMN_2,COLUMN_3,JOIN_COLUMN, HIDDEN_COLUMN) values ('" + value1 + "','" + value2 + "','" + value3 + "','" + joinColumn + "', 1)";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
      private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "update table_name set column_1='" + value1 + "', column_2='" + value2 + "', column_3='" + value3 + "' where JOIN_COLUMN='" + joinColumn + "'";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
  • How to run the rman output files, which are more days of retention

    I use for my rman backup tasks.

    I have format my output files of rman to a specific path, instead of the fast recovery area.

    Also, I spend below command in RMAN

    RMAN > CONFIGURE RETENTION POLICY to RECOVERY OF 7-DAY WINDOW;

    And the "control_file_record_keep_time" parameter is also set to 7.

    I've been running rman for 8 days. Everything seems good. But I find several rman output files are more than 7 days.

    So, I just want to know how to handle the rman output, which is longer than 7 days files?

    In fact, I assumed that these older files should be obsolete files, but rman is not to declare that they are obsolete.

    So how do now?

    user8710670 wrote:

    I use for my rman backup tasks.

    I have format my output files of rman to a specific path, instead of the fast recovery area.

    Also, I spend below command in RMAN

    RMAN > CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;

    And the "control_file_record_keep_time" parameter is also set to 7.

    I've been running rman for 8 days. Everything seems good. But I find several rman output files are more than 7 days.

    So, I just want to know how to handle the rman output, which is longer than 7 days files?

    In fact, I assumed that these older files should be obsolete files, but rman is not to declare that they are obsolete.

    So how do now?

    Windows 7 day average recovery rman will protect everything necessary for the recovery to any point in time in the last 7 days.  In fact, in the last 604800 seconds.  The same will mean that he need the files OLDER than that.  Simply because a backupset is older that your recovery window does NOT as yet, it is obsolete.  Any recovery begins with the last FULL or INCREMENTAL backup ZERO before the recovery point.  And it does not matter how old the backup is, it will be obsolete.  Suppose you take a level 0 backup, 1 January and for the rest of the year taking nothing but level 1 and backup archivelog.  31 December than and only the full backup will still not be obsolete, even though he is a year old.

    ============================================================================

    removal of the obsolescence of RMAN

    Day 1 - level 0

    Day 2 - level 1

    Day 3 - level 1

    Day 4 - level 1

    Day 5 - level 1

    Day 6 - level 1

    Day 7 - level 1

    Day 8 - level 0

    Day 9 - level 1

    Day 10 - level 1

    Day 11 - level 1

    Day 12 - level 1

    Day 13 - level 1

    Day 14 - level 1

    On day 14, your window of 7 days is up to date 7.  A recovery to date must begin by restoring the backup of level 0 of the day 1. So it may be outdated.  Some level 1 between 1 and 6 days backups might be obsolete, depending on if they are incremental or cumulative, and it also happens with archivelogs.

    If you have access to MOS, you can review the notes 462978.1 and 463875.1.

    ============================================================================

  • How to animate a line with the pen tool to give the impression that it is plotted?

    How to animate a line with the pen tool to give the impression that it is plotted?

    Or you can choose the pen tool (g), set the padding to zero and the race to what you want, then draw a path, then press U twice to reveal all of the properties that have been changed for the layer, and then click Add (top-right) and select Connect the tracks.

    To make the race work just animate the start or end point and sent to paint on original or reveal original or normal.

  • How to download on line adobe purchases

    How to download on line adobe purchases

    Hello

    I checked your account and I see that you purchased Photoshop Elements and first elements.

    Please Download Photoshop Elements | 14, 13, 12, 11, 10 and download first Elements | 14, 13, 12, 11, 10

    Hope that helps!

    Kind regards

    Sheena

    Moving to download, installation, setting up

  • I have Adobe Acrobat XI and can not know how to draw a line.  I need to redline some documents but can not.  Does version XI even not this feature?

    I have Adobe Acrobat XI and can not know how to draw a line.  I need to redline some documents but can not.  Does version XI even not this feature?

    Yes, Acrobat Pro XI and standard have this ability.
    There is the comment > Annotations > online tool.
    There is the comment > Annotations > tool bar.

    In the Properties dialog box for one, you can select a desired color (i.e. red).
    So, in properties, you can check a choice to make this the default value of the tool.

    Basically, all versions of Acrobat (including the new "DC") offer this feature.

    If you work with a scanned image that has been placed in the PDF don't forget to use the OCR to get an output of a 'real' text - Acrobat provides a feature of OCR.

    Be well...

Maybe you are looking for