The value of static output on PFI on USB 6366

Hi all

What I want to achieve is to save dedicated 8 DIO lines on dev USB6366 on port 0 for some specific application and use remaining 16 PFI lines control some external equipment.

All I need is the ability to set some PFI line high/low within a reasonable time by command software (LabView, .net, C, whatever). No requirement special timing, just set some PFI lines high and LOW back switch after not less than 20 ms. These signals would be used to control an external logic; no significant current.

The question:
Is it possible to control the PFI lines in the way that I described on 6366 USB device?

Manual for this device (or in fact, the family of devices) is a bit ambiguous on this subject.

It is said it is possible to select 'direction' of each digital line but that's it. No more information. Only a manipulation of the port 0 (general purpose DIO) has its own section. PFI-Out is just mentioned. PFI - In is explained a bit more in detail, but also vaguely.

P.S. I have no devices available now (I would have tested the ability to do what I described, if I had).

Thanks for your time!

Bebor,

You should be able to use the 16 PFI lines as digital lines.  To change the status of the lines, you must create a task of digital output, the same as you would on the lines of port 0 (DAQmx manages the programming of the direction of line for you when you create a task).  Writing DAQmx can then update the status of the lines.

These lines do not support the operation timed, so lines are updated when writing DAQmx is called.  Synchronization restrictions that are imposed should be dealt with by your software and will be limited to the accuracy of the software timers put at your disposal.

Dan

Tags: NI Hardware

Similar Questions

  • The value of static output (LVCMOS) on PCI 6562 PFI 3

    Need to use the 6562 3 PFI LVCMOS output to provide a logic 1/0 to a controls data switch within our test equipment.  How this can be implemented in CVI?

    Hey titchell,

    A tower is more that you can use in this forum post called static write with a PFI using HSDIO products. This isn't a well-known method, but this should work for you. You will need to use the following function:

    Int32 DAQmxConnectTerms (const char previous [], const char destinationTerminal [], int32 signalModifiers);

    Int32 DAQmxDisconnectTerms (const char previous [], const char destinationTerminal []);

    [Another thing you can do is just use high or low, while the previous]

    Make sure that you use the DAQmxDisconnectTerms() function when finished, so that you can use the PFI line for other signals if you need to.

    Kind regards

    DJ L.

  • How do I divide the values in an output of the query?

    I have this code:

    <cfoutput query="GetResults">
      <tr>
      <td nowrap="nowrap">#csedept_name#</td>
      <td nowrap="nowrap">#question_1#</td>
      <td nowrap="nowrap">#question_2#</td>
      <td nowrap="nowrap">#question_3#</td>
      <td nowrap="nowrap">#question_4#</td>
      <td nowrap="nowrap">#question_5#</td>
      <td nowrap="nowrap">(#question_1#/#question_2#)</td>
      </tr>
    

    9 I do not get the answert online I would I actually get the value of question_1 and question_2, something like (5/4). How I'd get him show 1.25?

    Change to line 9 to:

    (question_1 # / question_2 #)

    -Carl V.

  • Please advise on how to get the value of param output after the call to a procedure

    Hey,.

    a bean of support, the following code

    OperationBinding operationBinding = bindings.getOperationBinding ("func1");
    operationBinding.getParamsMap () .put ("pCustomerId", customerKey);
    operationBinding.execute ();

    What do I need to read the value of param?
    something like...
    String res = operationBinding.getParamsMap () .get ("myoutparam");

    Assuming that your operation binding is a method of AM service called func1, make the method returns the value and call getResult() on the operationBinding class.

    John

  • How to link the value of its output of the PDM file name

    Hello

    I want to store data in a file of PDM. The complete data acquisition is running through a sequence in a while loop. At the end of the sequence, I've now included another frame where I would record the acquired data. Timing information is irrelevant.

    When I built a table of local variables and connect it to the "signals" of the ExpressVI get a nice TDMS file with values at each iteration. Is it possible to get the signal name in the header? For now, he says "Untitled."

    My TDMS also has seven leaves well I only created a table with three variables.

    Any help would be appreciated

    Cheers to the Germany

    Here is a little example that does not use the Express VI, but the real PDM API sie.

    You can change the name of the group, as it is just an entry to write PDM.

  • DBMS_SQL cannot get the value of static column.

    The code below, it works fine. But when the query is modified as
     select id, name, 'NOT', date from example_table
    the * 'NO' * cannot be retrieved by DBMS_SQL. COLUMN_VALUE.

    The result looks like

    1, Tom, 06/03/2013
    1, Jack, 03/06/2013
    1, Pete, 03/06/2013

    But I want that:

    1, Tom, NO, 2013/06/03
    1, Jack, NOT 2013/06/03
    1, Pete, NO, 2013/06/03

    Can someone test this and have a solution for this?
            DECLARE
               v_curid    NUMBER;
               v_desctab  DBMS_SQL.DESC_TAB;
               v_colcnt   NUMBER;
               v_name_var  VARCHAR2(10000);
               v_num_var   NUMBER;
               v_date_var  DATE;
               v_row_num    NUMBER;
                p_sql_stmt VARCHAR2(1000);
            BEGIN
                v_curid := DBMS_SQL.OPEN_CURSOR;
                p_sql_stmt :='SELECT * FROM emp';
                DBMS_SQL.PARSE(v_curid, p_sql_stmt, DBMS_SQL.NATIVE);
               DBMS_SQL.DESCRIBE_COLUMNS(v_curid, v_colcnt, v_desctab);
    
               -- Define columns:
               FOR i IN 1 .. v_colcnt LOOP
                IF v_desctab(i).col_type = 2 THEN
                    DBMS_SQL.DEFINE_COLUMN(v_curid, i, v_num_var);
                    ELSIF v_desctab(i).col_type = 12 THEN
                    DBMS_SQL.DEFINE_COLUMN(v_curid, i, v_date_var);
                    ELSE
                    DBMS_SQL.DEFINE_COLUMN(v_curid, i, v_name_var, 50);
                    END IF;
                END LOOP;
                v_row_num := dbms_sql.execute(v_curid);
                -- Fetch rows with DBMS_SQL package:
                WHILE DBMS_SQL.FETCH_ROWS(v_curid) > 0 LOOP
                    FOR i IN 1 .. v_colcnt LOOP
                    IF (v_desctab(i).col_type = 1) THEN
                            DBMS_SQL.COLUMN_VALUE(v_curid, i, v_name_var);
                    ELSIF (v_desctab(i).col_type = 2) THEN
                            DBMS_SQL.COLUMN_VALUE(v_curid, i, v_num_var);
                    ELSIF (v_desctab(i).col_type = 12) THEN
                            DBMS_SQL.COLUMN_VALUE(v_curid, i, v_date_var);
                    END IF;
                END LOOP;
                END LOOP;
                DBMS_SQL.CLOSE_CURSOR(v_curid);
             END;
             /
    Published by: frank1018 on June 4, 2013 16:35

    Published by: frank1018 on June 4, 2013 16:41

    The data type is 'NO' tank (3), which is the type of data 96. See http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements001.htm#i54330
    I changed 'IF (v_desctab (i).col_type = 1)' in

    IF (v_desctab(i).col_type in ( 1, 96)) THEN
    

    and it retrieves the "NOT".

    I suggest one

    ELSE raise_application_error(-20000, 'I dont understand data type ' || v_desctab(i).col_type || ' in ' || p_sql_stmt );
    

    so you can see what goes wrong.

    I also suggest giving an alias of column for the 'DO NOT' so it has an explicit column names. i.e.

    p_sql_stmt :='select empno, ename, ''NOT'' ncol, hiredate from emp';
    

    Published by: davidp 2 on June 4, 2013 16:38

  • Calculating the value of output with custom scale

    Hello

    I defined a custom in MAX scale.

    I want just to calculate the value of an input applied with this scale value.

    Process is simple:

    X-online custom-online output value scale

    in the process of

    Is there a way to do it simply (reminder: custom scale can be linear, polygon, table etc...)?

    Looks like you might need to check the interpolation
    http://zone.NI.com/reference/en-XX/help/371361J-01/GMATH/interpolate_1d/

  • vary the value of output of the digital HIGH output voltage.

    Hello

    Is it possible to vary the values of the NOR-DAQ HIGH output voltage. If Yes please tell me how to do the same. I want to reduce tension before moving out of my camera, digital signal as my rating of device is only 3 volts for the digital HIGH.

    Kind regards

    Pradeep.

    The digital output voltages cannot be changed on your USB-6259 (that you mentioned that you use in a different thread).  Please see the specifications for more information on the digital logic levels used on your Board.

    Best regards

  • Acquire the values only when the digital output is high.

    Hello

    I work with test of transistor, whose door is controlled by the digital release of USB6289, related to BNC2120.

    Test plan:

    Door 1.transistor is enabled for 5seconds, with P0.0 for example

    2. then, everything remains off for 1secondes.

    3.p0.1 is used as digital output to activate the circuit passing him curent through in the opposite direction, P0.1 goes high for 3 seconds, PS: Gate is off.

    4. the same cycle repeats again.

    My question is to store values to the output of the transistor when P0.0 and P0.1 goes high, and these values should not change until my digital outputs respective again go high.

    I can access transistor by continiously read out my power supply values.

    and in the State off I want to read AI0 because at that time, my power supply is off, so that I can activate the circuit to pass the current in the opposite direction.

    Again, my question is to gain the output through power value when P0.0 is high and store them until the transistor turns on.

    and even for P0.1, acquire the value of output through AI0, when P0.1 is high and store it until it goes high again.

    Hopefully, I'm able to explain my problem clearly.

    Please help me.

    Concerning

    Anurag

    Think about what States (object:statemachine and determine when to use sequence Structures) do you want from t0... t(n-1), IF DAQmx generates outputs and/or inputs are absorbed and what needs to happen (event timed out), before move you on to the next 'State '.

    type def 'enum' with your different States:

    • initialize
    • wait (the user initializes times (sec) set for States, or whatever and presses button 'Start')
    • T0 (generate DigOutputs, store acquired data AnalogOutput (string output number) the register shift, before moving to the next State > user 'set time' must elapse (Note: the wait function allows you to control the rate of execution of loop and allow the CPU to respond to external events and system tasks and avoid using wait functions at the same time an operation of software...))
    • ...
    • t(n-1) if ' end (made requirement) "> goto 'stop', ' another (not requirement not)" > goto regardless of 'State '.
    • stop
    • write a text file of data (string).
  • Ring control output is the name of the item and not the value

    Hello. I'm new to Labview. I'm experimenting with labview and create just simple VI to learn more about the software. I placed a control of the ring and attached an indicator to this control of the ring. I found that the object of a control ring to select an element and an output value. For example, I placed 3 items in the properties of the ring (red, blue, yellow) and given the value of these items 1,2,3. But when I run the VI and select blue, I was expecting the indicator attached to the control to read 2, but on the contrary, he says 'Blue' (even for other items). What I'm misunderstanding here or to hurt? I've also attached a screenshot.

    Your meter is another ring that has the same pair name / value, so it's going to see the name associated with the value.  Remove the ring indicator and just drag in an ordinary digital indicator.  Then, it will show you the value.

  • read the values of an array element and by sending a digital output to a designated channel according to the value read from the table

    Hello world

    could someone help me before I get out of my hair. Here's my problem.

    I read 3 values of an array of 3 elements i.e. 1,2,3. These values are then compared to a constant value, example if the first element of the array is 1 and it meets the comparison condition can send a digital camera of output for that channel on data acquisition

    I want to be able to send a value from a table to its corresponding comparison and then on its designated channel on the acquisition of data, the whole point of this is due to the fact the table element will not always read the value 1,2,3 for example could be 2,3,1

    Here's one the vi I have so far

    If someone could help it would be much appreciated

    all the best

    brand

    Take time to explore the many examples included with LabVIEW that cover the basics.

    -Indexing table

    -reading a spreadsheet file

  • List of input values (multi-column) must return the output text once the value is selected

    Hello

    I am trying to achieve conditional:

    I create a searchVO(select '' empNumber from dual) - to accept the input value (name empNumber).

    I create empLovVO (select enum,ename, addr, city of emp). lov attached to empNumber (searchVO).

    In the list of values when I select a value (emp 1, a, xyz, abc), it must return the default aby associated with emp values 1 to my output texts

    the name of the EMP one.

    addr xyz

    City abc

    It should also automatically change the values if I select another empNumber.

    Please let me know how to achieve this.


    Thank you

    Firstly, for the searchVO, add a three other attributes, name, address, and City, the type of string:

    and make sure they are still editable:

    Then, you're mapped LOV enum attribute EmpNumber, right?

    Do similar for the newly created attributes, in the list of values dialog box validation:

    Ename--> name,

    --> addr addr,

    City--> City

    Then, just to show these attributes in the form of output text, and you'll get what you want...

  • ADF - JavaScript getValue is not recovering the value of output text

    Hello.

    I have a workflow with fragments, before the page loads, I call a function in my Bean, function to set initial values.

    In my grain I have variables like this:

    private String var1;

    public void setVar1 (String var1) {}

    This. var1 = var1;

    }

    public String getVar1() {}

    return var1;

    }

    According to a request, I put this variables.

    On my page, I have several panel grid layouts, with the cells in the grid that contains an af:link and an af:outputText.

    My af:link get the icon property with the help of the variables set before the loading of the page, like this:

    /Dir1/Dir2/#{MyBean.var1}.jpg

    A my the same output text:

    value: #{MyBean.var1}

    It works perfectly.

    What I need is to valorise tha in the output through a JavaScript function text.

    Inside the af: link, I have a clientListener that calls a JavaScript function where I need to get this value, something like this:

    function testValue (actionEvent) {}

    actionEvent.cancel ();

    source var = actionEvent.getSource ();

    var value = source.findComponent ("c1");

    var value= currentValue. getValue();

    Alert ("currentValue:" + currentValue);

    }

    The value is never shown. I also tried withAdfPage.PAGE.findComponent

    Its curious, because I do the same with a seizure of text on the page, have not the value of a Bean and the value was fine.

    I don't understand what is happening.

    Could you help me?

    Thanks in advance.

    I solved it.

    I've been away a property: ClientComponent: true.

    Thank you.

  • Change the value of the static element

    Hi all

    I hope someone can help me with the following problem...

    I want the user to confirm an action (which defines a value of an element) and then I have a conditional sequence of dynamic actions if the value of an element Y. To make things as simple as possible, suggests following situation:

    I have a blank page with a single element (static text) on it named P1_YES_NO_FLAG, default value is N, the source field is empty and a region borders with 2 attached Dynamic actions:

    1)

    Sequence - 10

    Action - set

    Set the type - static assignment

    Y - value

    Article (s) - P1_YES_NO_FLAG

    2)

    Sequence - 20

    Action - alert

    Value of P1_YES_NO_FLAG is & P1_YES_NO_FLAG.

    The problem is that even if I see in the value text box is text alert is "value of N is P1_YES_NO_FLAG" and if I use the value of an item anywhere else (in the PL/SQL code: P1_YES_NO_FLAG), it always contains the value 'n'.

    Evolution of value through sql code

    BEGIN

    P1_YES_NO_FLAG: = 'Y ';

    END;

    or

    with the APEX_UTIL API

    BEGIN

    APEX_UTIL. SET_SESSION_STATE ('P1_YES_NO_FLAG', 'Y');

    END;

    did not help either.

    So, please, can someone explain what is happening behind the hood and what I need to do to ensure that the changed value "visible"? Thank you very much in advance.

    Kind regards

    Pavel

    Hello

    When you use the dynamic action that run PL/SQL, there is option to submit the Page elements.

    Enter to that point fields value of witch name (s) you want the session state value before executing PL/SQL code.

    Kind regards
    Jari

  • Pass the value modal page using static URLS

    Hi guys,.

    I have a simple page with three boxes.

    When one of the check boxes is selected, I want to draw a new page which I use as a modal page (SkillBuilders Modal plug to help).  I need to pass a value of a checkbox (P1_WTD_OPT_OUT) in the new modal page.

    I have the following in the static URL

    f? p = & APP_ID.:2: & APP_SESSION.:2:P2_WTD_ID, P2_WTD_OPT_OUT: & P1_WTD_ID, & P1_WTD_OPT_OUT. :

    where I'm moving the value of P2_WTD_OPT_OUT to P1_WTD_OPT_OUT.

    As I don't submit anything when the check box that calls the modal page is checked, how I would pass the value in the modal page?

    At the moment, if P1_WTD_OPT_OUT is enabled or not, P2_WTD_OPT_OUT is always null when modal page.

    I use apex v4.0

    Any help would be great,

    Thank you

    Here is what goes wrong:

    -page is first rendered, P8_WDT_OPT_OUT is NULL

    -the static url for the modal lov is generated. Given that the item is NULL value in the url for the P9_WDT_OPT_OUT point shall be void in this url

    -l' change event fires. The P8_WDT value is stored in session state

    -the modal opens and navigates to the static url

    End result is that the P9 indeed will be null.

    The solution to this is to not not to set the value of the item through the URL, because it will simply not work. But given that the element of P8 is located in session state, you can use the value of it to the default value of the element on P9.

    On page 8, I changed the dynamic action to not set the value of the element in the URL, and on page 9 I changed the default value of the element.

Maybe you are looking for

  • How can I get Flash to play in Firefox 14.0 on Android?

    I have plugins enabled in Firefox on my Motorola Atrix 14.0 and also have Adobe Flash Player installed 11.1.111.10, but the Flash does not load in Firefox. Instead, I get the error message: "a plugin is needed to display this content." My plugin for

  • Prevent zoom, press SHIFT

    How can I stop on shift press zoom on chart WPF?

  • Meeting with WindowsUpdate 80072EE2

    I meet WindowsUpdate_80072EE2 when I use the windows update system.  I have already applied the necessary changes to the firewall without success

  • Microsoft spooler subsystem app stopped working.

    says error message spooler subsystem app stopped working. I've consulted and headed the service of "fixit" 3 times, but it does not correct the problem.

  • Windows Vista (TM) not authentic

    have my computer with VISTA for almost 2 years, and all of a sudden he asked activate me my software.  When I enter my code the product key (from my genuine version of VISTA) it says it is invalid.  At the bottom right of my office, he said: "Windows