Excute twice DAQmxwrite in one task

Hi  community,
I'm working on a signal generation, it looks like that
because of the short times, making the whole signal as a wfm is not a good idea, so I want to make it like that,
so it turns out it will write twice each cycle of the loop, but there are some error(error code -200288) , I really can't fix out.
I need ur help.
I hope I made it clearly.
Thanx for advance.
badstone
Solved!
Go to Solution.

Hi badstone,
I took a look at your VI. It can not work, since the concept of configuring and executing a DAQmx task is not respected.
Please take a look into the LabVIEW example library to understand how the DAQmx-tasks work. You can find them by choosing "Help" >> "Find examples" in an open LabVIEW window. The opening dialog contains the examples. Under "Hardware Input and Output" >> "DAQmx" >> "Analog Output" you see the example "Voltage continuos output".
Additionally you should keep in mind, that you first have to configure the task for timing, properties and the first writing of data to the module. Then you have to start the task. Otherwise there will be no output on the module.
You should also keep in mind, that you can not change the timin settings on runtime. I think a triggered solution would be a good way to implement your application.
If you have further questions about implementing your application, please mention, which LabVIEW version you use and what hardware and which driver versions you have installed.
Regards,
Melanie

Similar Messages

  • In Substitution rule view only one task "All" is coming

    Hi! All,
    I am facing very strange problem in UWL. Recently we upgraded our SAP Portal from SP10 TO SP15 but in Manage Substitution Rule view under Assign these task drop down we are getting only one task i.e 'All'. Remaining 3 tasks are gone.
    Can you help me in resolving this issue please..
    Thanks and Advance.
    Thanks and Regards,
    M.D.Sahu

    Hi,
    You had upgrade from SP10 to Sp25, wich version? 6.40 or 7.00?
    Please find for OSS notes from
    UWL 6.40 SP15
    UWL 7.00 SP15
    for example, I don't have your portal version, I can't help much more on this. I worked with the UWL, and this I'd very issues with Substitution Rules...
    BR
    Joã

  • How to Read All Channels in one task in vc

    I want to read 6 channals' datas in VC. Now I create 6 task, and read it sperately.
    I know that it can read from one task, but how??
    DAQmxCreateTask("",&task1);
    DAQmxCreateTask("",&task2);
    DAQmxCreateTask("",&task3);
    DAQmxCreateTask("",&task4);
    DAQmxCreateTask("",&task5);
    DAQmxCreateTask("",&task6);
    DAQmxCreateAIVoltageChan(task1,"Dev1/ai0","",DAQmx​_Val_Cfg_Default,-5.0,5.0,DAQmx_Val_Volts,NULL);
    DAQmxCreateAIVoltageChan(task2,"Dev1/ai1","",DAQmx​_Val_Cfg_Default,-5.0,5.0,DAQmx_Val_Volts,NULL);
    DAQmxCreateAIVoltageChan(task3,"Dev1/ai2","",DAQmx​_Val_Cfg_Default,-5.0,5.0,DAQmx_Val_Volts,NULL);
    DAQmxCreateAIVoltageChan(task4,"Dev1/ai3","",DAQmx​_Val_Cfg_Default,-5.0,5.0,DAQmx_Val_Volts,NULL);
    DAQmxCreateAIVoltageChan(task5,"Dev1/ai4","",DAQmx​_Val_Cfg_Default,-5.0,5.0,DAQmx_Val_Volts,NULL);
    DAQmxCreateAIVoltageChan(task6,"Dev1/ai5","",DAQmx​_Val_Cfg_Default,-5.0,5.0,DAQmx_Val_Volts,NULL);
    DAQmxCfgSampClkTiming(task1,"",1000.0,DAQmx_Val_Ri​sing,DAQmx_Val_FiniteSamps,N);
    DAQmxCfgSampClkTiming(task2,"",1000.0,DAQmx_Val_Ri​sing,DAQmx_Val_FiniteSamps,N);
    DAQmxCfgSampClkTiming(task3,"",1000.0,DAQmx_Val_Ri​sing,DAQmx_Val_FiniteSamps,N);
    DAQmxCfgSampClkTiming(task4,"",1000.0,DAQmx_Val_Ri​sing,DAQmx_Val_FiniteSamps,N);
    DAQmxCfgSampClkTiming(task5,"",1000.0,DAQmx_Val_Ri​sing,DAQmx_Val_FiniteSamps,N);
    DAQmxCfgSampClkTiming(task6,"",1000.0,DAQmx_Val_Ri​sing,DAQmx_Val_FiniteSamps,N);
    DAQmxStartTask(task1);
    DAQmxStartTask(task2);
    DAQmxStartTask(task3);
    DAQmxStartTask(task4);
    DAQmxStartTask(task5);
    DAQmxStartTask(task6);
    DAQmxReadAnalogF64(task1,-1,10.0,DAQmx_Val_GroupBy​Channel,OriginData1,N,&read1,NULL);
    DAQmxReadAnalogF64(task2,-1,10.0,DAQmx_Val_GroupBy​Channel,OriginData2,N,&read2,NULL);
    DAQmxReadAnalogF64(task3,-1,10.0,DAQmx_Val_GroupBy​Channel,OriginData3,N,&read3,NULL);
    DAQmxReadAnalogF64(task4,-1,10.0,DAQmx_Val_GroupBy​Channel,OriginData4,N,&read4,NULL);
    DAQmxReadAnalogF64(task5,-1,10.0,DAQmx_Val_GroupBy​Channel,OriginData5,N,&read5,NULL);
    DAQmxReadAnalogF64(task6,-1,10.0,DAQmx_Val_GroupBy​Channel,OriginData6,N,&read6,NULL);
    DAQmxStopTask(task1);
    DAQmxStopTask(task2);
    DAQmxStopTask(task3);
    DAQmxStopTask(task4);
    DAQmxStopTask(task5);
    DAQmxStopTask(task6);
    DAQmxClearTask(task1);
    DAQmxClearTask(task2);
    DAQmxClearTask(task3);
    DAQmxClearTask(task4);
    DAQmxClearTask(task5);
    DAQmxClearTask(task6);
    thank you!

    DAQmxCreateTask("",&task1);
    DAQmxCreateAIVoltageChan(task1,"Dev1/ai0:ai5","",DAQmx_Val_Cfg_Default,-5.0,5.0,DAQmx_Val_Volt​s,NULL);
    DAQmxStartTask(task1);
    DAQmxReadAnalogNChanF64(task1,-1,10.0,DAQmx_Val_GroupByChannel,OriginD​ata1,N,&read1,NULL);//This proto changes fo DAQmxNch1sample.... I do not have it in front of me
    DAQmxStopTask(task1);
    DAQmxClearTask(task1);
    int32_t DAQReadNChan1Samp1DF64_130(uintptr_t taskID, double timeout, int32_t incomingStatus, Array1DDouble **data, LStrHandle extendedErrorInfo);// is the C version
    Jeff

  • How to add one task in manager task list in CRM

    Hello,
    I have one scenario like when the user status is changed in service request then manager should get one email notification and that one task should be added in the manager task list.
    To send the email I have configure the Action profile and its working fine, but thing is that I not able to create the task so that manager can see this in his/her 'My Open Task' area. For this do I need to configure any workflow or some thing else.
    Any idea will be help full.
    Thanks
    Subhankar

    Solved by my self

  • Create multiple Task Instance from one Task Instance

    We have a process, where user can request for multiple resources(access) in one single request.Currently user has to wait until all the resource requests are approved by application owners to start the provisioning process.
    I am thinking of splitting that one request(task) into multiple task, based on the number of resources requested.so that, if one resource request is approved user can get that particular access.
    My question :
    1.How will I split the one task into multiple task and pass the required information to child task?
    2.How do I handle views?Currently since its one task , we checkout and check-in the same view.
    3.How will I overcome the possibility of one view overwritten by the other.
    Thanks.

    We have a process, where user can request for
    multiple resources(access) in one single
    request.Currently user has to wait until all the
    resource requests are approved by application owners
    to start the provisioning process.
    I am thinking of splitting that one request(task)
    into multiple task, based on the number of resources
    requested.so that, if one resource request is
    approved user can get that particular access.
    My question :
    1.How will I split the one task into multiple task
    and pass the required information to child task?
    2.How do I handle views?Currently since its one task
    , we checkout and check-in the same view.
    3.How will I overcome the possibility of one view
    overwritten by the other.
    Thanks.Hi,
    yes u can split one task into multiple task means as ur requirment diffrent task for different resource. so u have to write diffrent W/F for each resource and call them by setting a counter for number of resource.
    the below code help u.
    <Variable name='index'>
              <i>0</i>
         </Variable>
    <Activity id='1' name='createNewTask'>
              <Action id='0' name='createView' application='com.waveset.session.WorkflowServices'>
                   <Argument name='op' value='createView'/>
                   <Argument name='type' value='Process'/>
                   <Argument name='viewId' value='Process'/>
                   <Argument name='taskName'>
                             <s>give any name to the task</s>
                   </Argument>
                   <Argument name='process'>
                             <s>task name that u want to launch</s><!-- u can get task name dynamicly by rule also by passing resource name -->
                   </Argument>          
                   <Argument name='accountId' value='$(accountId)'/><!-- pass the required information to child task as argument -->
                   </Action>
                   <Action id='1' application='com.waveset.session.WorkflowServices'>
                   <Argument name='op' value='checkinView'/>
                   <Argument name='view'>
                        <ref>view</ref>
                   </Argument>
                   </Action>
                   <Action id='2'>
                        <set name='view'>
                        <null/>
                        </set>
                   </Action>
                   <Transition to='incrementIndex'/>
    </Activity>
         <Activity id='2' name='incrementIndex'>
              <Action id='0'>
                   <set name='index'>
                        <add>
                             <ref>index</ref>
                             <i>1</i>
                        </add>
                   </set>
              </Action>
              <Transition to='createNewTask'>
                   <lt>
                        <ref>index</ref>
                        <ref>length</ref><!-- number of resource-->
                   </lt>
              </Transition>
              <Transition to='end'/>
         </Activity>

  • If I have a 10% Gross Margin formula can I change one task to calculate at 15%

    I am working in MS Project 2010 Pro, I have set a column with a custom field to a 10% Gross Margin formula, is there a way I can change one task to a 15% Gross Margin formula?
    I am also having a problem opening two project schedules at once, for some reason when I open the second schedule it's like I lose the schedule.
    Thank you for all the help,
    Celia

    John,
    I am trying the formula Rod suggested up in the thread:
    [Cost]*(1+[Number1]).
    Now to edit the margin for individual tasks you just edit Number1.
    Thank you,
    Celia

  • Can I simultaneously configure a device to more than one task?

    Can I simultaneously configure a device to more than one task? I am trying to trigger on some of the input data. When I tried to configure the same device to more than one task, I get an error:
    Error -10408 occurred at Digital Group Config.
    Possible reasons:
    NI-DAQ LV: The specified channel is in use.
    I have attached a copy of my VI. In the first and second sequences I am using device 1.
    Attachments:
    Can_I_simultaneously_configure_a_device.doc ‏19 KB

    Hello;
    The best way to have multiple tasks running on the same DAQ device is by syncronizing those in the hardware level. What I mean by that is, to use the same clock pulse train to clock the different tasks.
    For instance, in case you want to do Analog Input and Analo Output at the same time, you can use the AI Start Scan (which is the clock pulse train that will clock the analog input task) to be routed to the AO Update clock (which is the clock that controls the Analog Output tasks of your device). You can extend that idea for counter operations as well.
    For digital operations, if you are not using one of the digital boards that support strobed operations, such as the 653x ones, you won't be able to synchronize the digital tasks with the analg tasks, s
    ince the digital ports updates through Software calls only.
    You are probably getting that error because you are trying to use the Digital Group Config.vi (or some other VI that calls the Digital Config.vi) with a board that doesn't support handshaking operations, such as the MIO ones.
    Hope this helps.
    Filipe A.
    Applications Engineer
    National Instruments

  • Reading multiple channels in one task

    Hi i am trying to read three voltage inputs in one task. I have configured the task and used generate code to get the example. But i am now getting the data from all three channels in one waveform, but i would like to work independantly on the three channels. What should i do.

    Hi vamy,
    If you read all channels with AI Read, it should return an array of waveforms (not just a single waveform). You can use "Index Array" to get the waveform from each individual channel, or use "Index Waveform Array", which is basically the same operation.
    Dan

  • Mix digital out and out in one task

    Hello,
    is it possible to create a task that can be used for PWM output and setting of digitals outputs at the same time?
    I have a NI-USB 6210 that provides two counters and additional digital outputs.
    I have already implemented some code that generates PWM signals on both counters.
    At all, I have created one task, containing both counters and I am able to set the duty cycle by using DAQmxWriteCtrFreq.
    Now, I also want to write the digital outputs.
    I first tried to create a second task that handles the outputs, but I got an error (sorry, forgot the error number) that says that the task can not be created because the digital output resource is already in use (by the PWM task).
    Therefore, I think that I have to add the digital output channels to my PWM task, so that there is only one task that handles all my digital signals (counter and bits).
    Am I right here or not?
    Furthermore, if I am right, how can I set the digital outputs?
    Maybe DAQmxWriteDigitalLines is the correct line but how can I tell this function, which channels should be set?
    Any help is appreciated.
    Thank you.
    Christian

    Hi CristianEC,
    i think the error number was -200022, because the PFI lines for the two PWM counter look all your digital ports.
    You can see this if you look on into the pinout for your device. You need an device with some additional digital ports.
    best regards
    Alexander Glasner
    AE NIE

  • In sequence container i have three task one task have to made transaction Remaining three task made not transaction

    in sequence container i have three task one task have to made transaction Remaining three task made not transaction

    Hi hari3109,
    Just as Visakh said, we need to set the TransactionOption property of the container to ‘Required’ to enable transaction. The Required value means this container will cause a new transaction to be started unless the parent container already has a transaction,
    in which case, the parent’s transaction will be joined. For more details about TransactionOption property, please see:
    http://msdn.microsoft.com/en-IN/library/microsoft.sqlserver.dts.runtime.dtstransactionoption.aspx
    Besides, we should follow there guidelines to decide whether and how to implement a transaction:
    For transactions to be enabled in SSIS, you need to turn on the DTC service, and the tasks that you want to be part of the transaction must work with the DTC service natively.
    If a series of tasks must be completed as a single unit, in which either all the tasks are successful and committed or an error occurs and none of the tasks are committed, then place the tasks within a Sequence Container, and then set the TransactionOption
    property of the container to Required.
    A task can inherit the transaction setting of its parent when the TransactionOption property is set to Supported, which is the default setting when creating a task or container.
    You can prevent a task from participating in a transaction by setting its TransactionOp-tion setting to NotSupported.
    Transactions work at the control flow level and not within a data flow. This means that you can turn on a transaction for a data flow task, but you cannot turn it on separately for selected components within the data flow; either the entire data process
    will be successful or it will be rolled back.
    For more information about Configuring Package Transactions in SSIS, please refer to the following document:
    http://msdn.microsoft.com/en-us/library/cc304421.aspx
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Daqmx read write in one task?

    I hope this would be my last question.
    I have one task with the DAQmx to read two values from sensors.Now I also want to write a value to another sensor.
    It hasn't work to put the task together.
    Should I make two tasks?How should I do this.
    Thank you

    Hello Smoofo,
    it is not possible to create one task for input and output values. You need two tasks. You can find input and output tasks under Labview/examples/Data acquisition/DAQmx functions.
    Kind regards,
    Elmar

  • Could ONE task include channels of MULTIPLE sorts?

    There are two sorts of singnels: current and temperature. I want to know that if I can collect them in a task. I am using CVI to programme. Can I use DAQmxCreateAICurrentChan() and DAQmxCreateAIThrmcplChan() in one task?
    Thanks!

    Yes. You can mix channels of mutliple sorts in a task as long as they are all the same I/O type, such as Analog Input (AI).

  • Multiple email notifications for one task

    Hi Al,,
    I am getting more than one email notifications for one task in less than an hour. Please let me know if any one has ocem across this situation and got the solution.
    your remarks are highly appreciated with points!
    regards,
    theja

    Hi,
    Are you using this RSWUWFML2 program or Extended notification to receive the email notification.
    If Yes Choose 'One Message per Work item'.
    If no, tell me from where you getting the email.
    Regards,
    Surjith

  • WF to HR - One task to Specific User.

    I am developing some workflows for the HR module, which was set up a table that selects those responsible for tasks RH_CENTRAL, RH_LOCAL and BP
    Whereas to send a WorkFlow for the portal it appears in the Business Workplace 2 tasks equal responsibility, one that he takes the action and another just to view.
    I'm putting the task as a Task General on TASK's, because those responsible need to be selecting this table.
    I can not enter a User, position, unit or function sets in the task, because in this company, those responsible are moved frequently
    What do I need: To make only one task is presented only to the official who was selected in the table, without which other people receive the same task.
    Is there any way I can do that?
    Thanks

    Hi,
    You should assign only 1 agent to the task. Please chek workflow container -> task container binding in your workflow template.
    Regards,
    Masa

  • State machine custom task workflow how to pass one task field value to the next task field

    i am using ItemMetadata.xml to pass value from list to custom task first value its passing the but second value is showing as null
    plus how to pass one custom task value to the next custom task
    i.e one supervisor approver comments submitted field i want to see on department manager approval custom task which is the next approver from supervisor
    ows_firstfield=""
    ows_SecondField=""
    the above ows fields are from list
    in this i am unable to retrive the second value in the task form this is my first query?
    second query is that how can we pass one task field value to next approver task field value?
    any idea
    MCTS,ITIL

    What type of workflow is this?  IS this Visual Studio or SharePOint designer or third party (K2, Nintex, etc...)?  YOu should be able to get ahold of the task that was edited via the correlation token, and then grab any value you want from that
    task (wether it be a custom field or a standard worfklow task field). 
    It would help to know what you are using to build the workflow.
    Thanks!

Maybe you are looking for

  • Problem - Frame Driver Template

    I have been trying to develop Portal Forms and embedding the forms in a frame driver using Oracle Portal 3.0. I specified a particular User Interface Template but never get to see this chosen template when running. Instead the form always uses the te

  • Multi value attribute in IB - how does it affect system (crm 4.0)

    Hi, Is there any limitation when using Multi value attribute in set type which is used for Individual object in IB? I have succeed in implementation of Multi value variable feature in CRM 4.0 . this change is irreversible so I wish to know what are t

  • Sample Portal Start up problem

    Hi All, I downloaded and onstaleed the sampleportal exactly by step to step as mentioned in the documentation but when I run the app from the browser I see nothing..justa lank page.. here is what comes in the server window... PortalPersistenceManager

  • Jpeg uploader need help!

    please test my site first, http://www.dcphonecases.com/test04/models/tempt.html, it's working as if you upload an image it will show there, notice it does 4 things, request you to browse your harddrive for image file, upload it, when it uploaded it s

  • Trying to connect/sync first gen iPod touch to Compaq laptop

    I've had this iPod touch for about a little over a year and a half and it's in perfect condition, it's just when I plug it into my laptop using the USB cord my laptop won't even recognize it and the iPod won't even charge, let alone sync. I know it's