Synchroniz​e DSA modules and 40 MHz clock on CompactRIO

Hello.
We are using CompactRIO to perform vibration and counter measurements. We are using DSA modules (9234, 9229) for analog signals and 9411 modules as digital input for counter period measurement. We need to perform these measurements in sync over a period of 24 hours.
DSA modules use the internal 13.xx MHz of one of them as master, while counter measurements use the FPGA 40MHz clock. The problem is that after a couple of minutes we see a noticeable drift between them.
Two questions:
1. Is it possible to derive a 13.xx MHz clock from the FPGA 40 MHz clock, and use it as a master for DSA modules?
2. Is it possible to export the DSA master 13.xx MHz clock and use it as an input to the FPGA? This way we could quantify the drift between both clocks.
We found this post: http://forums.ni.com/t5/LabVIEW/Export-FPGA-Onboar​d-clock-to-io-modules/td-p/1149080, but it's not exactly the same situation.
Kind regards,
Daniel Ramírez
CLD - CADETECH S.A.
Chile

Yes - there is a method of calculating speed on the FPGA and with reference to the oversample clock.  Consider this document:
http://www.ni.com/example/31301/en/
It uses a high speed analog, yet it time stamps level detection - a digital output - to the DSA oversample clock. 
Then in the LabVIEW Sound and Vibration Measurement Suite Order Analysis tools, you can find the digital tachometer VI used to prepare the speed pulses for resampling and order analysis. 
Let us know how this works. 
Preston Johnson
Principal Sales Engineer
Condition Monitoring Systems
Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
National Instruments
[email protected]
www.ni.com/mcm
www.ni.com/soundandvibration
www.ni.com/biganalogdata
512-683-5444

Similar Messages

  • 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.

  • USB-7856R only shows a 40 MHz clock...

    Hi,
    We are looking to purchase a USB-7856R to start prototyping with FPGA technology for future projects. I have been playing around with the FPGA examples in LabVIEW. I set up a simulated FPGA Target for the USB-7856R. When the target is set up in my project it lists a 40 MHz Clock in the target. 
    Why is this? The USB-7856R is spec'd with an 80 MHz Clock.
    John O'C
    Staff Test Systems Engineer
    Woodward, Inc.
    Skokie, Illinois, USA
    "Life is not a journey to the grave with the intention of arriving safely
    in a pretty and well preserved body, but rather to skid in broadside,
    thoroughly used up, totally worn out, and loudly proclaiming...
    Wow...What a Ride!"
    Solved!
    Go to Solution.
    Attachments:
    USB-7856R.png ‏58 KB

    Actually Bill,
    It was two different questions.
    One was regarding how the examples where setting the timed loops to 4 times the base clock in the hardware. The answer was derived clocks, which at the time, was unfamiliar to me.
    The second was, why, if the USB-7856R has an 80 MHz clock, as stated in the specification,  does it show a 40 Mhz base clock when you look at the configuration information for that target?
    When you look at the configuration information for a PCI-7831R, for instance, the base clock is a 40 MHz clock. It just so happens that the card is equipped with a 40 MHz clock so the 40 MHz  clock is the base clock and any other clocks the programmer creates are derived clocks.
    The USB-7856R, on the other hand, should show an 80 Mhz base clock, because that is what the module is equipped with. So saying that the 80 MHz clock is derived is technically inaccurate. The configuration should reflect the actual configuration of that module not a generic number for the base clock.
    John O'C
    Staff Test Systems Engineer
    Woodward, Inc.
    Skokie, Illinois, USA
    "Life is not a journey to the grave with the intention of arriving safely
    in a pretty and well preserved body, but rather to skid in broadside,
    thoroughly used up, totally worn out, and loudly proclaiming...
    Wow...What a Ride!"

  • 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

  • How to synchronize NI PXI-6534 and NI PXI-6259?

    Hi,
    I am trying to output a continuous analog waveform (sine, dc, ramp, etc) using an AIO card (6259) and a DO pulse (using the PXI DIO 6534 card) with a customizable Duty cycle in each period of the AO signal. I need them to be in sync. Both cards reside in the NI PXI-1042Q chassis. I am using this solution as an example but can't get it work.
    Also, my DO card cannot write high-frequency pulses on one line - I should instead use the entire port. It also cannot produce CO pulses.
    Can anyone help with a simple vi? What is the correct way to synchronize these two cards (I am a beginner in LV) in one crate?
    Thanks in advance,
    ~Paul

    Hi Paul,
    I see that has been a while since there were no activity here.
    Did you manage to synchronize them?
    Basically, you can synchronize them by using the PXI backplane clock. A very nice tutorial can be found at the following link http://www.ni.com/white-paper/11369/en
    Best regards,
    IR

  • How to use 20 MHz clock of the 6602 Timing card on other boards?

    Hello,
    I have a 1042 PXI with 6602 timing card and several other boards including 6534 Digital I/O board and 5122 Digitizer.
    I want these boards (6534 and 5122) to use the 20 MHz clock of the 6602 board as their Sample Clock.
    But when I set "/TimingIO/20MHzTimebase" as the source of the Sample Clock for the 6534 board I get the following error sometimes (sometimes everything works fine) :
    """Error -200621 occurred at DAQmx Wait Until Done.vi:2
    Onboard device memory underflow. Because of system and/or bus-bandwidth limitations, the driver could not write data to the device fast enough to keep up with the device output rate. Reduce your sample rate, or reduce the number of programs your computer is executing concurrently. """
    When I use "OnboardClock" as the source of the Sample Clock for 6534 I never get this message. I tell 6534 to use 6602's 20 MHZ clock by connecting
    "/TimingIO/20MHzTimebase" terminal to the appropriate input of the
    "Sample Clock vi" in the 6534's task. Output rate of the 6534 that I use is (much) less than 1 MHz.
    Could somebody explain the source/reason of the error message above? It seems like 6534 can not use 6602's 20 MHz clock though it has 20 MHz oscillator itself...
    Is there a way to use 20 MHz clock of the 6602 for 6534?
    Thanks in advance!

    Hi Ampm,
    The two answers are related to each of the answers:
    1) In this knowledgebase we can see that actually the 6602 cannot
    export his clock into PXI_Star. Since your digitizer cannot received but from
    this line, we need to find a different solution (see below).
    2) PXI_Star is actually a signal and should be named something
    like this “/Slot5/PXI_Star”. Make sure you PXI chassis is configured in MAX.
    There are two possible approaches:
    1)     
    I would suggest to PLL all
    clocks to the PXI 10 MHz clock. This takes full advantage of the hardware you
    have.
    2)     
    Export the 6602 20 MHz clock
    on a front panel PFI line and externally connect it to the CLK IN of the 5122.
    Good luck,
    Gerardo O.
    RF Systems Engineering
    National Instruments

  • Geforce FX5600-TD256 and 533 Mhz ???

    First of all, excuse me for my pour English but I come from Belgium. I bought yesterday a "Geforce FX 5600 TD-256". On the box, MSI write 533 Mhz - 12.1 Gb/s but the core clock is 325 Mhz and the memory clock is 400 Mhz. To what does the 533 Mhz refer? I don't understand very well. I thought 533 Mhz was the memory clock? Can somebody give me some explanations? Thanks in advance…
    Vincent

    Dude, it looks that you really doesn't know what you are buying... the 533Mhz refers to the AGP 8X running at that speed...it has nothing to do with the GPU or memory clocks.
    Please check the features/speeds of a (in this case a video card) before buying anything, or at least read the reviews of the cards to really know what you are buying.
    Bye.

  • Memory modules and hard drive not recognized

    I removed and reinserted the factory installed Satellite L505D-LS5007 laptop hard drive and memory modules just as practice for installing a hard drive upgrade and an 8GB memory upgrade. The problem is obviously with the memory and not with the hard drive.
    After the first practice try, one memory module was recognized. Also for a few seconds after the first practice try, I ran the PC with the battery installed, but no memory installed. I did not look in the User's Guide first to see that I should have removed the battery before removing the memory.
    Now the System Indicator Lights for the HDD Activity and Memory Card Reader do not light up. The PC turns on and the display is solid black with no messages.
    Before buying new memory modules, what possible ways might there be to get the PC to recognize the factory installed memory modules and hard drive again?
    Solved!
    Go to Solution.

    When troubleshooting, I always change one variable at a time. I would hate to miss a solution by being in a hurry. In this case, you may have damaged either the RAM or the RAM slot. I would stick with the Toshiba specifications for the RAM, making sure it is the correct size, speed and type recommended. I also recommend that when you replace the RAM that both modules be from the same manufacturer, size, and specification. Try one RAM module in one slot and then the other. And then try both RAM modules in both slots. After the testing you should be able to figure if this is a RAM problem or a RAM slot problem.
    In the case of hard drives, the real test is whether or not the Bios sees the hard drive. If the Bios doesn't see the hard drive, it's not going to work. The Bios should see the hard drive whether or not the hard drive is partitioned, formatted or has data on it. My experience has been that many Toshiba laptops will work fine with larger capacity hard drives provided they are the same speed in RPMs, have the same interfacing connection and physically the same size.
    Again, prior to doing any work on your computer, make sure that both the AC power has been disconnected and the battery has been removed. Be careful out there. A blown repair job by a non-Toshiba tech is NOT covered under warranty.

  • Who worked with ICS' Model 4896 GPIB? I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    Hello. Most of the engineers in developer exchange are more familiar
    with NI products. Contacting ICS for technical support is a better
    course of action.

  • Problem with modules and ModuleLoader

    Hi everybody,
    i'm facing a real funny problem with modules and
    moduleLoader, i hope
    it's not (only) my fault anyway...
    If i create a normal flex project with fBuilder, i'm able to
    use
    modules in a lot of different ways (as mxml, as as in a
    function etc..)...
    but if i try to use them in my fds application (created with
    fds
    eclipse plugin or as a dataServices project) i can't use
    modules. The compile-time error message is
    always the same:
    Could not resolve <mx:ModuleLoader> to a component
    implementation
    I tried a lot of solutions, paying attention to import all
    the classes, to declaration, naming, positioning
    etc...but nothing changes, this thing is drivining me
    crazy!!!.
    I will appreciate anykind of help.
    TIA
    Fabio

    Any idea?

  • Required help on Function Modules and Bapis

    Web portal publishing of ERS invoice letters. This involves modification in the BAPI screens to show the invoice PDF instead of printing??
    can anyone help me in fixing this issue.

    hi Anjaneyulu,
    open the t-code --> and go to menu system->status-->select the program and open the program-->
    selct the tree structure----in the left side the includes screen and function module everthing will show..
    or
    open the t-code --> and go to menu system->status-->select the program and open the program-->
    go to attributes and select the Package..
    next----
    go to se80--> enter the package --> and dispalay it shows the list of Program , include transaction function modules and bapi's under the pakage
    Regards,
    Prabhudas

  • Examples for using function modules and BApis.

    My Dear FRNDS,
    I am very new to ABAP. And I have read the documentation for  function modules but i am not that clear to practice them.So I would be very happy if u people share a little bit of ur experience with me.
    Please provide me some examples of all the use cases in function modules and specially exception handling.
    Frnds, i am going to work with bapis so i feel practicing function module will give me a edge.
    and please tell me after calling a BAPI FM why we have to perform   'BAPI_TRANSACTION_COMMIT' and 'BAPI_TRANSACTION_ROLLBACK'.
    .Ur efforts  will be greatly rewarded.
    thx,
    reshali

    Hi,
    Please check this sample codes.
    DATA: BAPI_Z05DOGI_DELIVERY LIKE BAPIOBDLVHDRCON-DELIV_NUMB ,
    BAPI_Z05DOGI_HEADER_DATA LIKE BAPIOBDLVHDRCON OCCURS 0 WITH HEADER LINE ,
    BAPI_Z05DOGI_HEADER_CONTROL LIKE BAPIOBDLVHDRCTRLCON OCCURS 0 WITH HEADER LINE,
    BAPI_Z05DOGI_ITEM_DATA LIKE BAPIOBDLVITEMCON OCCURS 0 WITH HEADER LINE,
    BAPI_Z05DOGI_ITEM_CONTROL LIKE BAPIOBDLVITEMCTRLCON OCCURS 0 WITH HEADER LINE ,
    BAPI_Z05DOGI_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE .
    CLEAR: BAPI_Z05DOGI_DELIVERY , BAPI_Z05DOGI_HEADER_DATA , BAPI_Z05DOGI_HEADER_CONTROL , BAPI_Z05DOGI_ITEM_DATA ,BAPI_Z05DOGI_ITEM_CONTROL , BAPI_Z05DOGI_RETURN .
    REFRESH: BAPI_Z05DOGI_HEADER_DATA , BAPI_Z05DOGI_HEADER_CONTROL , BAPI_Z05DOGI_ITEM_DATA , BAPI_Z05DOGI_ITEM_CONTROL , BAPI_Z05DOGI_RETURN .
    BAPI_Z05DOGI_DELIVERY = ZMM_WB1-ISSUE .
    BAPI_Z05DOGI_HEADER_DATA-DELIV_NUMB = ZMM_WB1-ISSUE.
    APPEND BAPI_Z05DOGI_HEADER_DATA.
    BAPI_Z05DOGI_HEADER_CONTROL-DELIV_NUMB = ZMM_WB1-ISSUE.
    BAPI_Z05DOGI_HEADER_CONTROL-POST_GI_FLG = 'X'.
    APPEND BAPI_Z05DOGI_HEADER_CONTROL.
    BAPI_Z05DOGI_ITEM_DATA-DELIV_NUMB = ZMM_WB1-ISSUE.
    BAPI_Z05DOGI_ITEM_DATA-DELIV_ITEM = 10.
    BAPI_Z05DOGI_ITEM_DATA-DLV_QTY = LFIMGGIA.
    BAPI_Z05DOGI_ITEM_DATA-SALES_UNIT = XTAB-MEINS.
    BAPI_Z05DOGI_ITEM_DATA-DLV_QTY_IMUNIT = LFIMGGIA.
    BAPI_Z05DOGI_ITEM_DATA-FACT_UNIT_NOM = UMVKZLIPS.
    BAPI_Z05DOGI_ITEM_DATA-FACT_UNIT_DENOM = UMVKNLIPS.
    APPEND BAPI_Z05DOGI_ITEM_DATA.
    BAPI_Z05DOGI_ITEM_CONTROL-DELIV_NUMB = ZMM_WB1-ISSUE.
    BAPI_Z05DOGI_ITEM_CONTROL-DELIV_ITEM = 10.
    BAPI_Z05DOGI_ITEM_CONTROL-CHG_DELQTY = 'X'.
    APPEND BAPI_Z05DOGI_ITEM_CONTROL.
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
    EXPORTING
    DELIVERY = BAPI_Z05DOGI_DELIVERY
    HEADER_DATA = BAPI_Z05DOGI_HEADER_DATA
    HEADER_CONTROL = BAPI_Z05DOGI_HEADER_CONTROL
    TABLES
    ITEM_DATA = BAPI_Z05DOGI_ITEM_DATA
    ITEM_CONTROL = BAPI_Z05DOGI_ITEM_CONTROL
    RETURN = BAPI_Z05DOGI_RETURN.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'
    IMPORTING
    RETURN = BAPI_Z05DOGI_RETURN.
    Go thru this link
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    BAPI_TRANSACTION_COMMIT
    Execute external Commit when using BAPIs
    This method executes a COMMIT WORK command. It is required for
    transactions developed externally to the R/3 System that change data in
    the R/3 System via BAPI calls.
    When you call BAPIs in your program that change data in the R/3 System,
    afterwards you must call this method to write the changes to the
    database.
    COMMIT WORK
    The statement COMMIT WORK completes the current SAP LUW and opens a new one, storing all change requests for the currenta SAP LUW in the process
    there are some FM that we use for creating trasaction . for example FM : that use for creating production order . if you execut the FM , the system will not create any data in the system so you need to excute the FM : BAPI_TRANSACTION_COMMIT to commit that creating the production order .
    in case of commit work, that is a syntax in abap program . if you use this syntax after you insert ,update or delete table in the sap ,system will do it immediately otherwise the system will do it after execution is complete.
    ROLLBACK WORK.
    for confirming or undoing database updates. COMMIT WORK always concludes a database LUW and starts a new one. ROLLBACK WORK always undoes all changes back to the start of the database LUW.
    Regards,
    Raj.

  • Function modules and BAPIs for a transactio code

    Hi friends,
    How i can find  the List of function modules and BAPIs being used for a particular transaction code?
    for example: I would like to find List function modules and BAPIs being used for the Transaction code
    "FBRA"(Reset cleared items)?
    Any sort of help on this will be helpful.
    Thanks,
    Punjaala

    hi Anjaneyulu,
    open the t-code --> and go to menu system->status-->select the program and open the program-->
    selct the tree structure----in the left side the includes screen and function module everthing will show..
    or
    open the t-code --> and go to menu system->status-->select the program and open the program-->
    go to attributes and select the Package..
    next----
    go to se80--> enter the package --> and dispalay it shows the list of Program , include transaction function modules and bapi's under the pakage
    Regards,
    Prabhudas

  • SAP R/3 Modules and transactions belonging to them.

    Hello there,
    I have two questions which I would like some help with:
    Q1  Is there a link to documentation that lists all the SAP R/3 functional modules and provides an overview/description of each module?
    Q2  I would like to list all the transactions belonging to a fuctional module/area such as SD, MM, PM, FI/CO etc. I know that tables TSTC & TSTCT will provide a list of all the transaction codes, but is there a table that will show all transaction codes belonging to a specific fuctional module?.. if not then is there another way of getting this information?...Please bear in mind that I need to be able to download this information to an excel spreadsheet.
    Your help here would be much appreciated.
    Many thanks
    Sharon

    Hi williams,
    >> For your query regarding SAP R/3 modules refer: http://en.wikipedia.org/wiki/SAP_R/3
    >> For your query regarding Transaction codes refer:
    http://www.easymarketplace.de/transactions.php
    www.erpgenie.com/sapgenie/docs/useful-tcodes.pdf
    Reward points if its useful...

  • Photos in Library module and after export look different than in Development module

    Hello,
    I experience a problem.
    After I update photos in the Development module, the updates seem not to be shown in the Library module. And when I subsequently export to Flickr, Flickr is also showing the original photo, not the adapted one.
    I noticed this the first time after making Blacks a bit deeper, causing a sunflower to become a deeper yellow. I thought that my adaptations were not applied in the Library module. After I checked with cranking down the Saturation all the way back (to almost black-and-white), that adaptation WAS applied in the Library view. So it had to be something else, causing the same color difference between the Library and Development modules.
    When I switch from the Library module to the Development module, I see a slight delay in applying my changes, but they are applied. Before they are applied, I can see that the original photo is shown and that looks the same as in the Library module and on Flickr.
    The photostrip on the bottom of the Lightroom screen also shows the original photos only, unless I go to the development module and select a photo (adaptations are applied in the photostrip after I select the photo, not before).
    After I played a bit more in the Development module, I found something strange in the Camera Calibration menu of the Development module. The Adobe Profile (my default) caused an obvious color difference between the Library (less saturated) and the Development (more saturated) modules. The Camera Standard profile also showed a (very) slight difference, but I was unable to notice the differences using the other profiles.
    So I was thinking (but it's only a guess), that the profiles are not applied in the Library view and on export, but they are in the Development module?
    I use Lightroom 5.6, Camera RAW 8.6.
    Please help me, as this is very annoying. I currently cannot export my photos to Flickr or anywhere else, unless I overcompensate before exporting. And I really don't want to do that. My Lightroom photo is my perfect photo, and I want to keep it that way...
    Many thanks in advance for any help,
    Peter

    Hi ssprengel,
    Thanks for your reply. Let me react to each possibility you mention and provide some extra information.
    - "Check your Export / File Settings / Image Format and make sure they are set to JPG not Original". Done that, it's not on Original, but on jpg. This would not explain why I see the difference in the Library and Development modules, by the way. But better to know for sure.
    - "...the most likely thing that is wrong is your color-management on your computer is not working properly". It is a PC with Windows 7. I have been using Lightroom for maybe 6 years and I never had this problem before. The last time I changed my setup is more than a year ago and this problem only started to happen a short while ago (after the update to Lightroom 5.6? I'm not sure, but that's the only thing that has changed lately). I use a Spider to create a custom profile that is correct for my setup and do a regular update on the profile.
    - "what brand and model of monitor do you have?" I have an EIZO FlexScan S2411W and use that for a long time as well. I chose this brand of monitors for its good color reproduction and I have been happy with it for years now.
    What I am not getting is why would all this show a difference between the Library and Development module? The only difference is the Lightroom software that is switching from one module to another, and that should deliver the same photo. I'm also stating in my first post that the differences are very noticeable using the Adobe Standard Camera Profile in the Development module. I have a feeling that the profile is part of the problem.

Maybe you are looking for