Change number of pulses daqmx

Hi, I'm trying to control a servo-motor using labview, an E-series device and an omron driver. The driver will rotate the motor a certain number of degrees, proportional to the number of pulses sent by the card. I am able to successfully change the pulse frequency, but unable to do the same for the number of pulses, while the program is running.
Does anyone know how to do this?
Thanks in advance,
JAlmeida

Thanks for answering.
I'm trying to control the position of the motor and for thatI have implemented a control algorith that changes the speed of the motor according to the difference between the reference position and the motor position. This happens dynamically as the vi is running. However, this form of control isn't the best, and the motor would respond better if i could send the reference position directly to the driver, as a finite pulse train.
Basically, I need to send successive finite pulse trains to the driver, according to the number of degrees it has to rotate to follow the reference position.
Here's the vi, if you want to see it.
Thanks you,
JAlmeida
Attachments:
serial_control16.vi ‏98 KB

Similar Messages

  • Finite pulse train generation​... how to count number of pulses?

    hi guys,
    this has probably been solved a hundred times but i just couldnt find it!!
    i have a pulse train generation happening on my ni usb-6211... using FREQ OUT, using a divisor on this, and routing it to PFI4.
    id like to update my VI so i can specify the number of pulses....
    im pretty much a noob at this stuff so any help would be greatly appreciated!! thanks!
    dan
    Attachments:
    pulse train generation.vi ‏25 KB

    Hi,
    No problem at all, we are here to help. What I’m going to do first is to point you to a bunch of examples for that might give you a better insight of the capabilities of the card in terms of finite pulse generation. What you should be looking at is called retriggerable pulse generation and here are some examples to look at: Retriggerable Finite Pause Trigger Digital Pulse Train Generation, Creating a Delayed, Retriggerable and Finite Pulse Generator, DAQmx - Retriggerable Pulse Train Generation - LabVIEW - CVI - ANSI C - VB.NET - C#.NET and Retriggerable Finite Pulse Train with Changing Pulse Specs.
    Let me know it helps
    Jaime Hoffiz
    National Instruments
    Product Expert
    Digital Multimeters and LCR Meters

  • Learn the number of pulses created in a finite pulse train

    Hello
    I am using the PCI-6602 Board to produce a finite number of pulses with counter0.
    I want to know how many pulses that are already created by the counter, while my program is running and show this number on an indicator on the front panel of my VI.
    What is the best way to do this with LabVIEW?
    Of course I can use another counter to count the pules and route the output of counter0 to its input.
    However I wonder if it is possible to solve the problem without using another counter, because DAQmx internally already uses a second counter to produce the finite pulse train so it should be possible to read this counter, isn't it?
    Thanks for every help.

    However, I wonder where I can get such detailed Information about the internal functionallity of the DAQ-devices and the DAQmx driver?  Please let me know where you get this information from. (So that I can avoid using this forum in the future)
    Speaking just for myself --- the source has been generally the school of hard knocks. I started doing a lot of special timer/counter work right around the Y2K timeframe. The legacy driver now known as traditional NI-DAQ was then the only game in town.   The programming and terminology under trad. NI-DAQ tends to require you to understand the hardware at a lower level.  The programming used more counter-specific terminology like Gate and Source signals.
    So for a lot of this stuff, I came into DAQmx with a good understanding of the low-level hardware capabilities, and I just needed to tromp around a bit to find the right syntax.  Consequently, I'm not much help for pointing you toward info sources as I haven't relied on them much.  Meanwhile, good luck with the self-teaching but don't feel compelled to "avoid using this forum in the future."
    -Kevin P.
    Message Edited by Kevin Price on 11-01-2007 10:04 AM

  • Number of pulses

    Hello every one ;
           I intend to measure the speed of a varying speed wheel using a  photo-coupler (ir transmitter/receiver)  is used in order to detect the number of rotations i have found the output to be a train of pulses that vary in frequency with the speed of the wheel
    please help me determine the number of pulses over a certain period of time.
    Attachments:
    my version.vi ‏56 KB

    Hi arifat2k,
    If I understand you correctly, you want
    to measure the duration of a counter acquisition.
    I recommend starting with some of the
    shipping examples. In LabVIEW, if you go to Help » Find Examples… the Example Finder will pop up. Browse by
    task to: Hardware Input and Output »
    DAQmx » Counter Measurements » Count Digital Events » Count Digital Events.vi.
    You can then add timing VIs to keep track of the approximate duration of the acquisition.
    They can be found by right clicking on the block diagram and selecting Timing. There are several timing VIs
    that might be useful, such as Get Date/Time in Seconds and Elapsed Time.
    Attached is the example VI pictured below.
    Please post back with any questions. If you do, please include more information about your hardware and application. Have a great day!
    Message Edited by ryan_d on 11-06-2007 04:43 PM
    Ryan D.
    District Sales Manager for Boston & Northern New England
    National Instruments
    Attachments:
    timing.png ‏8 KB
    Count Digital Events - timed.vi ‏32 KB

  • How to use counters of PCI 6251 to count the number of pulses

    Hello,
    I have inputs from an optical encoder {pulse train} and i need to count the number of pulses for a short period of time to estimate the speed of the DC motor. Could you please tell me how to use the counters in PCI 6251 DAQ. I found something on DAQ STC, whichs says the input pulse should be connected to PF0 {ctr source}, but i have query where do i get the output {number of pulses counted in a particular period of time}.
    Looking for your reply.
    Thanks & Regards,
    bsnr

    Hi bsnr,
    Thanks for the post!
    In MAX (Measurement and Automation Explorer), if you find the device (DAQmx devices) and right-click, you can select pinouts - which should contain a table telling you which pins are what PFI lines.
    Then, in labVIEW, you need to generate some code to use the choosen coutner in a task to count digital edges. If your not sure on this, go to Help>>Find Examples>>Hardware I/O>>DAQmx>>Counters.. and take a look at some of the code provide.
    ps. It seems (maybe just your wording), but your expecting the counter output pin to provide the number of counted edges - this isn't the case.  
    Please let me know what you think?
    Kind Regards, 
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • How to find Change number for a Material

    Hi,
    If we know the material number and Revision level then how can we find the Change Number of that material.
    Is there any table in which i can find Change number for a revision level or is there any Function module available.
    Regards,
    Vaibhav

    Hi Vaibhav,
    Is there any table to find the change number and revision level of a material. I have change number and material and revision level coming from external system. But i need to check that with SAP whether it exists or not.
    Is there any table link to find whether a material has change number.

  • Error while changing BOM with change number

    Hi ALL, Please help me with followed error message, I am using ECM. I created ECR and converted to ECO and then released.
    Object management record cannot be generated
    Message no. 29046
    Diagnosis
    You want to change the BOM with the entered change number.
    One of the following situations triggered this error message:
    1. The indicator that allows automatic generation is not set for object type BOM in the change master.
    2. The indicator generation only on initial creation is set for object type BOM
    3. You are processing a change request.
    System response
    The system checks whether the indicator object management record will be generated is set in the change master.
    If the indicator generation only on initial creation is set, the system checks whether the BOM exists in the system.
    Procedure
    If you are authorized to change the change master, execute the following steps:
    For 1.)
    Set this indicator for object type BOM or create the control record in the change master.
    For 2.)
    If the BOM already exists in the system and the generation only on initial creation indicator is set, the system can no longer generate the control record automatically.
    In this case you have to add the object control record to the change master first, then you can change the BOM in relation to the change number.
    For 3.)
    You cannot generate any object control records for a change request.

    Hi
    With your question regarding changing BOM with change number  it looks lke there may be problem in defining the Object types,objects.Moreover whenever converted to ECO you need to enter into cs02 tcode for changing the bom with relevant change number and valid from date.
    Hope this gives you a clear idea.let me know if you need anyfurther inputs.
    Regards
    Praveen

  • Change number in material master required steps to use

    Hi All.
    Thanks in advance sap  mm dudes.
    Need steps in sap mm material master change number.
    creation of change number  and usage  of change number
    Display of list of changes.
    Regards.
    parameshwar

    Dear Parameshwar,
    1.I assume you have created a change number without release key in CC01.
    2.In CC02,for the same change number goto object types and include the check box against material for the first 3 check box and
    save the change number.
    3.Now check in MM02 for any material master changes or I would suggest you to create a new change number with valid from
    date as current date,include the settings for material under object types and then check in MM02.
    Check and revert.
    Regards
    Mangalraj.S

  • Need to fetch  change number for tcode IA06

    Can anyone please tell me how do I fetch the change number (Aennr) in case of tasklist chage? Tcode IA06?
    I am using FM CP_EX_PLAN_READ which returs me change number..but it is not populated....
    Plz help.

    hi check this..
    check the table AENR for the aennr values...
    here is an example for this fm..
      call function 'CP_EX_PLAN_READ'
         exporting
              plnty_imp        = i_plnty
              plnnr_imp        = i_plnnr
              plnal_imp        = i_plnal
              sttag_imp        = i_sttag
              cuobj_imp        = i_cuobj
              parnt_imp        = i_parnt
              i_plant          = i_werks
              tca11_imp        = ls_tca11
         tables
              plmz_exp         = lt_plmz
              plpo_exp         = lt_plpo
         exceptions
              not_found        = 1
              plnal_initial    = 2
              others           = 3.
    regards,
    venkat

  • How to fetch the latest change number from CDPOS Table..?

    Hi All,
    im trying to fetch teh change number from CDPOS with the below select, but my requirement is always i wants to fetch the latest change number.
              SELECT SINGLE objectid changenr FROM cdpos
                     INTO wa_cdpos
                     WHERE objectid = wa_e1kna1m-kunnr
                     AND ( tabname = 'KNA1' OR tabname = 'KNVV')
                     AND   fname = 'AUFSD'
                     AND ( value_new = '01' OR value_new = space ).
    Please let me know how to achive this..?
    Ashok

    try this way
    "           SELECT SINGLE objectid changenr FROM cdpos
    "                 INTO wa_cdpos
               SELECT objectid changenr FROM cdpos
                      INTO table t_cdpos
                      WHERE objectid = wa_e1kna1m-kunnr
                      AND ( tabname = 'KNA1' OR tabname = 'KNVV')
                      AND   fname = 'AUFSD'
                      AND ( value_new = '01' OR value_new = space ).
    SORT t_cdpos by  changenr Descending.
    read t_cdos index 1.    "this is the latest change
    Prabhudas

  • Can't make a selection of my pathes even if i have set a program change number for each one.Why is that happening?

    Hi everybody!
    I send program change messages from my midi controller and the messages are accepted by mainstage 3 as shown in the midi message window,but i can't make a selection of my pathes even if i have set a program change number for each patch.Why is that happening?
    I use a novation SL mki or a KORG Triton Le or a m-audio axiom 49 as midi controllers.The program change messages are transmitted by all the devices i mentioned above and shown as received in the midi messages window of mainstage 3.
    Has anyone the same experience?

    Hi
    Have you selected the correct device as the Program Change device and MIDI channel in the Concert Inspector?
    CCT

  • In iPhoto  how do I open Photo Grid to change number of caption lines?

    In iPhoto  how do I open Photo Grid to change number of caption lines?

    In iPhoto '11 you can only display two lines below the thumbnails of your photos when you browse an event or an album, the titles and the ratings. The title will be truncated, if it does not fit into the single line. From the iPhoto help:
    To show title and rating information below photos:
    Click to select Photos in the Source list.
    Choose View, and then choose the information you want to view:
    Titles
    Rating
    The information field you chose appears below your photos.
    To hide this information, choose View, and then choose the information you want to hide.
    Regards
    Léonie

  • PI 7.31 (single stack) posting RFC gives this error: RFC_ERROR_SYSTEM_FAILURE: Processing of change number CO-01234 cancelled (raised by system ECCHostXYZ)

    I'm trying to determine if I am dealing with an RFC connection issue or just an error resulting from the RFC itself.
    The error says "Processing of change number...cancelled (raised by...ECCHostXYZ)".
    I thought this was a problem with my RFC config because it is labeled as "RFC_ERROR_SYSTEM_FAILURE".
    However, when I google that specific message, it appears to be an error specific to change order creation.
    Here’s my google search: http://goo.gl/ZhKsm3
    Here is the error again:
    RFC_ERROR_SYSTEM_FAILURE: Processing of change number CO-01234 cancelled (raised by system ED1|ecc-host-xyz)
    When I check ST22, I see no RFC errors.

    Hi Jody,
    No st22 exception is needed to be throwed in order to raise a controlled exception in the RFC.
    You would need to check the RFC in the ECC system with the data that you are sending from PI, if the data is the same, you would need to check PI user RFC roles with the ECC roles user that you used to check the data integrity in the ECC test.
    To avoid this error you can do a Z RFC to wrap the standard RFC and to control the exceptions errors with a BAPIRET2 strucutre to return to PI.
    Hope this helps.
    Regards.

  • Change the validity date in change number

    hi team,
    I want to change the validity date of a change number from 01.01.09 to 01.03.09. I am getting an error "A BOM has already been changed using a change number with the same valid-from date as the selected date 03.01.2009".  I can change the date to before 01.01.09 but cannot after 01.01.09.
    Can you please help me.
    thank you,
    Satish

    Dear Mamiditi Satish Kumar,
    Is it a change number with release key or without release key?
    Do you want to assign a different validity date for the changes made using that change number?
    Try using alternative date field in CC02.and you have to select the object to assign the alternative date.
    Say if you want to assign an alternative date for a processed BOM,you have to select that object and
    enter the alternative date.
    Regards
    Mangalraj.S

  • MM02 - Enable options change number, change overview and change documents

    I am with the following problem: I enter the transaction MM02, I enter the material 1000765, I select the view "Classification". Later I access the environment option from the menu bar and options for change number, change overwiew and change documents are disabled.
    How do I enable these options change number, change overview and change documents?
    Regards,
    Sérgio Salomã

    Hi Sergio,
    If we activate the change documents for classification data, then we will be able to see the CHANGE DOCUMENTS for characteristic values through CL20N transaction (CL20N via menu ENVIRONMENT --> Change Documents) or MM02.
    For reference please check SAP Note 65124.
    For enabling change documents for classification data in SPRO --> Cross-Application Components --> Classification System --> Classes --> Maintain Object Types and Class Types.
    In this enter into MARA table entry. Inside that corresponding to the respective CLASS TYPE (say 001) enable the CHANGE DOCS check box in Classifications part (For enabling this please check SAP Note 65124). Then for this CLASS TYPE (say 001) inside the OBJECTS folder, enable the CHANGE DOCS CLASS checkbox also.
    Now in MM02 and in CL20N under menu Environment --> Change Documents you can view all the changes done to that characteristic values.
    Once the change documents is activated, then we can get the change documents details in CDHDR and CDPOS tables. The OBJECTCLAS may be "CLASSIFY". We can also use the "CLLA_CHANGE_DOC_CLASSIFICATION" function module to fetch the data from these tables.
    Hope this helps in solving your issue.
    Thanks and Regards,
    Harish kumar.

Maybe you are looking for

  • Import-Module WebAdministration question

    Hello all: I am writing a script that will copy files to a local root directory for a web app we have.  Once this is done, I want to refresh the application pool.  In reading on the process, I believe I would have to import the WebAdministration modu

  • Extraction of document flow from CRM

    Hi experts, I am currently struggeling with a generic extractor that will load the document flow from CRM into BW. My problem is that the load takes too long, due to the number of links in the document flow. I use a SAP FM called SREL_GET_NEXT_RELATI

  • How can I reset my husbands Ipod so I can put my music on it?

    My husband gave me his old iPod before he deployed, and I am trying to get it to link to my iTunes so I can put my music on it. How do I do this? All that shows up when I hook it to the computer is Jeremy's iPod, but it won't let me do anything with

  • Change My Hand Pointer on rollover a Buton?

    Hi, i have 4 butones made on flash.,now i have a customize pointer  also,that drugs on my movie,and now i want to do when i pass with my  pointer on rollover at the butones,to change my hand pointer into the  one that ihave made_ movie hand pointer.

  • Osx 10.8 How to restore ical data

    Mac Pro, 10.8. Something I did in Bento wiped all my ical entries. The drive is backed up but where would I find the data to replace it?