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

Similar Messages

  • Setting parameters for synching pci-6534 cards via RTSI bus

    I have been performing high-speed,
    buffered, looping output with one pci-6534 card.  I am now adding
    a second 6534 card that I need to sync to the first card via the RTSI
    bus.  I have successfully used the RTSI bus to see the master REQ1
    and ACK1 signals on those channels of the slave (seen at a connector
    block), using the "RTSI control" vi.  I simply set the master and
    slave as transmitter and receiver, respectively, over the RTSI bus.
    The question is: Once I have used the RTSI control vi to share the
    necessary signals, do I need to do anything in my "dio config," "dio
    write," or "dio start" vi's in the looping output code for the 2nd 6534
    card to let it know that its REQ, ACK, STPTRG, and CLK signals are
    coming from the bus?  For example, in the buffered pattern looping
    output vi, the "dio start" vi has choices of "internal" or "RTSI
    connection" for its clock.  My master board's code simply uses the
    internal.  Does my slave need to be set to RTSI connection, or,
    once I have shared the clock signal over the RTSI bus, is that
    effectively the internal clock for my slave too?
    I apologize it this question is confusing.  Unfortunately, so is the issue.

    Hello bwz,
    When you are performing synchronization across the RTSI bus you need to specify that the slave device should get its clock signals from there.  You would use the digital clock config VI to do this.  If you look in the example finder, you will find synchronization example VIs that do the same kind of thing for analog input.  To find the examples, open the example finder by going to Help >> Find Examples >> Hardware Input and Output >> Traditional DAQ >> Multiple Device. 
    If you are just getting started developing your application, you may want to consider using DAQmx.  There are many more examples available to look at for this type of synchronization.  To find these examples in the example finder go to Hardware Input and Output >> DAQmx >> Synchronization >> Multi-Device.  To use your PCI-6534 with NI-DAQmx, you must have version 7.4 or later.  The newest version is DAQmx 7.5.  You may also want to look at this tutorial about synchronization with DAQmx. 
    I hope this helps!
    Laura

  • Synchroniz​ation of M-Series cards via RTSI and ANSI C?

    Hi!
    This is my first post and I'm happy to be here. I tried to search as thoroughly as possible, but if this has been answered elsewhere, I'd be grateful for a hint/link nevertheless.
    System:
    Win 2000 Pro with NI-DAQmx (part of NI-DAQ 7)
    2x PCI-6220M, 1x PCI-6221M
    RTSI Cable
    all components are registered in MAX
    Problem:
    I want to synchronize the cards over the RTSI bus. I am using the ANSI C library. There's an example SharedClk10-FiniteAcq_main.c, but it is designed for PXI and uses the undocumented (at least in the C reference?) DAQmxSetTimingAttribute function. I tried to pass '/Dev1/RTSI7' as the clock source, but it did not work.
    Then, after reading the C reference a bit more, it seemed as if I needed to use DAQmxExportSignal. But it gives me an error DAQmxErrorInvalidRoutingSourceTerminalName_Routing = -89120 when I try to route DAQmx_Val_20MHzTimebaseClock to '/Dev1/RTSI7'
    I'd like to know what C functions I have to call in which order to enable synchronized sampling with the three M-Series cards.
    So far I do:
    DAQmxCreateTask (primary & driven)
    DAQmxCreateAIVoltageChan (p & d)
    DAQmxExportSignal (p)
    DAQmxCfgDigEdgeStartTrig (d - trying to import the failed export of /Dev1/RTSI7)
    DAQmxStartTask (d & p)
    DAQmxReadAnalogF64 (p & d)
    DAQmxStopTask(p & d)
    This is my first time using M-Cards or the ANSI C functions, so I might have missed something essential.
    Can anyone give a hint as to what I need to do?
    Jens

    First, if you haven't, you should explicitly create a RTSI cable in MAX. This can be done by right-clicking on Devices and Interfaces -> NI-DAQmx Devices and choosing Create New NI-DAQmx Device -> RTSI Cable. Then, for each device that is connected to the RTSI cable, use MAX to edit its properties and in the "RTSI Configuration" tab, specify the RTSI cable. This will allow NI-DAQmx to automatically route signals of the RTSI cable.
    Now that a RTSI cable is configured, you don't need to explicitly export signals from the task. You can use the DAQmxGetMasterTimebaseSrc function to retrieve the master timebase terminal name from the primary task and the DAQmxSetMasterTimebaseSrc function to set the master timebase terminal name for the driven task. The DAQmxGetMasterTimebaseRate and DAQmxSetMasterTimebaseRate functions can be used in a similar manner. Configuring these properties will result in NI-DAQmx automatically routing the master timebase signal from the primary task to the driven task using the RTSI cable. To ensure the driven device starts at the same time, invoke the DAQmsxCfgDigEdgeStartTrip function passing a triggerSource parameter of "/ai/StartTrigger" which will result in NI-DAQmx automatically exporting the start trigger signal for the primary task over the RTSI bus and using it as a digital start trigger for the driven task.
    I assume that you will also want to invoke the DAQmxCfgSampClkTiming function for each task to specify the acquisition rate and number of samples to acquire. Note that since the master timebase signal and the start trigger signal are already routed using the RTSI cable, the sample clock itself does not need to be shared between the two tasks.
    geoff
    Geoffrey Schmit
    Fermi National Accelerator Laborary

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

  • Are there any examples for using a CAN card via XNET on a real time system?

    I am programming a real time application and I have a PXI 8512 card.  My first order of business is to get 5-byte messages from transducers that are broadcasting at 10 Hz on known message IDs.  There are no CAN/XNET samples in my "realtime" CVI sample folder.  I have found some in the nixnet folder but they are Windows based so I have to hack a lot of stuff out of them.
    Thank you.
    Michael Chadwell
    Department of Engine and Vehicle R&D
    Southwest Research Institute

    In other words, I just need to do something very similar to this with no user interface:
    NOTE: See attachment
    Michael Chadwell
    Department of Engine and Vehicle R&D
    Southwest Research Institute
    Attachments:
    CAN Bus Monitor.jpg ‏83 KB

  • 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

  • I have just purchased a macbook pro. I downloaded two sd cards, one via lightroom 4 and the other via iPhoto. I can't find the latter card when I try to import via LR4. In fact i can't find it at all unless i open iPhoto. where is it?

    Good Evening, I have just purchased a Macbook Pro, and have downloaded two SD cards of a trip to USA and Canada last September.  One via Lightrooom 4 and the other via iPhoto. I tried to import the SD card via iPhoto into Lightroom 4 but could not find it. I tried to find this "folder"? via other means with no success. however when I open iPhoto, there it is, so it must be on the Hard Drive somwhere??? I am new to Apple having decided to jump ship from Windows. Would be grateful for any help.

    iPhoto is a - like Lightroom - Photo Manager. It's a database. Like any db to get data out you have to export it.
    File -> Export
    and in this case set the Kind to Original.
    iPhoto is a $15 app, LR is somewhat more expensive. As they both want to manage the photos there's no good usage scenario where you use both. Pick one horse and ride, essentially.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

  • Access a java card via two logical channels

    Dear all;
    I was wondering if someone managed to do following setup(because it doesn't work for me):
    I have an android phone with a sd-card slot in which I've inserted a java card. I can open a logical channel from my android phone to the java card. Since the java card also suports T=CL, I'm also able to open a logical channel from a pc to the java card via a contactless interface (with a reader that is connected to the pc). But what seams to be impossible is opening the two logical channels simultaniously. So I can't open simultaniously a logical channel from the android phone to the java card and a logical channel via the contactless interface.
    Did anyone have succes with this setup? (I made the applet multiselectable)
    greets,
    JT

    If you are trying to connect to the card over both the NFC controller (card emulation) and the device interface from Android at the same time you will probably have a race condition. On the phones I have used, you can only have one active at time.
    Shane

  • Synchroniz​ation of PCI devieces via the RTSI bus using the measuremen​t studio for Viusual Basic 6

    Hi everyone,
    I would like to synchronize a NI 4474 A/D card with a NI 6733 D/A card via the RTSI bus. Is there any way of sharing the timebase using the measurement studio for VB 6.0? It seems like it could be possible using the traditional NI-DAQ .DLL but I would prefer to do it with the ActiveX API.
    I am quite desperate, since all my attempts to use the CWDAQTools1.RouteSignal and CWDAQTools1.RouteRTSI command failed miserably :-(
    Thank you very much in advance!
    Federico

    Thank you very much indeed!
    Unfortunately it doesn't really work... I cannot use the DI options since my A/D card (NI 4474) does not support DI/DO... When using the other option (CWDAQTools1.RouteRTSI) I keep getting an error message that this command is inapropriate for my device (even though it does have a RTSI bus and allegedly it also supports time sharing...)
    Looking forward to your answer!
    Kind regards
    Federico

  • HT1904 Can there be two credit cards saved in iTunes account for buying apps?

    Is it possible to have two credit cards saved in iTunes account for app purchases?

    No, only one card can be linked to an account at a time, you can't have 2 cards stored on it.

  • How can i pay on the apple store online with two credit cards, with two different billing addresses

    I will be greatful if you could answer me this question...
    How can i pay on the apple store online with two credit cards, with two different billing addresses?
    I know that you can use two credit cards to pay an item but the problem is that i can only put the billing address of just one of the credit cards, and since the two cards are from different people (my parents) i can't do it. They live in the same place so i don't know if i should just put one of the billing address.
    Thank you.
    PS. I don't know if this is the right community to ask this, sorry if i'm wrong.

    On the Apple Store "Payment & Pricing" page it states:
    Using more than one payment card
    You can also combine payment methods to pay for your purchase. Choose from the following combinations of credit cards and Apple Gift Cards:
    Credit card(s) - up to two
    Apple Gift Card(s) - up to eight
    Apple Gift Card(s) + one credit card
    During checkout, if you are paying with a gift card issued by a credit card company, you can combine it with one credit card.

  • I have an itunes account without credit card.How can I add a credit card to my account? Also, is there a way to buy apps without credit cards but via app store? Also, I want to download it directly to my iPad, can I do it even if i add credit card via pc

    I have an itunes account without credit card. How can I add a credit card to my account? Also, is there a way to buy apps without credit cards but via app store? Also, I want to download it directly to my iPad, can I do it even if i add credit card via pc?

    Changing Account Information
    http://support.apple.com/kb/HT1918
    Apps Store FAQ
    http://support.apple.com/kb/HT4461
    iTunes Store FAQs
    http://support.apple.com/kb/ht1689
    http://www.apple.com/support/ipad/applications/

  • How do I use two DAQ cards in one Labview code? Current I'm getting error " error 200558 occurred at DAQmx Create Channel.vi. One task cann't contain multiple independent devices". Can someone help me?

    The two DAQ cards are NI PCI-6070E & NI PCI-6052E. The Labview I'm using is labview 7 Express and the Window system is Window XP. I'm using NI SCXI-1000 chasis and SCXI-1102 & 1102B two modules plus a feedthrough SCXI-1180. 1102 is connected through SCXI-1349 cable to DAQ card 6052E while 1102B is connected through SCXI-1349 cable to DAQ card 6070E. SCXI-1180 is connected to 6070E through SCXI-1349 adaptor on the back of 1102B.

    Sarah, thank you for replying my question. It seems that I'm making progress everyday (smile). I'm able to run the test using both daq cards in my code now. But as I'm moving forward, I'm getting new questions too. How do I use one STOP button to control both tasks and how can I save data into one single file?
    I attached my code here hoping you can get the specifics on my application by looking at the code. Thanks very much!
    Thanks.
    Attachments:
    DAQmx_Task_Example_plus_voltage_2.vi ‏416 KB

  • TS1292 Hi I was gifted with two iTunes cards for christmas but I can't use them.  They can only be used in the American store and I am Canadian with a Canadian account.  What an I do?

    I am canadian and was given two gift cards for Christmas but cant use them.  I get the message that they must be in the american store
    Help

    Correct. Gift cards can only be purchased and redeemed in the country of origin. Given that it's the holidays you might consider gifting them to a needy child in your church.

  • HT3702 Is it possible to have one credit card and two debit cards on my itunes account so that we can use different cards for different purchases?

    Is it possible to have a number of cards (say one credit card and two debit cards) to be listed as the payment cards for my itunes account, so that different cards can be used for different purchases?  Or can you only have one card registered on itunes at any one time?

    So is there any way that three members of a family can share one itunes account but pay for their own purchases, other than inputting their own cards each time they make a purchase.
    No, there is no way to do that.
    Or if we all have our own individual itune accounts, can we share each other's music, or can you only sync your iphone/ipad/mac, with one itune account at a time?
    You can sync content from up to five iTunes Store accounts to any given computer or device. You just will each have to copy the content into your own libraries so you can sync to your devices and have your devices authorized to all applicable accounts.
    Regards.

Maybe you are looking for

  • Unable to open uploaded reports

    Hi, Iu2019m a computer science trainee in a enterprise. They tried to install Crystal reports server 2008 on one of the main servers, it looks like everything is fine but when you try to open a sample file or their own file with the CMC it says: An u

  • Can objects be anchored to boxes instead of/in text?

    I'm working on a newsletter and have created my "continued on page x" and "continued from page x" boxes to connect my articles together. I've been able to create Object Styles for each one and have anchored them to the text box. My problem is that if

  • Tablet vs. Laptop

    I am considering purchasing a tablet.  But am very confused and have lots of questions.  First.  Do I have to have a cell phone contract service in order to use my tablet?  Will my home internet service (I have a wireless router) work to access the i

  • Applets in Mac OS

    Hi Java Guys, When I tried to open an html in the local system, that had an applet embedded, I could see the applet displayed inside the html. But when I put the same page and applet to some other machine and tried to access the html via ip address,

  • Itunes is repeatedly freezing, what can be done to fix?

    iTunes is repeatedly freezing (requiring a forced quit).. latest software (mountain lion and itunes both). Not immediately but after a period of some time - time enough to play a song or two or more, but without fail the application locks up - if a s