How to synchroniz​e two pxi ni5112?

Now in my system there are 2 PXI NI5112.Both NI5112 have the same configuration and all their inputs are connected to the same pulse signal source(10Hz).Both NI5112 use analog edge triggering and the trigering source is the channel 0.So all the NI5112s should be trigered at the same time.However,when I fetch the waveform with the function niScope_Fetch from each NI5112 in sequence,I find that the values of wfmInfo.absoluteInitialX vary a lot(10-70ms).why?"
Judging from the last paragraphs On page 2-11 of NI5112 User Manual,PXI NI5112 can be synchronized by the system reference clock.But how to do this?

It will depend on what you are programming the NI 5112 device with.
If you are using LabVIEW, you can use the example program attached below. In it, it will show you how this is done.
If you are using VB, VC++ or CVI, you can look at one of the NI 5112 shipping examples that are installed on your computer. These are located in the VXIPNP folder. For example, the VC++ example would be located here:
C:\VXIpnp\WinNT\NISCOPE\Examples\c\MStudioC++\5112​Sync
These examples will show you how to synchronize the two digitizers.
Let me know if you have any questions about these examples.
Brian
Attachments:
Multiple_NI_PXI-5112_Synchronization_Demo.llb ‏151 KB

Similar Messages

  • How to synchroniz​e two analog output with USB-6353 sharing a trigger

    I'm have the need to synchronize two analog output on the same device (USB 6353) sharing a trigger signal on PFI0.
    The programming environement is Visual C++ , and the code I wrote is as following:
    DAQmxCreateTask ("", &Ao0TaskHandle);  // is the task handle for the analog output Ao0
    DAQmxCreateVoltageChan((Ao0taskHandle,"Dev1/Ao0","​",-5.0,5.0,DAQmx_Val_Volts,NULL);
    DAQmxCfgSampClkTiming(Ao0taskHandle,5000.0,DAQmx_V​al_Rising,DAQmx_Val_ContSamps,1000);
    DAQmxCfgDigEdgeStartTrig(Ao0taskHandle,"/Dev1/PFI0​",DAQmx_Val_Rising);
    DAQmxCreateTask ("", &Ao1TaskHandle);  // is the task handle for the analog output Ao1
    DAQmxCreateVoltageChan((Ao1taskHandle,"Dev1/Ao1","​",-5.0,5.0,DAQmx_Val_Volts,NULL);
    DAQmxCfgSampClkTiming(Ao1taskHandle,5000.0,DAQmx_V​al_Rising,DAQmx_Val_ContSamps,1000);
    DAQmxCfgDigEdgeStartTrig(Ao1taskHandle,"/Dev1/PFI0​",DAQmx_Val_Rising);
    DAQmxWriteAnalgF64(Ao0taskHandle,1000,FALSE,10.0,D​AQmx_Val_GroupByChannel,AOdata,NULL,NULL);  AOdata is a buffer containing a sinwave
    DAQmxWriteAnalgF64(Ao1taskHandle,1000,FALSE,10.0,D​AQmx_Val_GroupByChannel,AOdata,NULL,NULL);
    DAQmxStartTask(Ao0taskHandle);
    DAQmxStartTask(Ao1taskHandle);
    What happen as result of the code is that only the Ao0 channel get the sinwave output , but not the Ao1 . It seems the two channels are not synchronized.
    What is wrong in my code?
    Please any help non referred to a LabView soloution , first because I'm not a LavView programmder and secondly the project impose C++ as the unique environement.
    Thanks
    Enky

    It will depend on what you are programming the NI 5112 device with.
    If you are using LabVIEW, you can use the example program attached below. In it, it will show you how this is done.
    If you are using VB, VC++ or CVI, you can look at one of the NI 5112 shipping examples that are installed on your computer. These are located in the VXIPNP folder. For example, the VC++ example would be located here:
    C:\VXIpnp\WinNT\NISCOPE\Examples\c\MStudioC++\5112​Sync
    These examples will show you how to synchronize the two digitizers.
    Let me know if you have any questions about these examples.
    Brian
    Attachments:
    Multiple_NI_PXI-5112_Synchronization_Demo.llb ‏151 KB

  • How to synchroniz​e sampling on PXIe-5162

    Hi, I need to characterize phase and amplitude imbalance of two quadrature signals from a 14bit TxDAC. I selected two 5162 modules to do the job. The signals can have a frequency of up to 1.2GHz..
    Is PXIe-5162 capable of doing this job?
    The plan was to record a long sample of the signals and then do the processing in ie. Matlab.
    I am facing a few problems. Is it possible to synchronize sampling of all channels on one 5162 module, and how to synchronize sampling of 2 x 5162 modules with enough accuracy to have a phase resolution below 1deg?
    Are there any examples of how to synchronize sampling of multiple channels/modules in LabView ?
    Can the phase and amplitude measurement be done directly in LabView without involving Matlab?

    Hi Robert,
    Did you already read some white paper and KB about synchronization using LabVIEW?
    http://www.ni.com/white-paper/11369/en/
    http://www.ni.com/white-paper/4322/en/
    You can find some other white papers on ni.com. I think this will be a good start before doing something else.
    You also can search in the LabVIEW examples.
    Here some information about the measurement of the phase and the amplitude:
    http://zone.ni.com/reference/en-XX/help/371361H-01​/lvanls/amp_and_phase_spectrum/
    http://www.ni.com/white-paper/7670/en/
    Let me know if it is good
    Jean | Applications Engineering | National Instruments Switzerland

  • How to synchronize two fpga DIO?

    Hi!
    I am using two FPGA 7962R (flexrio) with each 6581 terminal board in PXIe-1082 chassis. My problem is how to synchronize two 7962R digital output with PXIe-1082 chassis backplane signal Dstar* or Clk10 or DAQ signal.
    Actually I tried the synchronization with one DAQ counter clock (confering 'Gen Dig Pulse Train-Finite_NI. vi') , and get the signal PXI-Trig0 by source terminal and target terminal connection, but that one does not work properly. Especially, one trigger signal in HOST to set the starting point of each FPGA (7962R), make error by depending on the trigger signal value(Hz value and Timed loop clock in FPGA vi). It was very tricky and not reliable. (I am attaching figure files as explaining the situation)
    My aim is simply to use two FPGA 7962R Digital output as one FPGA, for controling X-axis, Y-axis with each FPGA, while able to change each FPGA (X-axis, Y axis) digital output value. Because the synchronization is not correct, X,Y axis control with Two FPGA currently is out of target if I use simply while-loop design in HOST and timed-loop design in FPGA vi. What is correct design to synchronize the two FPGA 7962R without using PFI line, only with PXIe-1082 chassis backplane signal and able to change the digital output value? Please let me know any idea for HOST vi, FPGA vi programming.
    Many Thanks
    Attachments:
    host1.png ‏47 KB
    fpga1.png ‏131 KB

    Posted response to this in the following thread:
    http://forums.ni.com/t5/Real-Time-Measurement-and/synchronization-two-fpga-7962r-digital-output/m-p/...
    Patrick H | National Instruments | Software Engineer

  • How to synchronize two database in ur java program

    Hi All
    How to synchronize two data base of mysql using java programing language?
    If somebody has any idea that will help me a lot.
    Thanks and regards
    Srikant

    Of corse I have an idea, but not good!
    If you know the database stucture then copy data from one to another.
    Open 2 connections: one to source and one to dest.
    And:
    String sql = "SELCET * from mytable1";// from source
    string sql2;
    Statement st1 = connSrc.createStatement();
    Statement st2 = connDest.createStatement();
    ResultSet rs = st1.executeQuerry(sql);
    while(rs.next()){
    sql2 = "INSERT INTO mytable1 ('field1', 'filed2') VALUES ("+
    "'"+rs.get(filed1")+"',"+
    "'"+rs.get(filed2')+"'"+
    st2.executeUpdate(sql2);
    // the destination was cleared before this: DELETE FROM mytable1 WHERE 1
    This is a mysql sample without processing the errors.
    Szabi

  • How to synchronize two NI9215 DAQmx cards?

    Hi there,
    I'm using two NI9215 DAQmx cards (4ch simultaneous sampling analog inputs) in a chassis type cDAQ-9174.
    Since I need to aquire 8 channels simultaneously I've two NI9215 cards.
    My question is how do I configure these cards to be synchonized?
    I'm using LabVIEW2009 SP1 Dev. Suite
    Thanks for answers!
    Solved!
    Go to Solution.

    One of the beautiful things about CompactDAQ is that you can put multiple modules of the same time (Analog, Digital, etc.) into the same task and they are automatically synchronized.  So, to synchronize the two modules, create one Analog Input task and reference the channels as "cDAQ1Mod1/ai0:3, cDAQ1Mod2/ai0:3".  This will automatically synchronize the two modules together.
    Seth B.
    Staff Test Engineer | National Instruments
    Certified LabVIEW Developer
    Certified TestStand Developer
    “Engineers like to solve problems. If there are no problems handily available, they will create their own problems.”- Scott Adams

  • How to synchronize two applications system

    HI,
    I work witj Designer 9i, in a Non-versioned Repository. I create a copy of an application system on the same repository.
    I would like to know if there is some mechanism that will synchronize the two application system copies. What i want is how to automate the replication of any modification I made to the copy, in the original application.
    Thanks for your help,
    Malika

    Hi Roel,
    I want to do this because in our organization the repository is non versioned, and we want to make copies for the application system in purpose to sure that only Data modeler and DBA will access it. The developers can't update it. In the original application system we will replicate the changes and then developers go on with their Treatment modules.
    Thanks for your reply ,
    Malika

  • 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 ...synchronization between two databases

    Hi,
    I want to set up automatic synchronization between two databases. For example, database DB1 and DB2 have table t1 and t2 with the same columns. If someone updates a record in table t1, I want automatically update the record in t2 or vice-versa.
    How can I make an automatic system like that?

    1) What is the business goal you're trying to satisfy? Failover, reporting, replication, geographic co-location, etc. each have their own set of technologies. Explaining what you're trying to accomplish from a business perspective will help us identify which technology (or technologies) to focus on.
    2) Are you synchronizing a single table? Or multiple tables? Or all the tables in a schema? Or all the tables in a database?
    3) Is there a stable network connection between the boxes?
    4) What version of Oracle do you have (10.2, 10.1, 9.2, 9.0.1, etc)? What edition (standard, express, enterprise, etc)?
    5) How quickly after a change has been made on DB1 does the change need to reflect on DB2?
    6) Am I correct in understanding that you want to be able to change the same row of data on either DB1 or DB2? So the replication needs to go in both directions?
    Justin

  • How to configure time synchronization for two NTP servers

    We have IOSXR 4.2.1 on routers CRS3 and ASR9K with all recomended SMUs; we need to configure the time synchronization for two NTP servers with the configuration below, but the routers became unstable; synchronize with one NTP servers for some time, then switch to other NTP server, and keep doing this. Anyone know why this behavior?
    ntp
    authentication-key 1 md5 encrypted 01070F074F0A05
    authenticate
    trusted-key 1
    server 10.192.32.32 prefer
    server 10.192.32.33
    source Loopback50
    update-calendar
    RP/0/RP0/CPU0:DFCRSDTC1#sh log | i ntp
    Wed Jul 10 09:37:04.621 BRSPO
    RP/0/RP0/CPU0:Jul  4 21:29:18 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.32 : Peer unreachable or clock selection failed
    RP/0/RP0/CPU0:Jul  4 21:29:18 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_LOST : High priority NTP peer connection lost - Stratum 2->15.
    RP/0/RP0/CPU0:Jul  4 21:29:18 : ntpd[256]: %IP-IP_NTP-5-ALL_CONN_LOST : All NTP peer connections failed.
    RP/0/RP0/CPU0:Jul  4 21:29:27 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_RECOVERED : High priority NTP peer connection recovered - Stratum 15->2.
    RP/0/RP0/CPU0:Jul  4 21:30:21 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.32 : Peer unreachable or clock selection failed
    RP/0/RP0/CPU0:Jul  4 21:30:21 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_LOST : High priority NTP peer connection lost - Stratum 2->15.
    RP/0/RP0/CPU0:Jul  4 21:30:21 : ntpd[256]: %IP-IP_NTP-5-ALL_CONN_LOST : All NTP peer connections failed.
    RP/0/RP0/CPU0:Jul  4 21:31:36 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_RECOVERED : High priority NTP peer connection recovered - Stratum 15->2.
    RP/0/RP0/CPU0:Jul  4 21:35:56 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.33 : Peer unreachable or clock selection failed
    RP/0/RP0/CPU0:Jul  4 21:35:56 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_LOST : High priority NTP peer connection lost - Stratum 2->15.
    RP/0/RP0/CPU0:Jul  4 21:35:56 : ntpd[256]: %IP-IP_NTP-5-ALL_CONN_LOST : All NTP peer connections failed.
    RP/0/RP0/CPU0:Jul  4 21:40:11 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_RECOVERED : High priority NTP peer connection recovered - Stratum 15->2.
    RP/0/RP0/CPU0:Jul  4 21:50:52 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.33 : System clock selection failed
    RP/0/RP0/CPU0:Jul  4 21:50:52 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_LOST : High priority NTP peer connection lost - Stratum 2->6.
    RP/0/RP0/CPU0:Jul  4 21:59:26 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_RECOVERED : High priority NTP peer connection recovered - Stratum 6->2.
    RP/0/RP0/CPU0:Jul  4 22:25:07 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.33 : System clock selection failed
    RP/0/RP0/CPU0:Jul  4 22:25:07 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_LOST : High priority NTP peer connection lost - Stratum 2->6.
    RP/0/RP0/CPU0:Jul  4 22:56:16 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.33 : Peer unreachable or clock selection failed
    RP/0/RP0/CPU0:Jul  4 22:56:16 : ntpd[256]: %IP-IP_NTP-5-ALL_CONN_LOST : All NTP peer connections failed.

    Hi Claudio, that ddts is pretty generic to be honest but yes it is filed to address sync issues in the XR NTP algo.
    The thing is that XR ntp clock selection is a bit different then iOS and follows the specs very closely which results in this erroneous loss behavior.
    For instance, you could also see this issue with a sync loss if the update time is only 500msec off what it was before and that will result in a ntp sync loss rather then adjusting to it.
    Also I wanted to mention that the ntp prefer is a bit of a misnomer in XR (since it follows the specs differently then IOS) and this knob was taken over from IOS really.
    You might get some joy if you set it to one server only and see if that helps?
    regards
    xander

  • How do you configure multiple PXIe chassis to share Tclk synch with the 6672 timing module?

    Hi,
    I have two PXIe chassis, each with a number of digitizers (configured through NI-SCOPE). Each chassis has a PXIe 6672 timing module. I have downloaded the sample VI from:
    http://zone.ni.com/devzone/cda/epd/p/id/5254
    which deals with PXI chassis. My question is this: in the VIs at the above link (and in fact all VIs I've seen for using the 6672 for sharing triggers), the VI needs access to the resource identifiers for both Master and Slave timing modules, how do I access the (remote) slave resource identifier from the master chassis? I feel like I'm missing something obvious, but can I do this using just an ethernet connection, or do I need another module to enable the master chassis to view the devices on the slave chassis in MAX? 
    Thanks for any help you can provide,
    Cillian

    Those example VIs are written to be used when a single host PC is controlling multiple chassis so there is just one computer running the program.  Since both of your chassis have their own controllers it will be necessary to run a program on each (one as master, the other as slave).  You can modify the code from that example to create and Master and Slave VIs.  For the Master you will call the VIs as specified in case 0 of the example; for the Slave you will call the VIs as specified in the default, 1 case of the example.
    You will also want to send a signal from the Master to the Slave to let the Slave know that the clock is being generated.  You could use TCP/IP or a PFI line to do this.  The basic order of events should be as follows:
    1. VI runs on Slave to configure it to accept a clock.
    2. VI runs on Master to begin outputing the clock.
    3. Master sends a signal to Slave to let it know that the clock is being generated.
    4. Continue with the rest of your program.
    Let me know if you have any questions about this.
    Barron
    Applications Engineering
    National Instruments

  • How to synchronize NI-Scope and DAQ

    I use a PXI-1042 System with a PXI-5124 Ni-Scope Card and a PXI-6120
    with traditional DAQ controlled by a PC running WinXP and LabView 7.0
    The intention of this setup is to make synchronized acquisition with
    both cards with different sample rates. For the sake of an example let's
    assume the NI-Scope runs at 100MS/s and the DAQ (6120) with 100kS/s. The Trigger is generated by
    analog triggering of the 6120. I'm looking for a solution to garanty
    that for a STOP trigger with post-trigger scans the last sample of the
    6120 coincides in time with the last sample of the NI-Scope 5124 card.
    Or to put it in more general terms a way to identify which of the 1000
    Samples the 5124 Card takes in the sample interval of the 6120
    coincides with the respective sample of the 6120 ? The point is to have
    a time resolution (for phase difference measurements) better than that
    given by the samplerate of the PXI-6120.

    Here you can find an example that shows how to synchronize a DAQ-Device with a Scope-card:
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E2C556A4E034080020E74861&p_node=175382&p_source=External
    Hope this helps.

  • How to synchronize NI-Scope and traditional DAQ

    I use a PXI-1042 System with a PXI-5124 Ni-Scope Card and a PXI-6120
    with traditional DAQ controlled by a PC running WinXP and LabView 7.0
    The intention of this setup is to make synchronized acquisition with
    both cards with different sample rates. For the sake of an example let's
    assume the NI-Scope runs at 100MS/s and the DAQ (6120) with 100kS/s. The Trigger is generated by
    analog triggering of the 6120. I'm looking for a solution to garanty
    that for a STOP trigger with post-trigger scans the last sample of the
    6120 coincides in time with the last sample of the NI-Scope 5124 card.
    Or to put it in more general terms a way to identify which of the 1000
    Samples the 5124 Card takes in the sample interval of the 6120
    coincides with the respective sample of the 6120 ? The point is to have
    a time resolution (for phase difference measurements) better than that
    given by the samplerate of the PXI-6120.

    Here you can find an example that shows how to synchronize a DAQ-Device with a Scope-card:
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E2C556A4E034080020E74861&p_node=175382&p_source=External
    Hope this helps.

  • How to synchronize objects

    Hi All,
    I have a report which shows count of various objects in a report.
    These objects are coming from different data providers i.e. Universes and Stored Procedure.
    Now, the problem is, report is showing proper count for the objects which are coming from Universes, but its showing wrong count for the objects that are coming from Stored Procedures.
    So, anyone has any idea how to synchronize these objects coming from different data providers i.e. Universes and Stored Procedure ?
    Thanks in advance.

    Hi Harshad,
    Could you please review the  following simulation if the issue is according to the below mentioned information then test the solution.
    Requirements:
    1. Report X based on two blocks A and B issued from two data providers A and B.
    2. Data provider A based on an stored procedure A providing a dimension A (DimensionA displaying figures with a NUMERIC TYPE).
    Block A
    Column A
    1
    2
    10
    5
    3. Data provider B based on a universe B and a dimension B with a CHARACTER TYPE.
    Block B
    Column B
    8
    9
    11
    25
    To synchronize the dimensions A and B the idea is to turn the NUMERIC TYPE of the dimension A into a CHARACTER TYPE as the B one.
    As the type of the dimension A cannot be changed within a report, the idea is to export the stored procedure storing the table A and the column A to an Access database as a table A.
    Inside Access the column A having a NUMERIC TYPE can be turned into a CHARACTER TYPE.
    The following step is to insert into a universe A the table A and its column A to create a dimension A.
    Having a CHARACTER TYPE the dimension A can be linked to the data provider B containing the dimension B
    STEPS
    1. Import the table A from stored procedure within an Access database A as table A.
    2.Turn the type of the stored procedure numeric field into Access as a CHARACTER TYPE.
    3. Create a universe A based on the access table A.
    4. Open the report X.
    5. Insert a table on the universe A, and select the table A.
    6. Open the micro cube.
    7. Start the synchronization between the objects A and B.
    As the objects A and B have the same CHARACTER TYPE. These objects can be successfully synchronized.
    I hope this will help you.
    Regards,
    Sarbhjeet Kaur

  • Measure Power using Labview and two PXI-4071 DMMs

    Hello,
    I am trying to make a simple VI.  I am measuring input AC voltage and Current using two PXI-4071 DMMs.  I want to Calculate Power and Power Factor.  I am able to read the voltage and current fine.  I just dont know how to calculate the power and power factor.  Im looking for real power not watt*amps.  Please Help.
    Scott
    Attached is my VI
    Attachments:
    Measure AC Voltage and Current.vi ‏42 KB

    Scott,
    It appears that another applications engineer (Sean_N) has been assigned your initial forum post. I assure you that he is working on finding an answer to your question. We would like for our customers to limit questions to one forum so that we do not duplicate efforts on our end. I will contact Sean to remind him that you are awaiting a response. I will also point all future traffic from this post to your initial one.
    Thanks,
    Kareem W.
    National Instruments
    Web Product Manager

Maybe you are looking for

  • My iPod was stolen but appstore is still connected to my apple ID and is still making purchases.

    I realize that I wont be getting it back but I'm still receiving emails of app purchases from all the way in Taiwan (I live in US). Can I do something about this? Because if I can't use my iPod I don't exactly want anyone else to either.

  • Mac OS 9 Startup disk On Mac OS X

    Hi, I have a power book g4 and am alittle new to it and I have a program that needs to run in classic mode with the Mac os 9.1 or 9.2 start up disk. I have a software disk that came with it but its to install 10.2.7 or something, so how do i use this

  • Can I use my ipad in Australia

    I'm traveling to Australia and wondering if my US bought ipad will be able to connect to wireless networks.  I don't have 3G so I'm specifically interested in connecting to home based or local networks. 

  • Production order Relase status Batch is picked in Delivery

    Hi friends, Presently in system, Production order Relase status Batch is allocated in Delivery due to Availability checking group & rule.Now as per requirement only Confirmed  Production order  Batch should allocat in delivery,then what setting shoul

  • Time Constraints in HR Master Data

    Hi Can you please explain scenarios where Time Constraint 0 is used. thanks AP