Synchroniz​ation for AI and AO with non-regene​ration of output waveforms

Hi all,
I need to output several analog waveforms, while at the same time acquiring analog input, and synchronise the two. For this, I'm using a cDAQ-9178, a 9264 module for AO, and 9220 for AI.
I managed to this all right following this example: http://www.ni.com/example/26527/en/ (NI-DAQmx: Simultaneous AI and AO Using a Shared Clock). The problems started when I moved the waveform generation inside the main while loop to be able to modify the waveform parameters on-the-fly: now I get Error -200018 as soon as I start the VI, or Error -200284 those few times when the VI manages to run some iterations.
This does not happen if I omit the source of the sample clock for the two tasks, but then I lose the synchronisation between input and output.
Any idea of what's going on?
Thanks!
Nathan
Attachments:
piezo_continuous.vi ‏82 KB

Hi again,
I've been tweaking my VI: at this point it's a hybrid between the "Multi-Function-Synch AI-AO" GerdW was mentioning, and the shared-clock approach found in the "Timing and synchronisation" white paper. Still, the input signal shows random fluctuations of the phase with respect to the output.
Any ideas?
Attachments:
AI-AO-sync.png ‏94 KB

Similar Messages

  • PRD with RAC and DR with non-rac datagaurd

    Is it possible to implement production with RAC database and DR with non-rac datagaurd.
    if yes, how does the log shipping happening from different nodes of RAC to one DR node?
    Can anybody answer please?
    Thanks
    Vignesh.

    There is also a very good MAA whitepaper on this szenario:
    MAA 10g Setup Guide: Creating a Single Instance Physical Standby Database for a RAC Primary Database
    http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10g_RACPrimarySingleInstancePhysicalStandby.pdf

  • How to synchronize Outlook 2007 Calendar and Tasks with my iPhone through use of iCloud

    How can I synchronize Outlook 2007 Calendar and Tasks with my iPhone through use of iCloud?

    Hello farar,
    Thank you for the question.  It sounds like you are trying to synchronize your Outlook Calendar with your iPhone using iCloud. 
    If you have not setup iCloud, the following resource has steps you can take to set up iCloud on your computer and your iPhone:
    iCloud -Learn how to set up iCloud on all your devices
    http://www.apple.com/icloud/setup/
    Once you have iCloud set up, you can enable the Calendar setting in the iCloud settings on both your computer and iPad to sync your Calendar events.  Use the following article for steps to enable this feature:
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How to create schema for Header and Footer with pipe delimiter file BPEL11g

    Hi all,
    I have issule creating Schema for Header and Footer with body file .The file format is Pipe delimiter.The following format below like is...
    Softeware Components:File Adapter(Read) 11g,
    1|1211|000|577|5444
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|4544|000|yted
    I hope get the sollution for this from this Forum..Please help me out..Thankyou.

    You mean how many rows or columns..?
    If coloumns means 5 and rows only one(1).

  • Duplicates.  I use iTunes match.  When I run exact duplicates, I get duplicates that say uploaded for one and uploaded with a cloud for the other.  Which one do I delete?

    Duplicates.  I use iTunes match.  Two questions:
    When I run exact duplicates on the library on my Mac Air, I get duplicates that say uploaded for one and uploaded with a cloud for the other.  Which one do I delete?
    Some of the duplicates say matched and matched with a cloud.  Same question - which one should I delete?

    I'm not sure I understand the question.
    First I would update your iTunes match.  iTunes match will tell you what is duplicates and then you can just delete them from the library. 
    Second, the course in a situation like this is to delete ONE duplicate and see what happens.  Make sure you have that song backed up somewhere just incase it deletes it completely.  But usually I'd delete one and then see if it deletes both or just the one you pressed. 
    Thirdly, update iTunes match.  It usually does a good job of locating actual duplicates.

  • Hello, I want to make DPS magazin for IOS and Android with a lot of text footnotes. There is about 200 footnotes per article. The idea is to make pop-up windows like in EPUB 3.0. Please help.

    Hello, I want to make DPS magazin for IOS and Android with a lot of text footnotes. There is about 200 footnotes per article. The idea is to make pop-up windows like in EPUB 3.0. Please help., Hello, I want to make DPS magazin for IOS and Android with a lot of text footnotes. There is about 200 footnotes per article. The idea is to make pop-up windows like in EPUB 3.0. Please help.

    Remember you can only build an iPad app using your Single Edition solution (which is included in your CC membership). So you'd need a Pro or Enterprise version of DPS to be able to create the Android version.
    You can create pop-ups in InDesign using the slideshow options and a multi-state object. But it's all manual labour so you'll spend a lot of time on this, also depending on the layout of your design.

  • Dreamweaver CS5 will not open. It shows the splash screen and terminates with non admin login

    Dreamweaver CS5 will not open. It shows the splash screen and terminates with non admin login but works fine with admin login.
    OS - WinXP Sp3
    Things I tried.
    1) Gave full rights on dreamweaver folder in program files.
    2) Disabled welcome screen
    3) Updated to Dreamweaver CS5 11.0.4
    4) Reinstalled
    5) Formated PC
    But issue persists, please help.

    Have you tried deleting or renaming the Dreamweaver configuration file?
    See http://forums.adobe.com/thread/494811
    This can solve many problems and create one in that any snippets that are installed are lost, but you can get them back. Instead of deleting the config file, just name it config.old. When your system is working, just copy the snippets from the .old file to the new one.

  • Can i use The iPod shuffle cable (3rd and 4th generation) comes with a 45 mm USB cable for syncing and charging. with 2nd generation ipod?

    can i use The iPod shuffle cable (3rd and 4th generation) comes with a 45 mm USB cable for syncing and charging. with 2nd generation ipod?

    thanks

  • HT1918 How do I change my acct to get rid of credit card info altogether and operate with none status?

    How do I change my acct to get rid of credit card info altogether and operate with none status?

    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • ME293 is a good for programming and work with coreldraw and rhino ?

    ME293 is a good for programming and work with coreldraw and rhino ?

    No there is not. You are correct that Verizon will unlock it for international use, but they will not unlock it for domestic use. That is the way the US carriers work. Fortunately, the LTE enabled phones for Verizon are different. They are unlocked at the start on the GSM side, this was a requirement from the FCC for the allocation of additional LTE frequencies for Verizon. Not sure how long this will last, but your only choice is to use Verizon or to obtain a different phone. That 4S will not work with AT&T.

  • UploadedFile and filenames with non-ascii chars

    Hi
    I'm using an UploadedFile object in my web app, and all works fine. However, when I try to upload a file, with a filename containing non-ascii chars (e.g. Spanish), I see that the getBytes method returns an empty byte array, the filename is not stored correctly (the non-ascii chars are lost, replaced by another representation), and that the content-type is application/octet-stream instead of image/png as supposed to be.
    If I rename that same file to have only ascii chars - everything is back to normal.
    How can I upload files with non-ascii chars in their name?

    Hi, back! Spent a few hours experimenting and found
    that everything is working great (including the creation
    of international non-ASCII foldernames) when I used
    utf-8 encoding in the sieve filters rules for the
    the match strings and the folder names... at least
    so far so good... for your ref and sorry for bothering.

  • Example program for returninng and importing with value addition

    HI ,
    I want few example programs on how to use the abap oops with returning addition and importing with value addition as Im getting syntax error for the Program when Im declaring them with these additions
    Thnaks .

    Hello,
    This statement declares a general instance method meth. Use additions ABSTRACT and FINAL to make the method abstract or final.
    The additions IMPORTING, EXPORTING and CHANGING define the parameter interface of the method. After every addition, the corresponding formal parameters are defined by a specification of the list parameters.
    The other additions determine which exceptions the method can propagate or trigger and determine whether the method is abstract or final.
    Note
    Within a method, you can use the logical expression IS SUPPLIED to check whether an actual parameter was assigned to an optional formal parameter at the call.
    Addition 1
    ... IMPORTING parameters PREFERRED PARAMETER p
    Effect
    IMPORTING defines input parameters. When calling the method, you need not specify an appropriate actual parameter for every non-optional input parameter. During the call, the content of the actual parameter is passed to the input parameter. The content of the input parameter - for which the reference transfer is defined - cannot be changed in the method.
    Use PREFERRED PARAMETER to identify an input parameter p1 p2 ... of list parameters after IMPORTING as a preferred parameter. This specification makes sense only if all input parameters are optional. When calling the method with the syntax
    CALL METHOD meth( a ).
    the actual parameter a is assigned to the preferred parameter if you have appropriate use of a functional method at an operand position.
    Addition 2
    ... EXPORTING parameters
    Effect
    EXPORTING defines output parameters. When calling the method, you can specify an appropriate actual parameter for every output parameter. The content of the output parameter - which is defined for value transfer - is passed to the actual parameter at the call after the method has been completed successfully.
    Note
    An output parameter that is defined for the reference transfer is not initialized when the method is called. Therefore, no read access to it should take place before the first write access.
    Addition 3
    ... CHANGING parameters
    Effect
    CHANGING defines input/output parameters. When calling the method, you must specify an appropriate actual parameter for every non-optional input/output parameter. The content of the actual parameter is passed to the input/output parameter at the call, and after the method has been completed, the content of the input/output parameter is passed to the actual parameter.
    Example
    The method read_spfli_into_table of this example has an input and an output parameter, which are typed fully by reference to the ABAP Dictionary.
    CLASS flights DEFINITION.
      PUBLIC SECTION.
        METHODS read_spfli_into_table
           IMPORTING VALUE(id)  TYPE spfli-carrid
           EXPORTING flight_tab TYPE spfli_tab.
    ENDCLASS.
    Addition 4
    ... RAISING exc1 exc2 ...
    Effect
    Use addition RAISING to declare the class-based exceptions exc1 exc2 ... that can be propagated from the method to the caller.
    For exc1 exc2 ..., you can specify all exception classes that are visible at this position and are subclasses of CX_STATIC_CHECK or CX_DYNAMIC_CHECK. You must specify the exception classes in ascending order corresponding to their inheritance hierarchy.
    Exceptions of the categories CX_STATIC_CHECK and CX_DYNAMIC_CHECK must be declared explicitly, otherwise a propagation results in a violation of the interface. An interface violation results in a treatable exception CX_SY_NO_HANDLER. Exceptions of category CX_NO_CHECK are always implicitly declared.
    Notes
    The declaration of exceptions of category CX_STATIC_CHECK is checked statically at the syntax check. For exceptions of category CX_DYNAMIC_CHECK, the check is executed at runtime.
    In a method in which class-based exceptions are declared with the addition RAISING, you cannot use the statement CATCH SYSTEM-EXCEPTIONS. Instead, handle the relevant treatable exceptions in a TRY control structure.
    Example
    In class math, you can propagate all exceptions represented by class CX_SY_ARITHMETIC_ERROR and its subclasses from within method divide_1_by. If, for example, the input parameter operand is filled at the call with the value 0, then the exception CX_SY_ZERODIVIDE is triggered, propagated, and can, as shown in the example, be handled by the caller in a TRY control structure.
    CLASS math DEFINITION.
      PUBLIC SECTION.
        METHODS divide_1_by
           IMPORTING operand TYPE I
           EXPORTING result  TYPE f
           RAISING   cx_sy_arithmetic_error.
    ENDCLASS.
    CLASS math IMPLEMENTATION.
      METHOD divide_1_by.
        result = 1 / operand.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
    DATA oref TYPE REF TO math.
    DATA exc  TYPE REF TO cx_sy_arithmetic_error.
    DATA res  TYPE f.
    DATA text TYPE string.
    CREATE OBJECT oref.
    TRY.
        oref->divide_1_by( EXPORTING operand = 4
                           IMPORTING result = res ).
        text = res.
      CATCH cx_sy_arithmetic_error INTO exc.
        text = exc->get_text( ).
    ENDTRY.
    MESSAGE text TYPE 'I'.
    Addition 5
    ... EXCEPTIONS exc1 exc2 ...
    Effect
    Use addition EXCEPTIONS to define a list of non-class-based exceptions exc1 exc2..., which can be triggered with the statements RAISE or MESSAGE RAISING in the method. You specify identifiers exc1 exc2 ... for the exceptions to be defined at will and directly. Exceptions defined in this way are bound to the method - similar to formal parameters - and cannot be propagated.
    If such an exception is triggered in a method and no return value has been assigned to it in the addition EXCEPTIONS of the CALL METHOD statement in the method call, then a runtime error occurs.
    Note
    The additions RAISING and EXCEPTIONS cannot be used simultaneously. For new developments starting at release 6.10, we recommend to use class-based exceptions, which are independent of the respective method.
    Example
    In the class math, for method divide_1_by an exception arith_error is defined, which is triggered in the method with the RAISE statement if an arithmetic error occurs. If, for example, the input parameter operand is filled with value 0 at the call, the exception arith_error is triggered in the method-internal handling of exception CX_SY_ZERODIVIDE and handled after the call of the method by evaluating sy-subrc.
    CLASS math DEFINITION.
      PUBLIC SECTION.
        METHODS divide_1_by
           IMPORTING  operand TYPE I
           EXPORTING  result  TYPE f
           EXCEPTIONS arith_error.
    ENDCLASS.
    CLASS math IMPLEMENTATION.
      METHOD divide_1_by.
        TRY.
            result = 1 / operand.
          CATCH cx_sy_arithmetic_error.
            RAISE arith_error.
        ENDTRY.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
    DATA res  TYPE f.
    DATA oref TYPE REF TO math.
    CREATE OBJECT oref.
    oref->divide_1_by( EXPORTING  operand = 4
                       IMPORTING  result  = res
                       EXCEPTIONS arith_error = 4 ).
    IF sy-subrc = 0.
      WRITE res.
    ELSE.
      WRITE 'Arithmetic error!'.
    ENDIF.
    Regards.

  • Synchroniz​ation between DAC and ADC on NI 4451

    I need for my DAC and ADC software buffers to line up with each other in analog time.
    I'm using the following code to start the DAC and ADC conversions:
    status = WFM_Group_Control (deviceNumber, group, START);
    if (status==0)
    status = SCAN_Start (deviceNumber, (short *)ADCbinArray, total_samples*SENSOR_CHANNELS, sampTimebase, sampInterval, scanTimebase, scanInterval);
    But I end up with a 70-75 millisecond delay between the DAC start and the ADC start. I need synchronization to at least a few hundred microseconds between the DAC and ADC buffers.

    One clarification point is needed her. Yes, it is true that both the Analog Input and Analog Output of the 4451 use the same clock source. However, the way you currently have the start of these operations is to start each one separately through a software call. This is why you are not about to get better than millisecond resolution.
    You can achieve hardware-timed synchronization of your input and output operations using RTSI to share a hardware start trigger for both the input and output. The idea is that you will route the start trigger of one operation to a RTSI line. Then tell the other operation to use the same RTSI line as its start trigger.
    Even thought the RTSI bus is used to pass this signal from the AI circuitry to the AO trigger, there
    is no need to connect a RTSI cable. In DSA devices, the analog input and output are automatically phase locked. There will be no phase drift between the input and output sample clocks, and minimal phase difference if they are running at the same rate.

  • Business scenario..for ISU and integration with R/3 modules..

    Scenario: 
    1.     Client is providing Utility services to the customer and also to its own employees.
    The service is also consumed by the employees who are treated as contract partners in ISU. The constraint is that the utility bill has to be deducted from their payroll, which is deducted monthly using a wage type from their pay roll, which is in SAP R/3.
    2.     Similarly some of the contract partners are also vendors to the client (the vendor and contract partner is same). The consumption of utility bill is adjusted to the payment made by the client to vendor. 
    Questions :
    1.     How we can deduct the utility bill of the employees from their payroll. Is there any integration of ISU with HR ?
    2.               Also how  can we clear the receivables in FICA since data can be pushed from FICA to FICO thru reconciliation keys but not vice versa ?
    3.     How can the utility bill be deducted from vendor’s account and there is no standard link between vendor master to contract partner in ISU.
         Can anybody suggest any standard solution for these two scenarios or  any work arounds .
    Early solutions are highly appriciated
    Thanks and Regards

    Hello,
    Please look into my answers below:
    Questions:
    1.     How we can deduct the utility bill of the employees from their payroll. Is there any integration of ISU with HR?
    i.     There is no integration between ISU with HR.  What you need to do is that create separate account determination id <say HR> and use this id in Contract account to identify that a particular contract account is an employee related ID.
    ii.     Now at the end of the day or month collect the O/s balances of all the employee contracts in a form of flat file, use a BDC program to update the data in the HR table PA0014 <Please confirm with your HR colleague too> so that their pay would be = Actual payroll-Amount due.
    iii.     After the above step, make sure that you run FPY1 <Payment run program> to clear all employee open items. You can have a separate payment method for Employees and attach the same in contract account
    iv.     You can create a separate ‘Z’ table to map Employee ID with a contract number so that during creation of flat file in step 1.ii above, your job becomes easier.
    2. Also how can we clear the receivables in FICA since data can be pushed from FICA to FICO thru reconciliation keys but not vice versa?
    i.     Please refer to point 1.iv above. You need to run FPY1 Payment run to clear employee receivables in FICA.
    3. How can the utility bill be deducted from vendor’s account and there is no standard link between vendor master to contract partner in ISU.
    i.     There is no integration between ISU with AP.  What you need to do is that create separate account determination id <say AP> and use this id in Contract account to identify that a particular contract account is a Vendor related ID.
    ii.     Now at the end of the day or month collect the O/s balances of all the vendors in a form of flat file, use a BDC program to update the data in the AP table BSIK so that amount to be collected from vendor = Actual amount-Amount due.
    iii.     After the above step, make sure that you run FPY1 <Payment run program> to clear all Vendor open items. You can have a separate payment method for Vendor-Contract Accounts and attach the same in contract account
    iv.     You can create a separate ‘Z’ table to map Vendor number with a contract number so that during creation of flat file in step 1.ii above, your job becomes easier.
    Additional points to be considered
    1.     Check if at all separate clearing rules are needed for Employee- Contract accounts, Vendor-Contract Accounts & other contract accounts.
    2.     Verify FM ‘COMPUTE_CONTRACT ACCOUNT_BALANCES’ is useful in obtaining the balances of contract accounts <I do not have SAP ISU active system with me else I would have provided correct FM>
    3.     There may be performance issues based on the volumes of the data.
    Rgds
    Rajendra

  • SAP GUI 7.20 for Windows and problem with Screen Painter

    Hello,
    I just installed the SAP GUI 7.20 for Windows and it looks good.
    But when when I start the Screen Painter for a dynpro I get the following message:
    Graphical Layout Editor not available. Continue with alphanumeric editor.
    And: EU_SCRP_WN32 Connection broken  '..' / CPIC
    The SCreen Painter is installed correctly (I can start ist manually from file system) and the RFC destination works.
    Any idea?
    Regards,
    Ole.

    Hello,
    I've uninstalled all SAP installations, cleaned the registry of Windows XP and deleted all folders with SAP content. Then I've installed the SAP Gui 7.20 again and it works.
    And now I will update the Screen Painter with the information from the OSS-Note!
    Thank's for your help!
    Regards,
    Ole.

Maybe you are looking for