Synchronization of analog and digital output with the external sample clock

Hello

First of all sorry for my English, I will try to explain what I want to do.

I want my PCIe-6321 to send two custom signals (modification sawtooths) on a mirror controller. I would also like to generate output with my card at the beginning of each tooth of saw. Everything must be synchronized with an external k-clock signal of 100 kHz. The idea is that whenever the PCI receives a trigger to external clock, it sends two analog output voltages and when he received 1024 clock ticks it will also send a pic of triggering TTL. What I do is first prepare the map and after that in a loop sending and modifing the output values of the two signals and at the same time send a digital signal Boolean in each arch, so when's done it 1024 iterations of the loop I send an event to the digital port. Attached you can see.

The problem is that I don't know how to synchronize both. Can I use the sample clock just to the analog output? I can use sample for the two outputs clock, or do I need to use the output of the meter? If don't know how to use it here.

If I do nothing else bad/wrong, I would be grateful for feedback.

Thanks in advance,
Pablo

I don't know how but I find the solution. I'm generating more than a positive value (as I was triggered maybe very fast the oscilloscope has been absent there). If I put the sample clock of digital output to use the sampling/ao/Dev1 clock that it doesn't, but if I put to use the same source as the OD (terminal where my external clock is connected), but the trigger to start the DO to be Dev1/ao/StartTrigger this works. I don't really know why, but it does.

Thank you for your patience and your help. I put here the final code.

Tags: NI Hardware

Similar Questions

  • Measurement error of the County of edge by using the external sample clock

    Hello

    I'm trying to measure the number of edges (rising) on a square wave at 5 kHz with a generator function on a device of the NI PCIe-6363. I configured a channel of County of front edge of counter at the entrance of the PFI8 device. I use an external sample clock that is provided by the output of the meter of a NI USB-6211 housing channel. If I acquire for 10secs then ideally I would expect to see a total of 50000 edges measured on the meter inlet channel. However, my reading is anywhere between 49900 and 50000.

    When I use the internal clock of time base to measure the edges, the measure is accurate and almost always exactly 50000. I understand that when you use the external sample clock, the precision of the measurements is subject to noise level of the clock signal. However, I checked the clock signal is stable and not very noisy. Any reason why there is an error of measurement and how tolerance should I expect when using an external sample clock compared to when you use the internal time base clock?

    Also, what is best clock Frequency (with respect to the frequency of the input signal) when using an external clock?

    Thank you

    Noblet

    Hi all

    Thanks for all your sugggestions. I was using an input signal with a function generator which had a range of 8V. It turns out that the reduction of the amplitude to 5V solves the problem. I was able to get accurate numbers with the 6211 external clock.

    Thank you

    Noblet

  • Do not connect ANALOG and digital grounds when the annotation to the front at the UB

    I'm finding randomly more often when I annotate with impatience to UB analogous and digital patterns do not connect.  In addition some power to the IC pin connections are unable to be connected in UB.

    Connect to the digital terrestrial analog ground is checked in my properties of Ms.

    Is there a reason for this?

    Thank you.

    Tien Pham offers this solution that worked:

    I saw the ground issue in the file you sent and you can fix it by replacing
    the digital ground with the one from V12.  On the Spreadsheet View, click
    on the "Components" tab, select all the Dgnd symbols, next click the
    replace icon on the Spreadsheet to replace all symbols at the same time.
    
  • Fortunately the cRIO merger two time real screws: analog and digital output

    Howdy,

    I need help with a cRIO code.  The purpose of the code is to acquire an analog input from the NI 9234 c series module and be able to send a "signal of pulse" digital camera (first low for some time, t1, then high for some time, t2) from a NI9401.  Separately, I wrote the code to perform both tasks.  However, when I add the code of RT digital output pulse pulses to analog input RT code, the DMA FIFO overflows because of the way that my digital pulse output code works.  Currently, there are two reasons which overflows of the FIFO:

    1. The digital output code is pending for a while loop (pending "Send Pulse" become a true), the loop I can't empty the buffer FIFO
    2. The FIFO is not enough, quickly emptied depending on how long the pulse (t1 and t2) times are.  The way I keep the pin high or low for a defined period of time is by issuing a sleep command, which blocks the loop I empty the FIFO.  (Is there a "best" way to sleep?)

    I have attached photos of my codes FPGA and RT.  Please give me a suggestion on how to marry my two loops of RT for the use of happy resources!  Thank you.

    I found a quick way to solve this problem.  I moved the timing of the Digital pulse on the FPGA.  So whenever I have a Boolean value, the FPGA generates a waveform with the settings I put (a pulse in my case).  This works because the FPGA loops run in parallel, I think.  That's why, when I run a pending order in the loop of FPGA digital output, it does not prevent the FPGA of analog input loop to run.  I have attached a picture of the code.

  • Looking for USB DAQ for AO using the external sample clock

    Hi all

    I'm looking for a cheap solution for the acquisition of data to select the AO using an external digital signal as sample clock, and I just realized that the USB-6001 is not a good candidate. Please someone remind the cheapest USB version for this task? There no need for high sampling rate. Thank you.

    Define cheap and low sampling rate. You've already been told on the 6211.

  • analog and digital data synchronization

    Hi all

    I would like to help with what I seek to accomplish, if you don't mind much.

    I'm trying to synchronize the acquisition of analog and digital modes using a common trigger that launches both types of data collection at the same time. What I've done so far, is wasting his time trying different combinations to gather examples of LabVIEW 2011 on the synchronization of data - namely the 'Multi-multifunction-Synch AI lu Dig Chan.vi' and 'Multi-Device Synch-Analog Input-Finite Acq-Analog Start.vi.

    I tried to combine the two, because one contains digital and analog, the other contains the trigger for multiple tasks.

    I guess I should place the trigger (either digital or analog-eventually I will want to choose) then call the "Get Terminal name with device Prefix.vi. But from there I'm not sure wheter to connect the name of the terminal of the sample clock digital channel or a digital leading edge of the digital chain trigger.

    Also, the way it is wired now I get errors at the local terminal name, so I don't know exactly where this terminal must come from.

    I try my best, I could use a little help, I have attached my attempt with the examples that I speak to you.

    Thank you.

    Hi beefcake.

    The CtrInternalOutput internal output line is used as sample for your digital output sample clock source clock. If you change the settings for your CO Pulse Time is Dev1 and your digital output is Dev2, you will notice that the name of the product terminal would give Dev2/CtrInternalOutput. So what you get here, it's as well as the digital output device sees his sample clock, instead of the clock itself.

    If you just want to use a digital/analog input as your trigger, you should do something more as in the example above. Do you use multiple devices, or are all your lines on the same device? This example is more complicated because it is synchronization of signals on several devices.

    Looking at how this VI is wired, you can see that the digital signal triggers the analog signal. You want the analogue signal must be started first, so that when the digital signal triggers the analog task is already running and can trigger immediately. If the digital task started first, it can trigger until the similar task had started, and they do not exactly trigger at the same time.

    I hope that clarifies things. Kind regards

  • Producer consumer with inputs and outputs analog and digital

    Hello world

    I'm working on a program of control system for some practical test work. Currently, I am working on the data acquisition of the Labview program component. My architecture is consumer-product loops with a what. My system will have analog inputs, outputs, analog inputs and digital outputs. It is not a criticism of time sytem, but I wish that all the acquisition of data to synchronize. I enclose my program because it is at the moment. I have difficulties to get all the data in the since that I have two types of data. In addition, I don't know if I have synced the four sequences of read/write correctly. I would be very happy if someone could take a look at my program and give me some advice. Thanks in advance.


  • How to trigger and outputs analog and digital Outout tasks begins on a counter to start?

    Hello

    I'm trying to synchronize the start of a task outputs analog, a task of digital output and a task of counter. I want to start the counter to serve the master trigger and analog and digital tasks to synchronize his departure.

    I guess I need something like:

    analogOutputTask.Triggers.StartTrigger.ConfigureDigitalEdgeTrigger ("?", DigitalEdgeStartTriggerEdge.Rising);

    digitalOutputTask.Triggers.StartTrigger.ConfigureDigitalEdgeTrigger ("?", DigitalEdgeStartTriggerEdge.Rising);

    analogOutputTask.Start (); Slave 1

    digitalOutputTask.Start (); slave 2

    () counterTask.Start; n / / master

    Where? is a string specifying a command source for the beginning of the task of the meter. However, I can't find what this string. Any suggestions?

    Thank you!

    -Jon

    Just FYI, the solution to this problem as well as some other ones is encapsulated in a short example .NET, I created. It is on the Web site of EITHER:

    http://decibel.NI.com/content/docs/doc-15500

    This project shows how to synchronize all your analogue/digital outputs through tasks and forums in terms of synchronizing Calendar and start clock.

    -Jon

  • Is it possible to output a string and digital front without the border around it?

    I know that I can change the border around a string or a digital output to the screen using modern or classic, but is possible to output and the numeric values to the front channels without the border around it? This is particularly useful for panels to front I want to print.

    Thank you

    Chuck

    You are to halfway it using the conventional versions. The next step is to get out of your paint tool and paint the color of the transparent border.

    Ben

  • I have Acrobat Pro on my computer and I work with the drawing that have been digitized in PDF format. The scanners are not aligned or place because of the poor scanning process. Anyway is to align the document even if it requires me to crop or lose

    I have Acrobat Pro on my computer and I work with the drawing that have been digitized in PDF format. The scanners are not aligned or place because of the poor scanning process. Is there anyway to align the document even if it requires me to crop or lose some on the edges?

    Hi brad.

    Yes. You can use the analysis tools to straighten and crop your document. Here is a link to a new tutorial. The key to activate the sliding options recovery is to choose the option of the camera Image in the drop to Enhance, and gives you tools to set the correct page for smoothing areas.

    fundamental https://helpx.adobe.com/Acrobat/How-to/scan-Paper-documents-Searchable-PDF.html?Set=Acroba--principes t - create a pdf file

    Donna.

  • NEITHER USB-6343 analog and digital grounds

    In the manual for the NI USB-6343, it is said that the mass input/output, analog and digital terrestrial are related, but by a small sign. For my application, I am attaching all 3 these grounds to exit the box (I'm tie all areas with physical threads). It is perhaps a silly question, but it's OK to do, correct?

    This should be OK unless there are large currents flowing on ground conductors.  If you have important currents in the ground, you have other problems that must be resolved before you connect the DAQ hardware.

    Lynn

  • How to configure the digital output of the pci terjeta 6023E in LabVIEW 8.5?

    Hi, I have a card PCI-6023E and LabVIEW 8.5 and I need is to configure the digital output on the card, but did not.
    My idea is to get a port of digital data on the map and control by a pwm small dc motor.
    I wonder what are the modules with which you can do.

    Hi skudero,

    Probably the web page tracking and the attached example will work.

    PWM in software timing using a digital output line

    Concerning

    Charley - NIB - SR 1368189

  • create 4 pulse digital output at the base of the ttl input signal

    Hello

    I am a beginner in Labview and would welcome advice on how to solve the following problem.

    I'm setting up a train of pulses TTL and would like to send in Labview as input.  Each falling edge detected on the input signal, I would like to as Labview to generate 4 pulse digital output.  For each output pulse, I would like to be able to specify the period and duration.       The image should illustrate more clearly, with the figures showing the expected scale.

    System: NI PCI-6733 data acquisition card, Labview 8.5

    My daq card has 2 timers 24-bit and 8 e / s digital, but I don't know what the best approach is to create between the pulse output of 4 to 8 of this precision... should it be handled at the hardware or software level?  And how would I go about it

    Thank you

    -Sidney

    Hi noli.

    I found the problem, in fact PCI-6733 support only avoiding the digital output. The timing of software is limited to 1 kHz in case better.

    I'm sorry, but this function is not possible with a PCI-6733.

    Concerning

  • Started at Mo and not charging with the charger connected. Charger works. Keyboard not workin except power button / stop. Restarted using ex in car without success. SW

    Started MacBook and not charging with the charger connected. Charger works. Keyboard does not not except the power button / stop. Restarted ex drive no available help hoping that it was a matter of SW. SW and the operating system works very well. Read some info online. Tried to reset the SMC. Now, the MacBook does not start. Can U help me please. Thanks in advance.

    MacBook, 2010, Mac OS X 10.6.8

    Hi Veronica Steward,.

    I understand that you have turned into a series of questions about your MacBook and want help getting the computer to turn on. Here is an article that can help you through the steps to fix this problem:

    If your Mac will not turn on - Apple Support

    Let us know how it goes and thanks for coming to Apple Support communities.

    See you soon.

  • I have an imac 27 "... on power there is no signal to startap, usb ports are not working and its deadlock with the logo of the Apple with the circle of rotation... Help, please

    I have an imac 27 "... on power there is no signal to startap, usb ports are not working and its deadlock with the logo of the Apple with the circle of rotation... Help, please

    Wake the computer to your Apple store or Apple authorized service for the service provider. He probably suffered a hardware failure.

Maybe you are looking for