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

Tags: NI Software

Similar Questions

  • Fees charged to low project task, how to finance and low Bill task?

    Hello guys,.

    Can someone help me on this issue,

    Version:-11i

    We have the stock transaction costs and WIP collected against low project task (ex:-1.1), now we want to bill, based on Work.We need core funding to generate the invoice.

    How can I finance the project for a task below?
    Invoice can be generated at the project level or high-level task, how can I extract all lines of spending for lower task and generate the invoice?

    Kind regards
    Smail

    Hi Sissi

    Spending is still the task of the lowest and billing is the task of top of the page or the project level

    You can create work/job or event billing also funds at the top of the task page, when you suffer the lowest costs to the task, during invoice generation system tire are the costs which are eligible and the process and creates one invoice

    hope this helps you

    Thank you
    Krishna

  • How to view and monitor running tasks?

    I need to be able to monitor a running task, and it does not work:

    While ($clntask.Info.State - eq 'running' - or $clntask.Info.State - eq "pending")

    {

    $clntask = get - see $clntask. MoRef

    Write-Host "on hold".

    }

    I'll assume that you used a SDK method to start the task.

    I'll take the method of ExitMaintenanceMode_Task for example.

    *) the SDK .. ._Task methods return a MoRef (a kind of pointer) on a Task object.

    *) to get the task of object properties use us the cmdlet Get-view to get a copy of the actual object of the task

    *) we check the property which gives the status of the task. The State can be: error in waiting, running or success.

    *) If the status is "running" or "pending" wait US 2 seconds and get a new copy of the Task object. The VI will not update the properties of our copy of the Task object

    *) Where the State is not 'running' or 'pending' out us the while loop

    
    ......
    $taskMoRef = $esx.ExitMaintenanceMode_Task(0)
    
    $task = Get-View $taskMoRef
    while ($task.Info.State -eq "running" -or $task.Info.State -eq "queued") {
      sleep 2
      $task = Get-View $taskMoRef
    }
    

    Just saw your response. My comments are still valid.

  • How to enable and disable the task by sign?

    Hi guys,.

    I finished the service IID_ISTARTUPSHUTDOWN to call the task start durning...

    My quest is, I need to start the task, when the Panel is turned on.

    Please advice how to solve the above problem.

    Reference sdksamples/tableattributes.

  • FPGA output analog fastest? (RIO 9641)

    Hello world!

    I read only analog output have about 38 tics. clock 40 MHz (RIO 9641)
    My RIO gives me tics 107 = 112 - 5 analog outputs for the 1 iteration. If DAC cycle... The entire cycle takes (112 * 160 * 25th-9) for DAC 107 * 160 * 25th-9 = 428e-3 s always takes DAC, and I need more quickly.
    How to set up outputs analog faster or rebuild program?

    I need the fastest analog output, is it possible?

    Thanks for the help!

    Hi togoto,.

    Please let me know if I'm struggling to understand what you're trying to do, but the fastest, the analog output of the 9641 can update is 120 ticks by update.  Which is based on the specification of the material on page 44 of the User Guide and the restriction that you touch.  Therefore, I don't think you'll be able to get it down to 40 ticks.

  • regeneration of the outputs analog

    Hello

    I am writing a program to fight mirrors laser. I use the example: output - analog continuous regeneration No. When I put a counter on since the while loop itteration, I can see I runs very fast for the first 10 hours, and then it slows down to normal pase... Is it possible to make the VI that it doen'st run so fast in the first round? Looks like that it is buffering a whole bunch of data... But I want to pause from time to time the exit...

    Best regards

    Thijs


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

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


  • analog audio output and digital optical

    I just bought a 500-214 with IDT High Def Audio CODEC Pavilion / DTS Sound +.

    Is it possible to get opitcal of audio output digital and analog (speakers/headphones) at the same time?  Stereo amp needs access both to the multizone/source function.  I can manually choose one or the other before the reading - it is clumsy that when audio of of active switching devices will turn off, but a passage to not always light up.  But I really need both active simultaneously for amp work properly.  I also found jack rear speaker to be more stubborn while headphones jack front of switch.

    Hi zombi1,

    Welcome to the HP Forums!

    I did some research on whether or not we can use the analog or digital audio output at the same time, and it is unfortunately not possible.

    Thanks for posting and happy Earth Day!

  • How to write constantly to analog output and read from analog inputs

    Hi all -

    I had a question about writing continuously to analog output reading simultaneously an analog input.

    It's my first time to post a message to the community, so please let me know if I made mistakes.

    I use Labview 2011 with a NEITHER-DAQ USB 6215.

    I'm looking to generate a waveform and write it continuously in an analog output. It is then connected to an entry on the acquisition of data, where I am trying to sample the analog signal. (I realize, there is a system of trivial, but I'm hoping to build on it once I have run).

    The task of reading from the analog input works fine, as I tested it in several other cases. I have a problem writing to the analog output.

    For this task, I tried to follow the "Gen Cont Wfm Clck Int' VI to generate the wave form and start the task. I then try to write to the output of the analog timed loop. However, it does not seem to transmit a signal and doesn't give me any errors.

    I have attached the VI but also a screenshot.

    Please let me know if anyone has any ideas. I would really appreciate the help!

    Thank you

    Peter Borgstrom

    We will review your tasks one at a time.  First of all, the task of generation/Analog output Waveform.  Generate you a waveform (I'm unsure of your VI if it is a fixed waveform or not) and send it to a defined output function to produce a waveform continuously, using N-channel and samples of N (where you set not these previously).  You should not put this inside has timed loop, as the DAQ hardware has its own clock - if you simply put it in a while loop (with a stop to break out of the loop), the loop will call the function for the first points of N, wait until all N have been taken out, then call it again to another N points (up to what you press Stop).

    Now, suppose that you have the output connected to a load voltage (say a decent resistance).  You can wire the input terminals of your A/D converter through the same load and set up a similar analog input loop, running in parallel (i.e. in its own independent of the OD loop, while loop).  You pourriez start together (with, say, a merged error since the initialization code line loops HAVE and AO become lines of error in "loops of sampling" described above), but you might want to delay loop (a little) the AI so that the OD has a chance to set the voltage before the bed.

    I hope this helps.

    BS

  • 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

  • How can I create a single delayed output (analog voltage) of a Trigger (analog voltage) input reference pulse?

    I am working with a combustion chamber and using a system of data acquisition (with the hardware OR SCB - 68) to read the pressure in the cylinder (such as analog voltage). I'm trying a pulse delayed, 1 millisecond to 5 volts of output once the pressure in the cylinder is high above 5 bar (which corresponds to an analogue voltage of 0.25 V). I would also like to record 30 ms samples before the trigger and 220 ms samples after the outbreak. The following image shows visually what I'm talking about.

    I created a LabVIEW VI (which is attached), but I keep running into 2 issues:

    1. When I run with samples finished after a period of time, I get error-200281which I don't quite understand.

    2. Using the Express VI 'Out of time' to keep time for the pulse I can not get a resolution of 1 millisecond, the pulse is not generated when I put the window between 0.003 and 0.004 seconds for high pulse (i.e. the resolution of 'Elapsed Time' seems to be too coarse).

    I'm a beginner to LabVIEW sorry if my questions are trivial or my VI makes no sense, but I was stuck on this during more than a week. Any help would be greatly appreciated!

    Thank you

    Morgen

    This isn't a good way to trigger a pulse.
    Use a trigger DAQmx to send the pulse when your acquired signal exceeds 250 mV you specified.

    See this for DAQmx trigger:

    http://www.NI.com/white-paper/2835/en/#toc4

  • Analog acquisition and digital simultaneous DAQmx

    Hi all

    I use the USB-6212 acquisition card to acquire analog and digital inputs. However, I encountered some problems that I don't know how to solve.

    All channels (analog and digital input) is independent of one another, but should be acquired at the same time (using the same clock, I think), but I'm not managing to achieve; In addition, I can not put a task so that the digital acquisition is made by "continuous sample" - the error says it is not supported, but I saw this configuration in other examples in this forum.

    The only way to get a digital waveform must keep pooling the entry? And, therefore, also in common analog input? Is it not this costly approach from the point of view resources?

    Best regards

    The decrease of performance will be determined by the speed of your computer and your USB hub.

    I think that to get the hardware timing of digital I/o on a USB device, you're going to have to step up to a card in the X series as the 6341, but I'm not sure about this.  You can find this specification under the specifications of each product tab.  Looking for 'Material' under DIO > Timing.

  • 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

  • Using Labview and PXI-4461, how can I AO0 output Signal Square and AO1 output waveform

    I am using PXI-4461 and Labview, boredom, generating 2 signals simultaneously.

    How can I get AO0 out square and exit AO1 SignWave?

    Help, please. (The example Code would be nice)

    Thank you.

    Create two signals and make a table with them.  Use DAQmx Create Virtual Channel to create two channels.  First waveform will be sent to the first string, second waveform on the second channel.

    I understand not all as calendar, clock frequency, amplitude, trigger and other parameters.  You can add these things.  This is just a basic example.

Maybe you are looking for

  • How can I configure Thunderbird to several email addresses

    I'm on Eudora 7 to manage 6 on a Windows XP SP3 computer email accounts. I want to install Thunderbird on the same machine and import e-mail addresses. I have Setup Eudora to store the data files for each e-mail address in a different data directory.

  • IPhone SE cannot receive calls

    My Iphone SE just bought 2 days ago may not receive most of the calls, I send back to the city of mac, they replace a new iphone for me but to keep problem. I then contacted my provider, changed my sim card, but the same problem to continue. Any solu

  • Cannot download el capitan on a brand new macbook pro

    So I just bought my first book of 2015 mac pro that yosemite has been installed. I pulled the AppStore app and sailed to el capitan and clicked on update hoping that I could get the upgrade done in 2-3 hours with my 100mbit connection... The thing is

  • X 64 on x 86

    I got a new computer with windows 7 and tried to install some new games, but the majority of them does not work saying that the version on my computer is not compatible with the version of the game smthng, do to the systems x 64 and x 86, how can I s

  • Get rid of the current wireless network connection so that I can set up a new connection using the same IP address.

    Here's my problem: I got a new computer and a wireless network connection has been set up and I could get on the internet. My daughter then wanted to try her new computer and somehow his computer is defined as the network and I can no longer connect