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

Similar Messages

  • I am using Outlook 2010. Changes made to my iPhone 4 or my iPad2 appear on each other (tasks, calendar, Contacts) but not in Outlook. Why is this?

    I am using Outlook 2010. Changes made to my iPhone 4 or my iPad2 appear on each other (tasks, calendar, Contacts) but not in Outlook. Why is this?
    Also, changes made in Outlook do not appear on Phone or IpAd

    I'm guessing outlook doesn't support iCloud or vice versa or the settings for iCloud in Outlook are turned off. Just a guess though I don't use Microsoft products if I can help it.

  • Is is possible to stream a movie through my Macbook pro 15inch onto a TV through my HDMI-DVI chord while also using my computer for other tasks and minimizing my streaming show.

    Is is possible to stream a movie through my macbook pro 15in onto a TV through my HDMI-DVI chord while also using my computer for other tasks and minimizing my streaming show.

    To enable a second display over AirPlay, you first need to be connected to the same network as your Apple TV. Next, open System Preferences > Displays, and select your Apple TV from the “AirPlay Display” drop-down menu.
    Once you do this, your display may flash as the second display connection is acquired, and the Apple TV takes over as the second display. If the displays are mirrored, then you can correct this by opening the “Arrangement” tab in System Preferences > Displays, and ensuring that the “Mirror Displays” checkbox is unchecked.
    In this same “Arrangement” tab, you can move the displays around in the pane to ensure that they're positioned correctly, relative to your physical space (usually side-by-side, or top-down). The primary display here is denoted here by the Menu bar on the display. The arrangement helps with being able to drag windows from one display to the next: if your secondary display is arranged to be to the right of your primary one, for example, you can drag things to it through the right side of your primarcy screen.

  • Synchronize multiple tasks and multiple boards with X-series USB devices

    Hi all,
    I am trying to figure out how to synchronize multiple tasks across multiple X-series USB boards (6353, to be precise). 
    I have to run a digital output task AND an analog output task on each board.  All four tasks (the DO and AO on Board 1, and the DO and AO on Board 2) must be synchronized.
    I know how to synchronize multiple tasks on a single board.  I've been doing that for years.  That works fine.
    I know how to synchronize a single task across multiple boards (say, a DO task across 2 different boards).  That works fine too.
    For the life of me, I can't figure out how to marry the two.  Everything I've seen, all of the examples, etc. assume you want to do one or the other, or that you have a RTSI cable available.  Are there any examples out there that synchronize multiple tasks across multiple USB boards?
    I tried exporting the AO clock signal from my master AO task to PFI12, and then using the signal on PFI12 to as the clock source for the remaining tasks (Dev1/PFI12 physically connected to Dev2/PFI12, and Dev1/PFI12 set as the clock source for Dev1's DO task). 
    I have also tried setting Dev1/aoSampClock as the source for Dev1's DO task.
    Under both configurations, I invariably get error -89137 when I try to start the tasks -- required resources (PFI12) in use by Dev1/do/SampClock.  I understand what the error is telling me.  What I don't understand is why I'm receiving this error when I don't have any of my tasks configured to use the DO Sample Clock.  It seems as though it is not possible to export a clock signal to a PFI line and simultaneously run a clocked digital task, even if the clock source for that task is specified as something other than the DO Sample Clock?
    So, my question is, is it possible to do what I want to do?  And if so, how do I do it?  How do I configure a common clock source across multiple tasks running on multiple USB boards?
    Hoping for insight from those wiser than I...
    Diane
    Solved!
    Go to Solution.

    Update:  I decided to try using a counter as the source clock.  One cannot use counter 0 to accomplish this, but it does appear to work with counter 1.
    I'll take what I can get.  Fortunately I have two spare counters.  (Yes, I'm running counter tasks too -- 6 of them -- but they don't have to be synchronized.)
    I have to add both digital and analog input tasks as well -- all synchronous with each other, but not with the output tasks since they'll be running at different sample rates.  I hope I'm able to use a counter as the source clock for those as well.
    My head aches.

  • How to use one commandButton to execute two tasks in JSF

    I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
    The code of the inputText:
    <h:inputText value="#{bindings.ProjectNumber.inputValue}"
    id="pn"
    size="10"
    required="#{bindings.ProjectNumber.mandatory}">
    The code of commandButton:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}"/>
    The managed bean is �findInspector�. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}">
    <h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
    </h:commandButton>
    But it was not work
    Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two tasks in JSF.
    Thank you
    Waheed

    Just dopublic void execute() {
        anotherAction(inputValue);
    I guess those articles might be interesting about passing params and the usage of inputHidden and also about using datatables:
    http://balusc.xs4all.nl/srv/dev-jep-com.html
    http://balusc.xs4all.nl/srv/dev-jep-dat.html

  • How to use one commandButton  to execute two task in JSF

    I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
    The code of the inputText:
    <h:inputText value="#{bindings.ProjectNumber.inputValue}"
    id="pn"
    size="10"
    required="#{bindings.ProjectNumber.mandatory}">
    The code of commandButton:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}"/>
    The managed bean is “findInspector”. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}">
    <h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
    </h:commandButton>
    But it was not work
    Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two task in JSF.
    Thank you
    Waheed

    Yes I did
    <managed-bean>
    <description>The bean for get project No</description>
    <managed-bean-name>projectBean</managed-bean-name>
    <managed-bean-class>
    mcscm.model.ProjectBean
    </managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bindings</property-name>
    <value>#{bindings}</value>
    </managed-property>
    </managed-bean>
    Also I changed the method in the managed bean as follows:
    public String commandButton_action() {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding vb = fctx.getApplication().createValueBinding("#{bindings}");
    DCBindingContainer dcb = (DCBindingContainer) vb.getValue(fctx);
    OperationBinding operation = (OperationBinding) dcb.get("projectNumber");
    operation.execute();
    return null;
    where projectNumber is my method in the java class of the application module "TaskInformationImpl". I made this method to be accessed from outside of ADF BC.
    I just create a sample code for projectNumber method for testing only as:
    public void projectNumber (String data){
    System.out.print(data);
    In the page Pagedef file I added this :
    <methodAction id="projectNumber"
    InstanceName="TaskInformationDataControl.dataProvider"
    DataControl="TaskInformationDataControl"
    MethodName="projectNumber" RequiresUpdateModel="true"
    Action="999" IsViewObjectMethod="false">
    <NamedData NDName="data" NDValue = "#{bindings.ProjectNumber.inputValue}" NDType="java.lang.String"/>
    After I did all of this I get a new error like:
    javax.faces.FacesException: #{projectBean.commandButton_action}: javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding cannot be cast to oracle.adf.model.OperationBinding
    Is it very difficult to do this in JDeveloper?. yes ADF BC provide me a lot of facilities, but when I want to do a specific task I face a lot of troubles

  • SQL Query using a Variable in Data Flow Task

    I have a Data Flow task that I created. THe source query is in this file "LPSreason.sql" and is stored in a shared drive such as
    \\servername\scripts\LPSreason.sql
    How can I use this .sql file as a SOURCE in my Data Flow task? I guess I can use SQL Command as Access Mode. But not sure how to do that?

    Hi Desigal59,
    You can use a Flat File Source adapter to get the query statement from the .sql file. When creating the Flat File Connection Manager, set the Row delimiter to a character that won’t be in the SQL statement such as “Vertical Bar {|}”. In this way, the Flat
    File Source outputs only one row with one column. If necessary, you can set the data type of the column from DT_STR to DT_TEXT so that the Flat File Source can handle SQL statement which has more than 8000 characters.
    After that, connect the Flat File Source to a Recordset Destination, so that we store the column to a SSIS object variable (supposing the variable name is varQuery).
    In the Control Flow, we can use one of the following two methods to pass the value of the Object type variable varQuery to a String type variable QueryStr which can be used in an OLE DB Source directly.
    Method 1: via Script Task
    Add a Script Task under the Data Flow Task and connect them.
    Add User::varQuery as ReadOnlyVariables, User::QueryStr as ReadWriteVariables
    Edit the script as follows:
    public void Main()
    // TODO: Add your code here
    System.Data.OleDb.OleDbDataAdapter da = new System.Data.OleDb.OleDbDataAdapter();
    DataTable dt = new DataTable();
    da.Fill(dt, Dts.Variables["User::varQuery"].Value);
    Dts.Variables["QueryStr2"].Value = dt.Rows[0].ItemArray[0];
    Dts.TaskResult = (int)ScriptResults.Success;
    4. Add another Data Folw Task under the Script Task, and join them. In the Data Flow Task, add an OLE DB Source, set its Data access mode to “SQL command from variable”, and select the variable User::QueryStr.
    Method 2: via Foreach Loop Container
    Add a Foreach Loop Container under the Data Flow Task, and join them.
    Set the enumerator of the Foreach Loop Container to Foreach ADO Enumerator, and select the ADO object source variable as User::varQuery.
    In the Variable Mappings tab, map the collection value of the Script Task to User::QueryStr, and Index to 0.
    Inside the Foreach Loop Container, add a Data Flow Task like step 4 in method 1.
    Regards,
    Mike Yin
    TechNet Community Support

  • How to use interface return value in workflow task

    Hi all,
    My team developed a proxy(interface) to fetch a field from web application(Non SAP) through PI. i tested that interface in SAP, its working fine. Interface is having one input, one output.
    Input - from SAP(employee number)
    Output - from webapplication (manager number).
    In my workflow, i have to use that manager number in decission task. For that i created a task, but in that task, iam unable to use the class and method name which is mentioned above. its giving an error "Interface implementation IF_WORKFLOW does not exist".
    Please guide me, how to use that interface output in my workflow.
    Regards
    Arani Bhaskar

    "Interface implementation IF_WORKFLOW does not exist".
    This error is triggered because the class which you are using in the task does not have included and implemented the interface IF_WORKFLOW , if at all you want to use any class methods in the workflow, then that class must supprot the interface IF_WORKFLOW
    what you can do is 
    1. Include the interface IF_WORKFLOW in the class that you are using to fetch the manager number,
    2. Make the method as Static Method .
    3. Just implement all the methods , I mean just double click each method of the interface, clcik on pretty printer and save it, to just implement all the methods.
    3. Do the appropriate bindings .
    And finally just execute the txn SWU_OBUF and click Shift+F1.
    this will help you to retrive the manager number intot the workflow

  • How to set task type of a task in MS Project using excel vba code.

    Hello Gurus,
    I am generating MS Project files(.mpp) files form excel data. An excel macro in the excel file will read the excel data and will generate the .mpp file. It is working fine. now i want to set the task type of all the tasks to "Fixed work" from excel
    vba code.
    How to use the property PjTaskFixedType in setting the task type??
    refer below links
    http://msdn.microsoft.com/en-us/library/office/ff861713.aspx
    http://msdn.microsoft.com/en-us/library/office/ff864157.aspx
    Can someone help me in setting task type property from excel vba.
    I have attached my sample code used to generate the mpp file. It is not the complete code but you will get an idea from it.
    Set pjApp = CreateObject("MSProject.Application")
    pjApp.FileNew
    Set newproj = pjApp.ActiveProject
    newproj.Tasks.Add (task_name)
    newproj.Tasks(mpp_row_number).Start = task_start_date
    newproj.Tasks(mpp_row_number).Finish = task_end_date
    newproj.Tasks(mpp_row_number).ResourceNames = resource_name
    pjApp.FileSaveAs mpp_file_save_path & mpp_file_name & ".mpp"
    pjApp.FileClose
    pjApp.Quit
    Any help is appreciated.

    Hi Syamku,
    A simple example that sets the task type:
    ActiveProject.Tasks(2).Type = pjFixedDuration
    ActiveProject.Tasks(3).Type = pjFixedUnits
    ActiveProject.Tasks(4).Type = pjFixedWork
    http://msdn.microsoft.com/en-us/library/office/ff860469(v=office.15).aspx
    Hope this helps

  • BPEL with human using task forms (customization in task display).

    All,
    I have deployed a BPEL with human task with task forms (customization in task display).
    For above customization Jdev automatically generates set of jsp files like Header1.jsp,Footer1.jsp,payload-body.jsp and <task name .jsp> and build an ear which includes war file.
    I have deployed ear as j2ee app using em console.
    It got deployed but when I check em console I could not see any active jsps listed.
    due to this task customizations are not displayed properly.
    but for same app in production instance, it is listing all jsp files in EM console
    Any idea where I am missing
    Thanks,
    Praveen

    I got it.
    If there are no active jsp/servlets listed means they are never invoked.
    I invoked them explicitly then they started coming in the list
    Regards,
    Praveen

  • How to synchronize Lightning tasks with icloud, yahoo or gmail tasks?

    Is there a way to synchronize the tasks created in Lightning with an online account?

    Not that I am aware of. There is no standard for tasks or their transmission. There is therefore no "point" that Lightning can contact to ask for tasks to synchronise

  • How to use expression fucntion at deadines for task in time constraints Tab

    Hi all,
    The Human Task should have a start deadline by which the Task has to be started. Or otherwise some other Task will run. I did this with a boundary Event StartDeadlineIsCriticalExeption and an offset for the start deadline at the task.
    but this is a fixed value now i want to modify that with expression function .
    Edited by: Vikramshirole29 on Sep 20, 2010 1:20 PM

    Hi
    We can use a dateTime value to set completion deadline dynamically. I guess we can do the same for start deadline also.
    I am using the dateTime(String val) inbuilt function for this.
    Regards
    Vidyadhar

  • Users as other task owners are receiving 5 emails notification for the same task

    users as other task owners  are receiving 5 emails notification for the same task in Sharepoint 2010. I have tried to add a 5 minutes delay on the other task owners workflow with no luck.any suggestions? Thanks

    The Book confuses me. I still think assignment delay and leveling resources are the same. Here is the explanation from the book for the three concepts.
    " Project offers two types of delays:
    Leveling delay. This type of delay applies to tasks; it pushes out the start date for the task and all its resource assignments. It’s meant specifically for remov-ing resource overallocations. With the Leveling Delay field, you can remove
    all leveling delays by choosing Resource➝Level➝Clear Leveling.
    Assignment delay. This type of delay applies to a single assignment within a task. Suppose you have a security consultant coming in to help lock down your site. However, your employees have prep work to do before the consultant can get started.
    You can assign everyone to the same “Try hacking into office” task but delay the consultant’s assignment by 5 days. "
    After a couple of pages;
    " Leveling Resources
    In Project 2010, you can level the entire project, tasks you select, or a single resource. By leveling several tasks that are all vying for the resource, or alternatively, leveling only the most in-demand resources, you can focus on the problematic
    portions of your project. Project automatically chooses popular settings in the Resource Level-ing dialog box. In most situations, you might as well run Resource Leveling with these settings. You can undo the leveling if you don’t like the results, but you
    can get some clues from the initial results to help you determine the settings you need. Here’s how to level different parts of your project using the leveling settings cur-rently in place:
    Level a resource. Select the resource you want to level, and then choose Resource➝Level➝Level Resource"

  • Synchronize Outlook tasks with iPad Reminders

    How ca I do this? The iPad has been great with sorting Contacts and Calendar from Outlook. I cannot see a way to do this for Tasks. Is there a way? Is there an iPad App that. Fixes this?

    Are you using Exchange to sync your other Outlook data?  If so, you can go into account settings and enable Tasks to sync with the new Reminders app in IOS 5.   I do this with my iPad 2 and it works great -- everything syncs in real time.

  • Task Manager Not loading Properly. Giving Error No more threads can be created in the System.NAPStatus UI and Some other Task related Errors

    I have a problem with the Task Scheduler. It is not opening properly it is giving Error Message box at this time i am unable to post. The Tasks Scheduler is starts with a error alert "No more threads can be created in the System.NAPStatus UI".
     I am unable to view the history of the tasks schecduled.It is giving message as 
    "The user account does not have permission to Access the Task History."
    How to fix it. It is frustrating as can't able to track my Tasks and Create new Tasks. Any Suggestions helpful.
    Thanks in Advance.
    RehaanKhan. M

    Hi,
    Thanks for your post.
    Please check event viewer if there are some error logs?
    Meanwhile, there is a similar thread has been discussed:
    Receiving error about "no more threads"
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/9a9e22e4-d947-4d19-b06c-aaadda624dbc/receiving-error-about-no-more-threads?forum=winservergen
    Regards.
    Vivian Wang

Maybe you are looking for

  • How to use Batch operation for two xsodata services?

    Hi All, I have two xsodata services. How to use submit batch for two xsodata services Thanks,      Mj

  • FCPX Project Render Settings - Can you edit in h.264 and Transcode/render only used clips on timeline to Prores during render?

    I have a question on the PROJECT RENDER settings in FCP X. It's seems to me that one could theoretically import and edit entirely with original h.264 video files without needing to Transcode to ProRes422. Once you're done with your edit and want to g

  • 0PUBLISHING_TEMPLATE chart display

    Hi, We have BW3.10. I set up a web template with a ROLE MENU item as the navigation frame, and the result gets loaded in the 0PUBLISHING_TEMPLATE in another frame. When a query is selected, in the application toolbar, there are chart options - bar, p

  • Bluetooth Java API on desktop PLEASE!!!

    Hi evryone! Hope you can help me. I want to develop an application on my desktop using bluetooth to connect to a mobile phone. I saw that we can't use the JSR 82 which sources is completely empty! the api being dependant on the device, it is the virt

  • Blurry titles in QT export

    I am editing a project in which there are words that scroll and go left to right. The font is pretty large and they were created within FCP. They look fine within FCP (admittedly on my computer screen not a proper monitor) but when the project is exp