Synchronize the clocks of 2 PCI cards for analog inputs with e/s digital reference

I'm trying to synchronize the clocks of reference of 2 PCI cards so that the analog inputs are synchronized. However, my appilcation has also digtial e/s on two cards, and who apparently made the mistake DAQmxErrorResourcesInUseForRoute_Routing. This discussion describes a similar problem, but the solution was to just put the reference clock to the slave device, who had no other tasks running on it, so what mine does.

Is there way I can synchronize the clocks of refernce without interfering with the digital I/o?

Thank you!

PS: My application is in C++.

The reference clock is really a lower-level component that is shared by all resources on a given device.  All tasks on a given device must use the same reference clock.  So if you use DAQmxSetRefClkSrc for a task, you can use it to set the same value for your other tasks.

Best regards

Tags: NI Hardware

Similar Questions

  • How to structure the DMA buffer for SMU 6341 DAQ card for analog output with different frequencies on each channel

    I use the outgoing/incoming analog DDK with the DAQ 6341 SMU map.

    The examples, for example aoex5, show a single timer (method outTimerHelper::loadUI), but the example shows the DMA loaded with same size of vector data.

    There is a comment in the outTimerHelper:call rogramUpdateCount, which implies that memory sizes different pad per channel can be used.

    (the comment is: switching between the sizes of the various buffers is not used)

    Nobody knows what should be the format the DMA buffer for data from multiple channels with different frequencies?

    For example, we want a0 with a sinusoid at 1 kHz and a1 with a sine wave of 1.5 Khz.  What looks like the DMA buffer?

    With the same frequency for each channel, the data are interleaved, for example (ao0 #0, ao1 #0; ao0 ao1 #1, #1,...), but when the frequencies for each channel is different, what the stamp looks like?

    Hello Kenstern,

    Data are always intertwined since each card has only a single timing for each subsystem engine.

    To AO, you must specify the number of samples that will be released to the AO. You also specify the number of channels. Because he didn't is that a single engine timing for AO, each AO will be channel will be updated at the same time to update clock tick. Data will be interlaced exactly as shown in the example because each channel AO needs output at each tick of the clock to update. The data itself can change depending on the frequency you want to copy.

    kenstern wrote:

    For example, we want a0 with a sinusoid at 1 kHz and a1 with a sine wave of 1.5 Khz.  What looks like the DMA buffer?

    With the same frequency for each channel, the data are interleaved, for example (ao0 #0, ao1 #0; ao0 ao1 #1, #1,...), but when the frequencies for each channel is different, what the stamp looks like?

    In your example, you must come with an update rate that works for the two waveforms (sine waves of 1 and 1.5 KHz). To get a good representation of a sine wave, you need to update more than 10 x faster than your fastest frequency... I would recommend x 100 if possible.

    Update frequency: 150 KHz

    Channels: 2

    Then create you stamps that include complete cycles of each wave you want to produce based on the frequency of update. These buffers must also be of the same size.

    Buffer 1: Contains data for the sine wave of 1 KHz, 300 points 2 cycles of sine wave

    Buffer 2: Contains data for the sine wave of 1.5 KHz, 300 points, 3 cycles of sine wave

    You can Interleave them as before. When the data are performed through the ADC, they are out different sine waves, even if the AO channels are updated at the same speed.

  • What is the correct USB 3.0 PCIE card for Z800?

    I am looking to buy the correct USB 3.0 PCIe card for a Z800, but I can't find any HP thru. Anyone has the info > 12 and 60 cards HP dollar on EBAY, but I don't know if those who are good.

    Hello

    Based on the following specifications, the machine has a lot of options:

    http://h18000.www1.HP.com/products/QuickSpecs/13278_na/13278_na.PDF

    You can buy 1 port card, map 2 ports, card port 3 or even 4 ports card such as:

    http://www.StarTech.com/cards-adapters/USB-3.0/cards/2-port-PCI-Express-SuperSpeed-USB-3-card-adapter~PEXUSB3S2

    You should check the slot to get the support of the card right.

    Kind regards.

    PS eBay is another story, you can buy some card dollars.

  • Add PCI Parallel port card for PC comes with no port does not print.

    I recently got a few new computers that were shipped with Windows 7 Professional. I forgot that they do not comes with a parallel port.

    These computers are intended for a point of sale application, which requires a matrix printer. First I tried USB to parallel to connect the printer, however, this does not work, because the printer is not smart enough to identify itself, it will not appear as a printer.

    My next solution was to add parallel ports via PCI cards. The card installs very well, and Windows 7 detects the drivers for it and installs. No errors appear in the Device Manager, but a couple of weird things happen.

    1. the device manager gets the parallel ports under Ports (COM & LPT) but it also gets a "multifunction adapter" in a different section (not in front of the PC now, so I don't remember which.) Both devices appear to be fine and report that they are working correctly.

    2. under "Devices and printers", I get 1 (or in the case of a card dual parallel port, 2) ' Microsoft aw Port"devices.

    I then install the driver from the printer and add the printer to "LPT3" which is the device of parallel port added in Device Manager. Print a test page, and... Nothing. Open the print queue and it is empty. Try printing a test page, and it will appear briefly in the queue and disappears, just as it would if the print job was successful. If I try another device, it (as expected) reports an error that the device does not exist.

    Although it does not directly concern, article in the knowledge base at the http://support.microsoft.com/kb/883253 seems to describe some similar circumstances, enough so I wonder if there may be a connection. Maybe the parallel port arbitrator is not installed in Windows 7 by default if the PCs have no one? If this is the case, how do I install it?

    If it's a goose chase wild... Well, that's why I asked the question.

    Help!

    Well, call it weird...

    I found an another USB to parallel adapter, rather than trying to directly convert the printer, it installs like a USB IEEE1284 adapter. (If it's a USB parallel port). This appears also in the 'ports and devices', but as an adapter of 1284. Try the printer. Bingo.

    Here's the weird part. Once Windows 7 installed the drivers for this device, I unplugged and then reconnect the printer parallel port PCI. I changed the printer I have installed (on the USB001 device) unit LPT3 and bingo. It still prints. He continued to work even with the unplugged USB adapter.

    So I strongly suspect that there is some kind of pilot missing for a missing parallel port, which Windows 7 don't think he needed to use a PCI parallel port but he knew that she needed a USB parallel adapter. I only wish I knew precisely what pilot that he was. Maybe this will give some clues so people who know Windows 7 might be able to understand. I'm more than willing to answer questions if anyone wants to know what really happened here.

    For memory, the sequence I went through was: I tried the printer (installed with the drivers from the manufacturer for Windows 7, 32-bit) installed on LPT3 device which Windows 7 acknowledged the parallel port as a map. Checked the symptoms that I have stated above. Print job appears to be completed, but the printer does nothing. Uninstalled the printer. Plugged in USB to parallel adapter, expected for Windows 7 recognize the device and install the drivers. Plugged into the printer (PnP does not.) Install the printer using the same drivers as before, but using the USB001. Printer worked. Disconnected the printer from the USB adapter and reconnect the parallel port card. Changed the printer to use LPT3 Ports print configuration tab. This time, it worked.

    Repeatability, I did the same thing with the other parallel port PCI card and a similar printer on another position of the same work. This facility began with the installation of map of parallel port PCI first, then followed the same sequence, with the same results.

    So, my problem is solved, but I think that it is unreasonable to plug a USB adapter for a PCI card.

  • synchronize the clock of your computer with your local time?

    synchronize the clock of your computer with your local time?

    Windows 7 must be configured by default to set his time using windows.time.com as an NTP server.  Double-click the clock in the taskbar, and then select the time tab Internet.  A source of time NTP is configured?

    Brian Tillman [MVP-Outlook]

  • Synchronize the clocks on M-series via DDK

    Hello

    We are in a new cycle of development and require the clocks on our maps of the series M (6259, 6225) to synchronize. I searched the docs of NOR and the Forums for more information, but am coming short on details to implement synchronization.

    Firstly a bit of history... Two cards by computer. The captain 6259 samples 24 HAVE 2000 s/s using a rate of Conversion 49140 Hz and the slave 6225 12 samples HAVE 200 s/s with a Conversion rate of 2457 Hz.

    My understanding of the synchronization process follows. On 6259 mask, the 10 MHz reference clock is exported via a RTSI line. The slave 6225 matter 10 MHz reference clock and activates its PLL. 6259 sampleclock HAVE is exported via a second line RTSI and divided by 10 to trigger sampling HAVE on the 6225.

    How did the 10 MHz reference clock available in the DDK? How the PLL get activated in the master and slave? The AI SampleClock can be divided into bottom directly before the export or import on the slave? Or the division shall take place via one of the counters of GP? Are there examples of code?

    Thank you!

    Gord

    Just a quick update on this issue.  We were able to help get the operational application.  The main issue was the PLL_Control registry was not written correctly.  Which should have been as follows:

    PLL_Control (454)<==>

    PLL_Multiplier is 8
    PLL_Divisor is 1 

    PLL_Enable is 1
    PLL_VCO_Mode is 3

  • I don't want my Virtual Machine to synchronize the clock of the host

    I'm using VMWare Workstation 7.00.203739

    My PC is Windows XP SP3

    My Virtual Machine is Windows XP SP3

    I don't want my virtual machine is synchronized with clock 'the real machine', then reading here and there I put these lines in Windows XP SP3.vmx

    tools.syncTime = "FALSE".

    Time.Synchronize.continue = "FALSE".

    Time.Synchronize.Restore = "FALSE".

    Time.Synchronize.Resume.Disk = "FALSE".

    Time.Synchronize.Shrink = "FALSE".

    Time.Synchronize.Tools.Startup = "FALSE".

    However, after 30 minutes I work inside the virtual machine, I see that comments clock synchoronizes with the host country.

    What have I forgotten?

    Thanks for your advice

    When this occurs after the virtual machine is in place, for a while, I guess that you have activated the service 'Windows Time' - it disabled via services.msc

    ___________________________________

    VMX-settings- Workstation FAQ -[MOA-liveCD | http://sanbarrow.com/moa241.html]- VM-infirmary

  • Upgrade graphics card for elitebook 8730w with NVIDIA Quadro FX 3700 M 2 GB

    Tell me please, can I update the graphics card for this device

    Hi @karik

    Welcome to the HP Forums! I see that you are looking to upgrade your graphics card. You're lucky, it's one of the few a few laptops that you can update the graphics. Here's your Guide to Service and Maintenance and page 64 you will find compatible graphics card and instructions on how to install it.

  • Can I get a CD with the latest version of Adobe Reader for Windows XP with Service Pack 3 System. I don't want to go online with this system. I have dedicated to read all of my PDF files only.

    I have 4 computers, including 2 run on Windows XP with Service Pack 3. I have spent these systems to the task to read all of my PDF files which I've collected from my recent academic career. I want to use the desktop system is an old Dell Optiplex GX240 with Acrobat Reader 4.0. The other Windows XP System I have is an old HP laptop with Adobe Reader 8.1.4 installed. I want to update both systems to the latest version which is available for Windows XP w/SP3 installed. Then, because I don't want these online system, it would be possible for me to get a copy of the Adobe Reader software I need on a CD-ROM? -DeWitt Ken, a veteran of the 68-year-Young Viet Nam and recent College graduate... Summa Cum Laude.

    You can use a computer online to download the full Setup offline reader

    http://get.Adobe.com/reader/Enterprise/

  • Problem to find the Position of the cursor by using Java Script for an input TextField

    Hello

    I have a problem to find the position of the cursor in a field inputText component.

    The following code of java script to achieve. The same functionality works fine if I run in a simple html page. But when it is used the same javascript inside the jsff does not the position of the cursor.
    var adfComponent = AdfPage.PAGE.findComponentByAbsoluteId("r1:1:it3");
    var adfComponentClientId = adfComponent.getClientId();
    var div = document.getElementById(adfComponentClientId + '::content');
    div.focus();
    var docSelectionRange = document.selection.createRange();
    
    docSelectionRange.moveStart ('character', -div.value.length);
    
    var iCaretPos = docSelectionRange.text.length;
    
    alert("iCaretPos --> "+iCaretPos);  ---> This statement always returning '0'. Instead, i want the cursor position inside the text box.
    Please let me know what I'm missing.

    For your reference, sending the sample page html that works fine with the same kind of code.
    <html>
     
     <body style="font-family: tahoma; font-size: 8pt;">
     
      <script language="JavaScript">
     
       /*
       **  Returns the caret (cursor) position of the specified text field.
       **  Return value range is 0-oField.length.
       */
       function doGetCaretPosition (oField) {
     
         var iCaretPos = 0;
              alert(oField);
         if (document.selection) { 
     
           // Set focus on the element
           oField.focus ();
     
           // To get cursor position, get empty selection range
           var oSel = document.selection.createRange ();
     
           // Move selection start to 0 position
           oSel.moveStart ('character', -oField.value.length);
     
           // The caret position is selection length
           iCaretPos = oSel.text.length;
         }
     
         // Firefox support
         else if (oField.selectionStart || oField.selectionStart == '0')
           iCaretPos = oField.selectionStart;
     
         // Return results
         return (iCaretPos);
       } 
      
     
     
      </script>
     
      <form name="blah">
     
       Text Field: <input type="text" name="nameEdit" value="">
       <input type="button" value="Get Caret" onClick="document.getElementById('where').value=doGetCaretPosition (document.forms[0].elements[0]);">
    <input id="where">
      
     
      </form>
     
     </body>
     
    </html>
    Thank you and best regards,
    Kiran kristelle

    Published by: Kiran kristelle on February 6, 2012 12:00

    ... had the chance to look at the source code of the sample. ADF Faces renders text as HTMLTextArea fields when the value of the rows property. The JavaScript code used in the example of client works differently for FF and IE if the input is a text box. This could be a problem in IE or just used JavaScript code. The rows back to a single line (remove) property makes the text as HTML input feldworking with the JavaScript for IE and FF.

    Frank

  • the analog inputs with digital edge trigger

    I am currently triggering a readout with a digital trigger using a 0 - 5v as the digital source encoder.  I am running LV 8.2.1 DAQmx 9.0 and a PCI-6259.  I use a VI I wrote and which is very similar to 'Acq & chart voltage-Ext Clk.vi', and using the one-pulse encoder connected to PFI8 as the clock source for the sample clock vi.  The only major difference is using the channel of the Z-trigger as a software reset inside the While loop with the DAQmx reading.  Currently, the sample clock doesn't allow that either read the lower edge or an increase of PFI8, so I get a sample by one-pulse.

    I need to double the rate of analog playback for a given tree rpm and encode them, so I need to read on the fronts and edges of the one-pulse encoder.  The sample clock can be reconfigured for the detection of changes and still read the PFI8 port to increase and decrease as inputs of physical channel, or do I have to configure detection of modification of the task/digital input for a single line and use the "ChangeDetectionEvent" as the source for the sample clock HAVE? Detection of Timing/change DAQmx can still use the signal in PFI8, or should I use DI ports, and which ports are DI should I use?

    Thanks in advance!

    In fact P0.8 is.  I was looking at the pinout for the 6251, no 6259.  Sorry about that.

  • Output TTL triggers analog input with PCI-6251

    Hello, I'm new to LabVIEW and have a question that I hope I can get a response on this forum.  I am currently using a PCI-6251 DAQ card with a block of connection BNC-2120.  I would like raise an event on an input, for example a sine wave, which is connected to AI0 analog.  Then I would send a TTL pulse train via the digital output.  What I'm describing can be better understood by the images of this link:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/3017

    In the tutorial page linked above, they do mention the card PCI-6251, but when I read the specs and compared, 6251 also has analog and digital Board, trigger functions, as well as digital I / Os... so I think he should be able to do what I want it to do.  Can anyone confirm this?  If anyone could help me by providing a VI that could do what I ask, just to help me get started, would be greatly appreciated.  Thank you!

    Hello!

    Please post on the Forums OR! My suggestion would be to use build it digital Pulse - Retriggerable.vi found in the Finder for example of OR. Open LabVIEW, go to help > find examples > input/output equipment > DAmx > generating digital pulses > generate digital Pulse-redeclenchables. Change the type of trigger for this departure vi > Analog edge and make the source one line APFI (pin 20 of your card is APFI0). This will generate a pulse based on an edge similar to a level that you specify.

    I hope this helps!

  • Read the counter timeout in synchronized to count-analog input


    Ciao, Giovanni.

    The two tasks are run in parallel so there is no guarantee which task starts first.  I suspect that when you are away from the counter samples, it is because the task of analog input before starting the task of counter.  In this case, the task of counter would be ready to accept examples of clock and may be missing some edges of the clock at the time wherever he is started.

    One way to solve the problem would be to use the wires of the error in order to ensure the time started the task of counter in front of the task of analog input.  You can also use a sequence structure to do that.

    The counter is sampled on each edge of the sample clock HAVE no matter what you set the 'rate' of entry to the. When you use an "external" clock (external to the task that is), the driver uses just the entry rate to set some default parameters (size of buffer for example).

    If you have any questions, feel free to ask!

    Best regards

  • reading of the analog inputs with RPC

    Hello

    Because LabVIEW can not handle this (in VI; the value that you have saved the excel file has not been the same, that I saw during the measurement...) This confused me for a long time ), I want to write a C++ program (IDE: Dev - C++) which can read & record 2 analog inputs of the NI USB-6009 box. For this, I looked for an example of National Instruments and I found a little. But my problem is that I can't even use any example, because it has always held a mistake, after that I have compiled and started.

    The error once the task has been created and has the :-200220 error number with the description "device identifier is invalid. But I do think that its invalid, because it's the xP example

    I must say that I am new in programming C++, which means I could have a rookie mistake. And I couldn't find documentation or something for the NOR-DAQmx library.

    Someone has similar problems with DAQmx and C++ and know how to fix? I don't really know what I can do now without a working example or documentations...

    Hi Mario

    It's the same thing. You didn't just save all of the data:

    Please take a look at my comments in the attached VI.

    Christian

  • Using the DAQ USB-6009 meter and an analog input voltage at the same time.

    Hello

    Currently, I'm reading the two channels of voltage with the USB-6009. It happens that one of the channels is the output of a digital coder, and it would be much easier to use it directly to the PFIO entry that is defined as a counter. The problem I am facing right now, it's that I can't use the DAQ Assistant to use the analog voltage to a channel and the digital channel counter at the same time. Once I put the DAQ Assistant to read the input from analogue voltage, I won't be able to add analog inputs. And as I put the DAQ Assistant to use the PFIO as a counter, I can add more entries to read analog voltage is.

    I wonder if it is possible to solve this problem using the lower level data blocks? Another solution would be to read two channels in analog input voltage and that the use of Matlab to process data resulting from it, since I was not able to do the counting to work simultaneously with the acquisition in Labview to impulses.

    Hope you guys can help out me.

    Thanks in advance.

    Using a simple wizard of DAQ is incorrect. You need one to acquire analog inputs and one for the meter.

Maybe you are looking for

  • Satellite L50 - B - 1 K 7 - switch graphics Intel because AMD

    Hello world I have Toshiba Satellite L50 - B - 1 K 7 (PSKTCE) model laptop. When he has to switch from the Intel AMD graphic it turns off just without any warning. I installed the latest drivers for two graphics cards and also checked in the Device M

  • Aspire S3, failing 20 GB SSD?

    Aspire S3 gave me with what appeared to be a failed 500 GB hard drive. I replaced it with a Seagate 320 GB hard drive. Then reloaded Windows 7 and all the drivers including technology Intel Rapid Storage Technology. I have run chkdsk on the 320 GB ha

  • Upgrade ram dv6-6166 in pairs?

    To increase the ram of 4 GB to 8 GB can I pop just another 4 GB in (the right type, clearly!) or do I have to get a matching pair of 4 GB ram modules? Thanks a lot for your help and advice.

  • Set the following fields in 'read only' to take data from the first occurrence?

    Hoping that this can be easily done without the need for scripting.I'm working on creating a form of proposal. There are a few areas where I would like the first instance of an editable field, but the rest would be locked so that they are even taken

  • Problem installing Windows on VMWare Workstation 11 10

    Good eveningI'm a french user on VMWare.I have a problem when I try to install Windows on VMWare Workstation 11 10, I'm stuck here:I tried several times to reinstall.I use this iso standard: Windows10_TechnicalPreview_x64_FR - FR_9926.isoCan you help