How to synchronize two PCI-6602 via RTSI for semi-period counting of four signals?

Hello,
I try to measure 4 PWM signals. For that, I created 4 tasks (newest DAQmx), each with semi-period measuring one signal.
I want to use DMA so I have two 6602 for each two signals.
The task aquire a finite number of samples.
This works fine when starting the tasks subsequently.
Now I want to start the tasks via a trigger on the RTSI bus.
But I have no idea how to get this done.
I use the MX drivers for the first time an find it very difficult to get through the help files.
I looked at many examples but did not find a solution.
Most of the time my experiments end with an error message saying that the property is not applicable to this task, or s.th.similar.
Ans sometimes, when there seems to be a trigger defined, the task will not wait for the trigger and time out.
Is the anybody who can help me out of this?
Maybe a little sample program?
I program in CVI.
Many Thanks
Michael.

This topic is discussed here:
http://forums.ni.com/ni/board/message?board.id=250&message.id=13383&requireLogin=False
Hope this helps!

Similar Messages

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

  • Can I synchronize two pci boards - DIO-6527 and MIO6036E - via RTSI?

    Thanks in advance. I'm interested in synchronizing a Analog PCI (MIO 6036E)and a Digital I/O board (DIO6527). But I am not sure if this is possible via RTSI. Can anybody give me some advice? Are there any Digital I/O boards which own a RTSI-interface?

    Well, you can't do buffered pattern input with the 6527. You can only sample the digital lines one scan at a time through software. The speed of this is limited by the speed of the software.
    Now, the MIO board already has a built in hardware trigger you can use to initiate an analog acquisition. You can also use your MIO card to "gate" the scan clock using one of the counters. (Only acquire scans while the gate signal is high, for example)
    From what I gather, it seems you want to sample the AI and the DI with the same clock and be able to associate each analog sample with a corresponding digital sample. If you do need to do a buffered acquisition of digital patterns in addition to triggering an analog acquisition, then yes, you'll probabl
    y want to switch to a 653x. Then you would be able to share the same clock between the two.
    If I have misunderstood your application, then could you give me some more detail about what you would like to happen?
    Russell
    Applications Engineer
    National Instruments

  • How to Synchronize two methods or more methods

    HI All,
    As a java starter in learning Synchronization. how simply can I Synchronize two methods
    for example I have the following.
    public class Process {          
    public static void main(String args[]){
    process1();
    process2();    
    private void process1(){
    private void process2(){
    }

    A-KADRI wrote:
    HI All,
    As a java starter in learning Synchronization. how simply can I Synchronize two methods
    for example I have the following.
    public class Process {          
    public static void main(String args[]){
    process1();
    process2();    
    private void process1(){
    private void process2(){
    You're being really ambiguous. You could "synchronize" those methods by adding the synchronized keyword to their method signature, in which case they will implicitly lock on the object they belong to. That's what most people will think you mean when you say synchronized. Is that what you meant? Or did you mean what BDLH was thinking in that you wanted to lock something, then do 1,2,3,4, then unlock it? That's something different. Be specific!

  • Synchronize two PCI Board for Analoge Output

    Hi All
    Has anyone a good example for synchronizing two MIO Boards over RTSI cable.
    I found a lot examples to analoge input but nothing about analoge output.
    Thanks

    Hi Reto.
    I posted to this once, but looks like it didn't make it. I checked the examples, and Ir eally didn't see anything that did what you wanted over the RTSI bus, so I made one. Check it out.
    Mark
    Attachments:
    RTSI_AO.vi ‏95 KB

  • 2 encoders 1 DAQ sync via rtsi for ellipsometer

    Hey, this is my first big project. I need to program an algorithm to find a null in light intensity by crossing two polarizers. I rotate the polarizers with flexmotion and need to syncronize encoder positions to AI over an E series board. Both encoders may move back and forth a few times before I find the null. I would like to have voltage, and two encoder positions syncronized into an array. Any recommendations?
    How should I begin to test my rtsi cable setup?

    I have found that the best way to do this is to use a 660x witht he encoders and use the e-series for the AI. Then set the encoders up for buffered position measurement. Buffered position measurment latches the value of the count everytime a pulse is recieved on the gate pin.
    This is really nice, because you can route your AI scan clock to one of the RTSI lines and then set the Gate for each counter to that RTSI line. This way everytime you scan an analog input you will get the value of both counters. In addition, the counters will be sampled at a percise time so that you can measure things like speed and acceleration.
    I am not sure what programming language you are using, but you can combine some of the LV shipping examples like ContAcq&Graph wit
    h the buffered position measurement. All you need to add is the route signal.Vi to route the scan clock to the RTSI line. I will include an example in VB.
    I hope this helps.
    Joshua
    Attachments:
    AIwBufferedEventCounting.zip ‏6 KB

  • How to convert the table with separate fields for every period

    Hi there,
    I have the table in R/3 called COSP. The table contains the separate fields for values of separate reporting periods, let's say Amount01, Amount02 etc. I need to extract this data to BW and load it into ODS, which contains the data like common key figure for amount and info object Fiscal Period. How to extract and tansform the data to be able to load it there?
    I mean, how to change the row like:
    100 100 200 200....
    for rows like:
    001 100
    002 100
    003 200
    004 200
    I hope you'll help,
    Kooyot

    Hi,
    you need to implement a bit of coding for that.
    With the 'do varying' statement abap provides a loop over those fields. Within this loop you can build up a new internal table with one entry for each period and amount.
    kind regards
    Siggi
    PS: I am not very familiar with CO, but I guess there will be a standard extractor for that.

  • Synchronization of two CAN-cards via RTSI?

    Hello!
    We have two CAN-cards of the type "NI PCI-CAN/XS2, 2-PORT". We have made a program for one card and now we putted the other card into the computer. Then we connected theese via a RTSI-bus. Is there something one has to complement with to get synchronization via the RTSI-bus? Because the program does not work now after we putted the other card and the RTSI in. Any idea?
    Best regards and thank you.

    Hello Ex-jobb
    The synchronization examples for the Frame API are somewhat advanced but don't cover the basic grounds. Basically, they allow you generate/receive an event based trigger pulse. A generally easier approach is the sharing of a clock signal, however this is only supported through the relatively new ncConnectTerminals and ncDisconnectTerminals VIs, for which there are no examples existing yet. Their functionality is very similar to the nctConnectTerminals and nctDisconnectTerminals Vis of the Channel API that why I referenced them (as an example to see how they are used).
    Like I said in the other thread, it would be easier to judge what synchronization options work best for your application, I you could describe the desired behavior of your application in a few words.
    Regards,
    -B2k

  • 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 USB webcams (each at 30fps) for a combined 60fps video? Three for 90fps?

    Hello All,
    Multiple-Camera Lab Application: How-To?
    Exploring a loose-synchronization for cameras, low resolution, B&W=gray video capture, that may require up to 200fps, laboratory application.
    Frames would be recorded serially, from 1_frame/10msec at 100fps to 1_frame/5msec at 200fps.
    Consecutive frame-to-frame intervals do not need to be fixed at 10msec, they may vary a lot +/-50%, are non-critical.
    Video recording may last up to 1_minute maximum real time (no sound recording needed at any time).
    Specs say a generic USB2.0 webcam can record up to 30fps.
    And USB2.0 is a half-duplex serial protocol.
    Using two or more webcams in parallel, focused on the same scene, may yield a composite video capture at multiples of 30fps.And much lower price than a single dedicated high speed camera.
    Ultimately all frames have to be assembled -in sequence- into one big video recording.
    Any comments, any ideas? Did anyone try this?
    Thank you,
    Dan

    Hi,
    Sorry I am not much help about this. Creative webcams aren't built to work that way.

  • How to synchronize two scroll bars

    Hi there,
    Can anyone tell me how to go about to synchronize 2 JScrollPanes so that When the Scroll bar of the top Pane is moved, the scrollPane of the bottom pane also moves in sync. Thanks in advance.

    1. get hold of the two scrollbars using getHorizontalScrollBar() or getVerticalScrollBar()
    2. listen to their AdjustmentEvents using
    addAdjustmentListener(AdjustmentListener l)
    3. in the AdjustmentListener set the scrollPosition
    of the other scrollbar, when an AdjustmentEvent gets
    fired. You can use setValue(int)
    Spieler

  • 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 two flash in an html page?

    I've placed two seperate flash on my page but i want them to
    be played at the same time. but how?
    One idea is that one of the flashes sends some data to
    another. But i don't know how to do it by actionScript.
    By defult these two are not loaded at the same time
    Happy new year

    Hello! I try input a .swf file in my homepage, but it doesn't
    work. Can anyone know what would be the problem?
    The link is:
    www.e-promo.hu
    The swf must be at the bottom of the page...

  • How to synchronize two different oracle designer repositories

    Hi
    we have the following situation
    we use Oracle designer and SCM repsository to manage our datamodels and server models.
    we have two teams working in two different locations. Both teams are working on the same datamodels/ server models.
    issue is , the network speed is slow between the two locations, so we dont want to use same instance of SCM repository (or in other words same oracle database server) to manage work.
    is there a way/Tool , whereby Both teams can work in separate repositories at their respective locations (i.e. on two different oracle servers ) and we keep transfering the changes (deltas) between two repositories to keep them in sync ?
    Tia and Regards

    You might be able to use a database link to connect from one db to another.

Maybe you are looking for