NI6682H using IEEE1588 Clock to synchronize Boardtime

Hello,
I'm working with NI 6682H. I want to use IEEE 1588 Clock to synchronize the board time.
If I understand correctly  I've to configure it for SLAVE.
What I don't understand is how I can do it.
I've seen through the examples and wrote some code, which works but the Clock is running as MASTER.
My second question would be: how/where can I specify the Source for the MASTER-Clock (URL, IP, ...).
My thrist question: where can I find the MAC Adresse of the RJ45 Port on the Module. I didn't finde it MAX or VI/Propertynodes.
best regards
christian

Hi Christian,
yes i think you've understand it correctly but you need an IEEE 1588 Master, if you want to use the NI6682 Module as Slave.
I've attached you a Master VI and a Slave VI. There you can see that the Master is using the "Send Time to UDP" function and the Slave the "Get Time from UDP" Function.
You don't need to specify the Source of the Master Clock, because for the communication the UDP Protocoll is used. The Master and the Slaves only need the same UDP Port to communicate together.
http://www.ni.com/white-paper/4950/en/
I think you can find the MAC-Address of the Module on a Label that is attached to the 6682H Card. And i found an example to programmaticly get the IP & MAC Address: https://decibel.ni.com/content/docs/DOC-15459
Regards,
Stefan
Attachments:
Generate Sync Clock-Slave.vi ‏32 KB
Generate Sync Clock-Master.vi ‏67 KB

Similar Messages

  • How to output the digital clock and synchronization signal from the NI USB-6211

    Hello,
    I need to connect the NI USB-6211 to control a digital to analog convertor chip (AD5541). However, this chip requires three input signals :1) Clock input, 2) Logic input or a synchronization signal  and 3) Signal Serial Data input (CS, SCLK, DIN).
    how to output the digital clock and the synchronization signal from the NI USB-6211?

    Hi SaberSaber,
    You should be able to use the counters to generate a pulse train that could be used for clock and synch purposes.  
    Hope this helps.  Let us know if you have more questions.  
    Dave C.
    Applications Engineer
    National Instruments

  • How can I use external clock to implement a delay?

    Hi all,
      I am testing to use external clock to drive dev/PFI0 (on device 6711) which is used as the clock for the analog ouput. I have thinking two applications by using the external clock but I don't have much idea on the implementation yet.
    First of all, I have a sequence of data (array) with each sample being sent at the interval of 1us. I use an external clock (10MHz) driving the PFI0 so it is pretty easy to achieve that goal. I am thinking what happen if I want each sampel being sent at different time. For example, if I have 5 samples, I want the first one sent 1us after the task start and wait 2us to send the 2nd sample, wait 5us to send the 3rd sample and wait 11 us to send the 4th sample, and wait 1us to send the last sample. Is it possible to achieve that based on the external clock?
    Second question is about the delay. My code require ciritcal timing and the builtin delay doesn't behave very well because I am running in windows. I can increase the priority of the vi to highest, it helps a bit but still not perfect. I am thinking if it is possible to implement hardward delay based on the external clock. Any idea?

    Hello dragondriver,
    To answer your first question, yes you could send data in that fashion. You would have to programmatically build a pulse train and use that to trigger the sending of data. The answer to the second question is essentially the same. You should be able to programmatically build a pulse train with a delay and use it as trigger to begin whatever operation you have.
    Jonathan L.
    Applications Engineer
    National Instruments

  • I am new to apple hardware, and since upgrading software on my iphone 4S I receive this message.  "this accessory is not supported by this iphone" when using my clock radio docking station. Is there away around this?

    I am new to apple hardware, and since upgrading software on my iphone 4S I receive this message.  "this accessory is not supported by this iphone" when using my clock radio docking station. Is there away around this?

    Hello GuynStPete,
    Thanks for using Apple Support Communities.
    I found the following support article that has some troubleshooting steps for you to follow in order to resolve this issue you're experiencing:
    Resolve issues with iPhone, iPad, and iPod touch accessories
    http://support.apple.com/kb/TS2634
    Take care,
    Alex H.

  • I recently upgraded to a 5s.  my clock radio iPhone plug in was compatible with my iPhone 4.  Is there an attachment I can buy so that I can still use my clock/radio?

    I recently upgraded to a 5s.  My clock/radio iPhone plug in was compatible with my iPhone 4 so I could listen to Pandora.  Is there an attachment I can buy so that I can still use my clock/radio?

    There are 30-pin to Lightning adapters, but I would be afraid it would put the phone too high up and risk damage. I would contact the radio company to see if they offer a unit that has a lightning connector.

  • Using External Clock to write counter value to buffer

    Using CTR mode config which input controls at what frequency the counter value gets written to the buffer? How do I set it up so the counter value is written to the buffer at the same time Anologue inputs are written to a buffer, without using the other counter.

    Hello,
    Could you please explain what type of counter operation are you interested in doing? That would help me in suggesting something.
    But if I roughly understand what you are saying here, you can use a same clock to provide as scan clock for analog input and then use that clock for the counter. But depending on what counter operation you are trying to do will decide whether that clock be provided as source or Gate.
    You may take a look at examples provided at the following location too :
    Measurement Hardware
    Sincerely
    Sastry V
    Applications Engineer
    National Instruments

  • I cannot use MSI clock or Info in properties

    I cannot use MSI clock nor Info in display properties, nor can the 3d turbo work, it errors, it seems everytime I try to do MSI clock on my GF4 4200 128, it says error occured  while windows was working with conrol pannel file c:winntsystem32desk.cpl
    what do I do to fix this? thanks

    Dave,
    I since you have a Video Card and you posted in the Anything Under the Sun Motherboard Forum, I moved the thread to Multimedia Forum for you.
    Good Luck,
    Richard
    P.S. Delete the file msicpl.dll and use the latest Detonator 4 Drivers from nVidia and you should be set.

  • How to use the PXI's 10MHz backplane clock to synchronize two or more 6031E boards?

    Hi,
    I'm trying to use two 6031E boards to acquire multiple channels Analog Inputs, and I'd like to sync them with the PXI backplane clock (not the RTSI bus). I found an example from NI, "Two E-Series Shared ScanClk.vi", and modified it a bit. But I'm wondering if the two boards must have the same acqusition rate? e.g. Can I have 1 board acquiring at 1kHz while the other one at 20Hz? and if yes, how do I do it?
    Your input will be very much appreciated. Thanks!
    Dan
    Attachments:
    mod_Two_E-Series_Shared_ScanClk.vi ‏148 KB

    Unfortunately, E Series boards cannot synchronize with the 10 MHz PXI backplane clock. They do, however, have access to the PXI trigger lines, which are basically the RTSI lines. Except for line 6 which is the star trigger line. They can only read from this line.
    The example program you have selected will definitely be part of your solution. It allows you to share the scan clock timing signal between two boards. If you would like the slave board to acquire at a slower scan rate, you could always route the master's scan clock to one of the slave's on-board counters which can act as a frequency divider. The output of this counter can become the new slower scan clock for the slave board. Use the Generate Pulse Train shipping example VI as your frequency d
    ivider. Finally, make sure you route the signals appropriately and you'll be in business.
    I hope this helps!
    Russell McMurtrey
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Using the X Series interal clock for synchronization

    Hi,
    I am slowly learning how to use Labview in my work.  I have 2 X-series multifunction DAQs that are each linked to a computer.  I am reading in the user manual that the DAQ has a built in 10MHz clock that can be used by other DAQs in the system.  The idea is that I'd like one of the two DAQs to be a master and all operations should be theoretically unified.  I am unclear on how to actually tap into the internal 10MHz clock on DAQ1.  I may be misinformed about some fundamentals of Labview, I recognize this.  I played around with some DAQmx functions and was confused because the Create virtual channel DAQmx that I assume has to come first in a sequence of DAQmx's still required an external signal source: "lines".  This seems counter-intuitive for my purposes!.  Can there be an input that is genuinely from within the DAQ?  If I create a DAQ assistant to generate counter output, I see how it can be timed using the 10MHz reference clock but somehow I also feel like this is an incorrect strategy.
    I am still an amateur but I haven't found very good resourses that actually explain how to generate timing, only that you can do it.  Besides, isn't the 'timing' of any signal I generate in the program dependent on how fast the while loop surrounding the whole program cycles?  And can this be controlled?
    Any starting point or advice you can provide is greatly appreciated.

    Hi twitchell,
    Are you trying to synchronize analog input? If so, this should be a good starting point: Synchronizing DSA, S Series, and X Series Devices With a Single NI-DAQmx Task
    Otherwise, please post more details about what you are trying to do: channel type, sample rate (same on each device or not?), triggering, etc.
    Brad
    Brad Keryan
    NI R&D

  • Using dummy task to synchronize other tasks

    Hi,
    Environment: NIDAQmx 7.4 - ANSI C
    Is there a way to use a dummy task to synchronize the starting of other tasks?   What I need to do is to make sure that multiple tasks (AIN, CTRs) are simultaneously started.   I was hoping that there might be some way to route the start trigger from the dummy task to a terminal (e.g. RTSI-2) and then have all my other tasks (armed and waiting for a pulse to come along on RTSI-2) start when RTSI-2 pulses.
    In the past I would setup my counters to gate off of an RTSI pin, and then routine my AIN tasks's sample clock to the same RTSI pin.  I would then start the CTR tasks first, followed by the AIN taks.   This all worked OK until I got a "DMA error" (-20078)  when using E-series cards.  The error text suggests that I need to start the AIN task before the CTR task.  But doing so adds a time skew between the AIN and the counter cards.   I am hoping to circumvent this by having ALL tasks gate off a signal (e.g. RTSI-2), and using a dummy task to pulse the RTSI pin.
    Is this possible?  If so, can you point me to some documentation on how to do this?
    Thanks in advance,
    -bill

    Hi Bill,
    You can definitely synchronize multiple tasks from a same start trigger. You can do this using the RTSI cable but also you can use the internal signal sampling clocks as start triggers.
    First you will have to configure your RTSI 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.
    Actually, the discussion forum http://forums.ni.com/ni/board/message?board.id=250&message.id=9743&requireLogin=False explains in detail how setup the time bases and synchronize the each of the tasks using the DAQmxGetMasterTimebaseSrc function. Please also refer to synchronization examples in the C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Synchronization.
    Also, if you decide just to use the internal sampling clock option, when you set up the timing for the task by using the function DAQmxCfgSampClkTiming(), for the source parameter you can specify the same start trigger for all tasks (for example Dev1/ao/Start trigger). Daqmx will automatically synch the start of all tasks once the source is specified.
    Regards,
    Natasa

  • New OSX 10.7 disadvantages 'paying' MobileMe members. Warning: with the use of Lion, MobileMe synchronization is no longer reliable!

    Today I received the following message from MobileMe advisor Caryn in a support chat:
    "MobileMe is actually not compatible with Lion yet which could be why you are having some issues. Since MobileMe is going away, it actually has not been designed for use with Lion. iCloud is designed for Lion. Now its not saying that it wont work but this is the reason you are having issues."
    Can you imagine I was flabbergasted?! Because if these "issues" mean that synchronizing iCal and Address book under Lion is not reliable anymore, as it has proven to be extremely unreliable in my case for the last weeks, I think Apple is letting the paying MobileMe customer down the hard way. This is something you would never expect Apple to do: introducing a new OSX ignoring severe damage they cause to thousands of ‘paying’ MobileMe members.
    I had been discussing this matter with MobileMe support several times, but today was the first time I received a honest answer. I run a business using Apple equipment and MobileMe services. Many hours and valuable data were lost. Unacceptable!!!
    Problem description:
    In my case iCal 5.0 running at OSX 10.7 on several iMac's did not synchronize correct or not at all. New events are flagged with a small round ‘offline shaped’ icon and do not synchronize with MobileMe. Once the icon is present in one of the events, new added events are also flagged and do not synchronize. Appointments were lost between machines this way!
    As soon as the icons in the events appear, also a warning icon is shown at the top of the (pop up) calendar list. Clicking this warning sign icon the following error is reported (translated from Dutch): “The server responded with an error. iCal cannot establish the connection with cal.me.com. Take care that you are linked with the Internet and try it later again.”
    I have ran several tests with the assistance of chat support, including deleting and re-installing my iCal account several times and I even re-installed OSX Lion on one of the iMac's. Nothing helped. Switching the machines back to OSX 10.6 Snow Leopard solved all problems. Getting frustrated about losing a lot of valuable time!
    So now I’m warning other Apple users in national and international social media discussion groups and Apple forum discussion portals. Skip the use of OSX Lion as long as you are a MobileMe member! If already purchased: ask for a refund!

    @Chris: my machines: MacPro Original 2,66/11GB, macMini 3,1 2,0/4GB and a MBAir 2,1 1,86/2GB all running Lion since day 2.
    This is the official article for MobileMe users about transition to iCloud - I admit: nothing said about MobileMe and Lion.
    http://support.apple.com/kb/HT4597
    This article dated Juli 29th "Known problems with iCal" does not talk about Lion either:
    http://support.apple.com/kb/HT4038
    And finally, the official status information on MobileMe says: everything fine.
    So I doubt, that the statement from "Apple MobileMe support" (whoever that was) is something to be taken as the truth. These people surely are no OSX experts and I guess they know about Lion as much as we do. Since you never look into there eyes while communicating, you never know ....? And hiding behind a Lion is not very brave ;-)
    Only to be sure: Do you have "Push" selected in all your iCal MobileMe account preferences?

  • Using external clock on a 6062E DAQ card

    In my application I need to use an external clock (2 MHZ) to sample 10 channels at 40 KHz each. I connected the external clock to PFI_7/Startscan, enabled the ND_IN_CHANNEL_CLOCK_TIMEBASE and ND_IN_SCAN_CLOCK_TIMEBASE using The Select_signal function. If I use only two channels (instead of 10) everything works fine. If I try to increase the number of channels to more than 2 I get a digitized waveform with points missing (one every 2). I tried to decrease the sampling rate to 4 KHz per channel, but the problem persisted. For 2 channels everything is always fine, but for more than 2 I get the same error in the digitization pattern.
    The relevant lines of my codes are attached
    Thank you for your help
    Enrico Gratt
    on
    Attachments:
    Sample_code.pas ‏3 KB

    Enrico,
    I have a couple of questions. Do you see the same amount of missing data regardless of how many channels (more than 2) you are acquiring? If you use the internal 20 MHz timebase, can you successfully acquire all 10 channels at 40 kHz?
    Spencer S.

  • Fpga using the clock of the CRIO chassis...

    Hi.
    I am designing an application to acquire data using FPGA. I am using an CRIO-9074.  First at all, I want that the stamp of time for the records COME FROM THE CLOCK OF THE CHASSIS and not from the PC's one, because when the application be finished, the CRIO is going to connect directly to a network, without using a pc.  I would like to use the Time Stamp Control. ¿How can I codify this?  
    Thank you for your time.

    When you use the standard LabVIEW date/time functions in code that is running on the cRIO, you get the time based on the cRIO's clock.

  • Unable to use sample clock digital filter - PCI6602

    I can't seem to get digital filtering of the sample clock to work on my PCI6602. I'm using DAQmx 7.4, with one of the counters configured for buffered-edge counting. Whenever I try to configure digital filtering on the sample clock (coming in on pfi10):
    counterTask.Timing.SampleClockDigitalFilterEnable = true;
    counterTask.Timing.SampleClockDigitalFilterMinimumPulseWidth = 0.000005;
    I get the following error message when I start the task:
    Additional information: Digital filtering is not available for the given terminal.
    Device: Dev3
    Property: NationalInstruments.DAQmx.Timing.SampleClockSource
    Corresponding Value: /dev3/pfi10
    Channel Name: phaseLockOscillator
    Task Name: PhaseLock task
    Status Code: -200772
    I thought digital filtering was supported on all pfi inputs on the 6602 - so can anybody give me a hint as to what I'm doing wrong !?
    Many thanks in advance,
    Jony Hudson

    I have the same problem with the PCI-6280., help me please!

  • Can I acquire waveform at faster sampling rate using external clock?

    I am trying to acquire waveform at a sampling rate of 1MHz. My 6036E card is maxed out at 200KHz. Is there a way to achieve a sampling rate of 1MHz using an external sample clock? Your PFI pin can take external clock as an AI sample clock, right?

    Hi,
    I remember I asked the similar question before in the NI forum, they reply me:
    the max sample rate (scan/s/channel) cannot be greater than your board max sample rate, even you use external scan clcok. So the answer is no for your case.

Maybe you are looking for