Return vector for points done of check buffer status in onboard program

Background
I am trying to develop a trigger application based on the current position of a contour profile.
I can not use breakpoints as the application is using hydraulic cylinders with analog feedback
for the primary position. In order to make sure the trigger happens relative to the motion regardless
of host load I want to run the application as an onboard program.
My idea is to read the buffer status points done and generate a pulse out as a trigger when the
points done is greater than the programmed trigger point. For example if I want to trigger on the 42
point of a 100 point profile, I would read points done of the main contour buffer. When points done
is greater than or equal to 42, I would generate a short pulse as a trigger.
Question
My problem is, I cannot find the order that the check buffer status VI returns the data to an onboard program
return vector. As I understand it, I need 3 variables to hold the returned data. One each for State, Backlog, and
Points Done. If I set the return vector to 10, does State get stored in 10, Backlog in 11, and Points done in 12, or
is there a different order?
If you could provide the return vector mapping order for all the motion VIs, it would be greatly appreciated.

Hello,
This is a very good question. I checked in the help for the LabVIEW VI, and it does not explicitly state the answer. The VI calls the FlexMotion function "flx_check_buffer_rtn". In the "NI-Motion Function Help" (Start>>Programs>>National Instruments>>NI Motion>>Documentation), the information for the functions states that it "...returns data in the following order: backlog, bufferState, and pointsDone." It also tells you the size of each of the elements. I will be filing a report so that the LabVIEW documentation includes this information in the future. I hope this helps. Take care!
Regards,
Aaron B.
National Instruments

Similar Messages

  • SDBINST does not check error status of external programs (sdbconfig)

    Hello,
    I was trying to install maxdb 7.6.03.07 on SLES10 JeOS with SDBINST. The problem is, that after a sucessfull instalaltion (i.e. no error message) some of the programs like x_server was missing. First I suspected a missing archive or something from the Share, but then I found the reason for the problem in the logfile of the installer:
    sdbinst was trying to execute sdbconfig, which failed. Obviously sdbinst is not checking the return code of this execution.
    ACTION: make directory "/usr/spool/sql/ini" mode "777"
    SYS: /opt/sdb/programs/bin/sdbconfig IndepData=/var/opt/sdb/data:
       /opt/sdb/programs/bin/sdbconfig: error while loading shared libraries:
       libstdc++.so.5: cannot open shared object file: No such file or directory
    MSG: writing 1 packages
    MSG: net install registry size = 948 bytes
    MSG: wrote install registry (1573 bytes)
    MSG: install registry successfully unlocked
    Can I somehow add this to PTS?
    BTW: there are various reasons why this program call could fail. Not only missing instalaltion dependencies (which I am going to fix and retry). So I think even when you check the library dependencies before, you still must monitor the exit status of those execs.
    Gruss
    Bernd

    > I was trying to install maxdb 7.6.03.07 on SLES10 JeOS with SDBINST.
    SLES 10 and JeOS are two different systems.
    JeOS is an Ubuntu clone - which is not (officially) supported and thus you get those errors.
    Markus

  • Need right value to Load/Read Velocity Using Input/Return Vectors

    I have a servo motor with a encoder feedback of ( 4,000 counts per revolution ), maximum velocity of 6,000 rpm ( 100 rps ). I need to create 3 moving profiles with stroke time of 0.25 mm/sec, 1.0 mm/sec, and 25 mm/sec. I would like to use either Load Velocity VI or Load Velocity in RPM VI whichever is easy to set velocity, distance, and read position of my axis. More, I would like to be able to use onboard variables to set distance, velocity, and read position of the axis using input/return vectors, but I don't know how to set the right values. Do I need a conversion or multiplier number to get the right value?
    Any help would be greatly appreciated.
    Carlos D' Garcia.

    Carols –
    There is a simple vi on how to do vector moves at the following link (I also attached the file below):
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DF9956A4E034080020E74861&p_node=DZ52480&p_source=External
    To have your axes move at different rates, you will have to replace the single ‘Load Velocity in RPM.vi’ that is wired to the Configure Vector Space.flx with three separate Load Velocity RPM.vi’s each with an axis constant (or control) wired to their axis input and the max velocity you want. This way, you will set the maximum velocity for each axis rather than all three at once.
    Best of luck with your project! Let me know if you have further questions with this.
    Marc C
    National Instruments
    Applications Engineer
    Attachments:
    Three-Axis_Vector_Move_with_Position_Monitor.zip ‏29 KB

  • Printing of Payment advice for Payments done by TT(Bank Transfers)

    Hi
    Any standard Tcode available for taking print of Payment Advice for payments made through bank transfers like TT to our vendors. Kindly share
    as we have std Tcode FBZ5 for printing of payment advice for payments done through Checks
    thanks & regards
    salva bindu

    Hi Bindu,
    You can print the payment advices by selecting the Print immeidately in the variant we give in F110-prinout/medium tab.
    In that variant, you give printer name and check print immediately.
    ~Thanks!
    Rajesh

  • Issue with check generation in Automatic Payment Program

    Hi experts,
    I need your inputs for an issue with check generation in Automatic Payment Program. Trying to make a payment to a US vendor with payment method C. The due item is getting picked up and a clearing document is getting generated. But Check is not being generated, niether can I see an entry in PAYR table. However, if I try to generate a check manually in FCH5 for the same clearing document, it is working.

    Have u checked the Variant created in F110 - Printout / data medium, whether the Hose bank details are correctly set or not.
    If yes, check the Printer details
    Let us know the results
    Thanks

  • How to return multiple tags (based on different checks) in a for loop?

    Hi,
    I'm trying to return multiple elements, based on different checks that are done in the XQuery, within a for loop. But I'm getting syntax errors at any attempt to do this.
    This is the structure of what I'm trying to do:
              <ActionList>
         <ACtion>
    let $total := count(...)
    for $x in (1 to $total)
         let $lineItems := $someVariable/*:Items/*:Item[$x]
         return
              if(...)
                        <Qty1>{...}</Qty1>
                             else     ""
                        if(...)
                        <Qty2>{...}</Qty2>
                             else ""
                   {                                       if(...)
              <Qty3>{...}</Qty3>
                             else ""
              <LinesList>
                             let $totalcount(...)
                             for $y in (1 to $totalcount(...)
                                  let $DTL := $someVariable*:DTL[$y]
                             return
                             <Line>
                                  <Carrier>{...}</Carrier>
                                  <Path>{...}</Path>
                                  <CA>{
                                       if(...)
                                            data($$someVariable/*:CA)
                                       else
                                  }</CA>
                                  <RE>{
                                       if(...)
                                            data($someVariable*:CA[@XX="RG"])
                                       else
                                  }</RE>
                                  <Time>{
                                       if(...)
                                            data($someVariable*:CA[@XX="BN"])
                                       else
                                                                     </Time>
                                  </Line>
                        </LinesList>
                                                 </ACtion>
                                                 </ActionList>
    I'm not able to return elements without having their father being returned as well, I just want to iterate over those fields and, based on that verification, decide whether they should be returned or not.
    Can someone please advise?

    An example anyway...
    Input document ($d) :
    <ns0:Items xmlns:ns0="http://my.company.org/my-namespace">
      <ns0:Item type="A">
        <ns0:Qty>2</ns0:Qty>
        <ns0:UnitPrice>10.00</ns0:UnitPrice>
        <ns0:DTL>
          <ns0:Article>ART001</ns0:Article>
          <ns0:DispatchDate>2012-01-20</ns0:DispatchDate>
          <ns0:Destination direct="1">Location1</ns0:Destination>
        </ns0:DTL>
        <ns0:DTL>
          <ns0:Article>ART002</ns0:Article>
          <ns0:DispatchDate>2012-01-21</ns0:DispatchDate>
          <ns0:Destination direct="1">Location2</ns0:Destination>
        </ns0:DTL>
      </ns0:Item>
      <ns0:Item type="B">
        <ns0:Mass>5</ns0:Mass>
        <ns0:Unit>kg</ns0:Unit>
        <ns0:DTL>
          <ns0:Article>ART003</ns0:Article>
          <ns0:DispatchDate>2012-01-20</ns0:DispatchDate>
          <ns0:Destination direct="1">Location3</ns0:Destination>
        </ns0:DTL>
        <ns0:DTL>
          <ns0:Article>ART004</ns0:Article>
          <ns0:DispatchDate>2012-01-21</ns0:DispatchDate>
          <ns0:Destination direct="1">Location4</ns0:Destination>
        </ns0:DTL>
        <ns0:DTL>
          <ns0:Article>ART005</ns0:Article>
          <ns0:DispatchDate>2012-01-22</ns0:DispatchDate>
          <ns0:Destination direct="2">Location5</ns0:Destination>
        </ns0:DTL>
      </ns0:Item>
    </ns0:Items>XQuery :
    declare namespace ns0 = "http://my.company.org/my-namespace";
    <DispatchInfo>
      for $i in $d/ns0:Items/ns0:Item
      return
      <Parcel>
        if ($i/@type = "A")
          then <Amount>{xs:decimal($i/ns0:Qty * $i/ns0:UnitPrice)}</Amount>
          else <Weight>{concat($i/ns0:Mass, " ", $i/ns0:Unit)}</Weight>
      , for $j in $i/ns0:DTL
        return
        <Article>
          <Num>{data($j/ns0:Article)}</Num>
        , <Dt>{data($j/ns0:DispatchDate)}</Dt>
        , if ($j/ns0:Destination/@direct = "1")
            then <Dest>{data($j/ns0:Destination)}</Dest>
            else ()
        </Article>                 
      </Parcel>
    </DispatchInfo>Output :
    <DispatchInfo>
      <Parcel>
        <Amount>20</Amount>
        <Article>
          <Num>ART001</Num>
          <Dt>2012-01-20</Dt>
          <Dest>Location1</Dest>
        </Article>
        <Article>
          <Num>ART002</Num>
          <Dt>2012-01-21</Dt>
          <Dest>Location2</Dest>
        </Article>
      </Parcel>
      <Parcel>
        <Weight>5 kg</Weight>
        <Article>
          <Num>ART003</Num>
          <Dt>2012-01-20</Dt>
          <Dest>Location3</Dest>
        </Article>
        <Article>
          <Num>ART004</Num>
          <Dt>2012-01-21</Dt>
          <Dest>Location4</Dest>
        </Article>
        <Article>
          <Num>ART005</Num>
          <Dt>2012-01-22</Dt>
        </Article>
      </Parcel>
    </DispatchInfo>

  • Can´t access my files on Creative Cloud. "Page temporarily unavailable. We will return soon." "We are working quickly to resolve the problem and apologize for the delay. Check back later or visit our website for status updates. In addition, you can get he

    Hello,
    For a few days I have been trying to access my files on Creative Cloud web without success. I´ve got this message only:
    "Page temporarily unavailable. We will return soon."
    "We are working quickly to resolve the problem and apologize for the delay.
    Check back later or visit our website for status updates.
    In addition, you can get help in the forums of the Creative Cloud.
    Thank you for understanding!"
    (I used Google Translate)
    Somebody help?

    You do not need ?&promoid=KRUVP at the end of the url but it should not matter.
    One thing to check is if your hosts file is modified. Open the Command Prompt and type: notepad %systemroot%\system32\drivers\etc\hosts
    This will open a read-only copy of your host file in Notepad. Are there any entries in this file regarding adobe.com?
    The other thing you can do is open the Developer Tools in the Chrome browser. On Windows press Ctrl + Shift to open them. Switch to the Network tab. Reload the page by pressing Ctrl + r. Check for any 4xx or 5xx errors which should be colored red.
    Post screenshots of your results or send me a private forum message with the information.

  • System don`t check an order number for CO account assignment

    hi,
    I have this problem. When I creta a sales order in CRM and then system creates as a follow up document a sales order in SD system don`t check an order number for CO account assignment. If I want to create a sales order not as a follow up document, but directly in transaction VA01 and I use exactly the same data system gives me a message " The CO account assignment object belongs to company code X, not Y
    You want to make a posting in company code Y.
    At the same time, a CO account assignment object was specified that is assigned to company code X.
    This is account assignment object with object type ORD, and object key 1xxxxxxxxxxx...".
    My question is why system don`t check order number when a sales order in SD is created as a follow up document and what should I do to correct this.
    Regards,
    Mateusz

    Check note
    a)  352261  or
    b)  557562
    thanks
    G. Lakshmipathi

  • Return process for the PO which has done the usage decision with QM

    Hi Guru,
    We are running below process right now, and stop there, don't know how to return to vendor:
    PO for external vendor -> Goods purchased physically arrive -> Create a inbound delivery for this PO -> Post the GR with the inbound delivery created -> QA team performed the usage decision and rejected.
    At this moment, how can we reverse the good receipt? We canu2019t use VL09 to reverse the inbound delivery, and we can not use MBST to reverse the material doucment which created during Post good receipt.
    What's the correct process to return it to vendor?
    Thanks,

    Hi Rick,
    Can use t.code MIGO and select return delivery for material document or delivery note.
    Then select the respective document, it will display the details, now you can select the material which you want return and unselect the materials which you dont want to return and the quantities accordingly.
    Save the document.
    This will use movement type 122.
    Regards
    vk

  • My Order Number 2510885387 and i have ordered for developer account but when i am checking the status it is still saying no order done in last 30 days

    my Order Number 2510885387 and i have ordered for developer account but when i am checking the status it is still saying no order done in last 30 days

    There's a Contact Us button at the bottom of this article    >  https://developer.apple.com/support/ios/purchase-and-activation.php

  • Transport request : tp check buffer for already imported requests

    Hi,
    I want to put a transport request on my prod. There was no problem on the quality. But on the prod, i have the message :
    "tp check buffer for already imported requests"
    and nothing appends.
    Do you have any idea how i can unlock this transport request ?
    Tx in advance.

    Hi,
    Use table E070. and display the Transport reqeust and double click on the request row.and in command prompt enter ' /h '. change status as unreleased.
    Regards
    Jana

  • ITunes "Check for updates" don't work for two specific app

    I have iPhone 4S, and iTunes at Windows 7 PC. Clean install.
    I've bought an GPS navigation app, Turkey Navigation iGO Primo app, which was free at first release day. My problem is, when I click the button "Check for updates" at iTunes(PC), it don't show me any updates, but when I go to app's(iGO Primo) iTunes page, I see that new version released, and iTunes price button says "Update". So I can manually update the app, but iTunes can't automatically finds it. This symptom only occurs for two apps iGO Primo app and Google Search app.
    A friend of mine also bought the Primo app at same time as me, and she has no problem, iTunes can find updates automatically.
    I can delete the app from iTunes and download again, but no luck, no fix.
    Developer(NNG) and Apple technical support can't help me a bit.
    Maybe there is other apps at my library that has this problem, I don't check every app's page manually if an update released.
    Do you have any solutions?

    From the Store menu, select
              Check for Unfinished Downloads...

  • SDO_UTIL.GETNUMVERTICES for point type geometries returns gtype?

    Hi folks,
    This is a head scratcher.
    Uh shouldn't this always return 1? It seems to return the get_gtype value.
    SELECT
    SDO_UTIL.GETNUMVERTICES(
       SDO_GEOMETRY(
          2001,
          8265,
          SDO_POINT_TYPE(
             -86.85791015625,
             33.3029861812241,
             NULL
          NULL,
          NULL
    FROM DUAL;We can get even whackier. This returns 9!
    SELECT
    SDO_UTIL.GETNUMVERTICES(
       SDO_GEOMETRY(
          9001,
          8265,
          SDO_POINT_TYPE(
             NULL,
             NULL,
             NULL
          NULL,
          NULL
    FROM DUAL;Am I missing some nuance here?
    Thanks!
    Paul

    Hi Paul,
    I'm looking forward to hearing you work the term "fancy hat" into an explanation of this behavior.
    I get the same behavior on 11.2.0.2. Tsk tsk on you for not mentioning your version. Back on 10.2.0.4 the same select statements yield:
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at "MDSYS.SDO_UTIL", line 344
    So the only nuance I can think of, which isn't really a nuance at all, is that getnumvertices isn't allowed for point types.
    Matt

  • Issue with Return Delivery for movement type 262

    Hi,
    I have got a strange issue, the user is trying to do a MIGO Return Delivery for a material document using movement type 262, this he claims has been doing it for many materials. However when i go to the MKPF table i see the transaction Code field to be MIGO_GI for all the material documents for which he claims to have done return delivery. But under this transaction code we have only 4 options - Display, Issue, Cancel and Remove from storage.
    Now when he tries to do the return delivery for movement type 262 he get an error message "Check table T156N: entry RL 262  does not exist" , but this has been very well maintained in the table.
    Can you please let me know -
    If it is possible to do a return delivery for a movement type 262?
    If yes how to address the above error encountered.
    Thanks in advance
    Sachin

    Hi Sachin,
    If you think of return delivery to vendor with or w/o PO reference you can use movement types 161, 122, 124 as default settings.
    Movement type 261 means withdrawal against production order and its reverse is MVT 262. The latter can be used e.g. via MB1A (or you can make storno of a confirmation by 261).
    Are you sure your user is using the correct terminology ('return delivery')? Please check the material documents he/she claims to have booked as return delivery. (in MB51 you can get a list of all material movements of MVT 261 that belong to 'your user' and after that you can open the material document and check through which transaction the booking was made.)
    BR
    Csaba

  • How to cast vector to vector with out using loop. and how to override "operator =" of vector for this kind of condition.

    Hi All How to TypeCast in vector<>...  typedef  struct ...  to class... 
    //how to cast the vector to vector cast with out using loop
    // is there any way?
    //================ This is Type Definition for the class of ClsMytype=====================
    typedef struct tagClsMytype
    CString m_Name;
    int m_Index;
    double m_Value;
    } xClsMytype;
    //================ End of Type Definition for the class of ClsMytype=====================
    class ClsMytype : public CObject
    public:
    ClsMytype(); // Constructor
    virtual ~ClsMytype(); // Distructor
    ClsMytype(const ClsMytype &e);//Copy Constructor
    // =========================================
    DECLARE_SERIAL(ClsMytype)
    virtual void Serialize(CArchive& ar); /// Serialize
    ClsMytype& operator=( const ClsMytype &e); //= operator for class
    xClsMytype GetType(); // return the typedef struct of an object
    ClsMytype& operator=( const xClsMytype &e);// = operator to use typedef struct
    ClsMytype* operator->() { return this;};
    operator ClsMytype*() { return this; };
    //public veriable decleare
    public:
    CString m_Name;
    int m_Index;
    double m_Value;
    typedef struct tagClsMyTypeCollection
    vector <xClsMytype> m_t_Col;
    } xClsMyTypeCollection;
    class ClsMyTypeCollection : public CObject
    public:
    ClsMyTypeCollection(); // Constructor
    virtual ~ClsMyTypeCollection(); // Distructor
    ClsMyTypeCollection(const ClsMyTypeCollection &e);//Copy Constructor
    DECLARE_SERIAL(ClsMyTypeCollection)
    virtual void Serialize(CArchive& ar);
    xClsMyTypeCollection GetType();
    ClsMyTypeCollection& operator=( const xClsMyTypeCollection &e);
    ClsMyTypeCollection& operator=( const ClsMyTypeCollection &e); //= operator for class
    void Init(); // init all object
    CString ToString(); // to convert value to string for the display or message proposed
    ClsMyTypeCollection* operator->() { return this;}; // operator pointer to ->
    operator ClsMyTypeCollection*() {return this;};
    public:
    vector <ClsMytype> m_t_Col;
    //private veriable decleare
    private:
    //===================================================
    ClsMytype& ClsMytype::operator=( const xClsMytype &e )
    this->m_Name= e.m_Name;
    this->m_Index= e.m_Index;
    this->m_Value= e.m_Value;
    return (*this);
    //==========================Problem for the vector to vector cast
    ClsMyTypeCollection& ClsMyTypeCollection::operator=( const xClsMyTypeCollection &e )
    this->m_t_Col= (vector<ClsMytype>)e.m_t_Col; // how to cast
    return (*this);
    Thanks in Advance

    Hi Smirt
    You could do:
    ClsMyTypeCollection* operator->() {
    returnthis;};
    // operator pointer to ->
    operatorClsMyTypeCollection*()
    {returnthis;};
    public:
    vector<ClsMytype>
    m_t_Col;//??
    The last line with "vector<xClsMytype>
    m_t_Col;". It compiles but I doubt that is what you want.
    Regards
    Chong

Maybe you are looking for

  • Firefox logo missing from new browser; would like to see it so I can know at a glance which browser I am using.

    Bring back the logo or something else to allow quick identification of browser. Chrome doesn't have its logo in the browser either so now it going be harder to tell between the two. Is this a contest to see which can be more self effacing?

  • Logic 7 Autoload in Logic 8??

    Is there anyway I can transfer my Logic 7 autoload into Logic 8?> I have just installed Logic 8 on my machine and still have logic 7 residing on there also. I also have my autoload template (new key commands etc) on my desktop. Can I open this within

  • How to prepare for the interview

    hi gurus       tommorow i have an interview can any body tell me the how to prepare for the interview?i.e.,which type of questions interviewer may ask regarding both subject and real time.? thanks&regards prasad

  • Delta Infospoke Question

    Is there a way to set all requests in a delta infospoke from "Not Yet Read" (Yellow) to "Read" (Green) without doing an extract??   I see how to set it from Read to Not Yet Read, but I want to go the other way.

  • Spotlight will not search...

    Here is what happened. Finder hard crashed so badly that it required that I shut off the computer.(Mac Pro) I could not even bring up force quit. When it came back up, Spotlight just would not search. It would come up, but typing in a term would do n