more info on the DAQmx control task

Today I came across an older post where I had some questions and Jeff· just Þ· Bohrer showed a good example, it's here:

http://forums.NI.com/T5/LabVIEW/AES-single-element-queues-data-value-references/m-p/2978093/HIGHLIGH...

I doesn't pay attention to the DAQmx task manages the part, but now some new questions of time came to my mind, I hope someone can give me some explanations...

Usually, when I'm working with some hardware with DAQmx driver, I simply specify the channel, and I use the VI of virtual channel create for my work I want to use.

Recently I read about benefits use MAX to previously create some global (?) of the tasks (for example a cDAQ with many modules and i/o channels) and using these tasks in a LabVIEW project. In this case I can just skip the 'Create Virtual Channel.vi', begins with the measurement with a "Start Task" DAQmx and stopping a VI 'stop the task', correct? However in the link above, the VI "Task of control" (next), first used with a parameter "commit" and during the closing of the measure, with a setting of "Cancel" (and no task to stop vi was used).

I threw an eye using the Task.vi 'control', but the info it is not too detailed, where I can find a few more details, or maybe someone might highlight the use and benefits of this vi? Sounds a bit 'funny' aid, as for the parameter commit: "Programs the hardware as much as possible depending on the configuration of the task."

So what is the difference between the use of the "task of control" in a code and do not use it (so when we use only the start and the stop task live)? Do we not the same behavior with the latter?

Thanks in advance!

Martins wrote:

The overall task configured max subject: we conduct research, so I always just develop for our lab, we do not sell anything. However, I have some questions related to a task configured and saved to the MAX:

  • So I have a task created at MAX, I guess that this task will be usable only if I use it in a project of LV on the same PC? What if I need to move my application to another PC (but of course with the same modules cDAQ, etc., but perhaps under different numbers...)

The task can also be used with a .exe. You can export MAX settings to a file (file, export...) .nce, and then import the settings to a new PC. If necessary you can tweek the numbers.

  • I would like to create an EXE from my code and don't run this EXE to our systems (not install). Y at - he tips that I should keep in mind when I create an executable from a project that contains a task of MAX?

I can't think of something special. Personally, I prefer to load the name of the task from a configuration file, you can also use a control on the front panel to select the task.

I have a feeling, when we need complete flexibility, the course of MAX isn't really practical, Yes? I want to say, if we want to for example programmatically recognize all our application materials and create tasks to ensure that all physical changes on the side of the PC in the future will not affect our code?

I agree that you have as much flexibility, but for my applications most of the time MAX provides sufficient flexibility

But this scenario could be documented for future users in the lab, I imagine, so what they have to do, is to recreate the overall task? What happens when we take the application as an exe on another PC and manually re-create the (I hope that quite the same) necessary global task with the same name that awaits the EXE? It works this way?

Thanks for the very useful info!

Edit: "Yes you can set a MAX task that includes several modules and channels so that they all have the same type of action."

This is also a limitation compared to the creation of code depending on task, Yes? I mean, using the DAQmx 'Create Virtual Channel.vi', we can even combine for example analog inputs with for example in a cDAQ thermocouple hunts...

No it is not a limitation, for thermocouple is entered analog. If you can combine them in LabVIEW, you can combine them in MAX.

Edit2: I really miss other docs of type "real demonstration" of the NEITHER! I could imagine a sort of case study examples where different material handling OR would be explained... Of course we can hunt together pieces of mosaic, but a more compact image could help a lot for those who want to learn faster

Ben64

Tags: NI Software

Similar Questions

  • Daq stop task VI back to the State of the task was really forward the DAQmx Start Task or DAQmx writing?

    Hello

    I use DAQmx and DAQ Assistant and try to get the details on the following questions.

    1 does Daq stop task VI really return to the State of the task is in front the DAQmx Start Task or DAQmx writing? Digital Input taking as an example, I don't think that the status of the task means that input data because I tried and I can't really back to the entry level it was.

    Maybe more experienced people can help to share their expertise.

    2. the information in help indicates "virtual channels created with the function/VI DAQmx create Virtual Channel are called virtual channels the and cannot be used in the task." But I don't know what "in his work" means.

    3. could I get some guidelines or expertise on the Labview programmers when use virtual channels the and when, to the more global?

    Thank you!

    Best regards

    Allen

    If you create a channel of the task, or scale just usuing the screw to create or Assistant session wire io is the only way to pass the info autour.  It is not saved anywhere on the disc.  A channel of the task or the scale in a project can be used by anything in this project.  A channel of the task or the scale recorded in MAX can be used by anything on this machine.  Its an extended thing.

    And Yes, the DAQ Assistant fresh extra performance overhead and the poor than the DAQmx API.  Often, it won't have the impact of a little experiment.  Large applications should avoid the express Visa.

  • error-50103 occurred at DAQmx control Task.vi:6

    I'm new to LabVIEW. I'm using LabView 8.6 and one NEITHER cDAQ-9172. For practice, I'm doing a program that takes the temperature and pressure readings and graphs.

    I don't have the modules or sensors yet, so I started by simulating a RTD temperature measurement NI9217 and a NI9237 module for the measurement of pressure.

    I created 2 while loops that run in parallel. One with an assistant of data acquisition for the temperature and the other with an assistant of data acquisition for the pressure.

    Highlight run out, when I run the program, the signal is both while loops. The temperature seems to work ok and the data graphic. The pressure, however, only goes in once, and I get the error message: "error-50103 occurred at Task.vi:6 DAQmx control Possible reason (s): the specified resource is reserved." The operation could not be performed as indicated. »

    In addition, the stop button does work on my front. I have to use the button stop in the toolbar.

    Anyone has any advice on what I can do to fix this problem or any suggestions on the best ways to address the issue?

    Thank you.

    Search the forums for error 50103.  That will tell you everything you need to know about this error code.

    For more information on your questions, post your VI so we can see what might be wrong.

  • I need more info on the Windows XP Professional x 64 edition

    I have two copies of a Windows XP Professional x 64 Edition operating system and would like more info on this OS, which it is intended, who can use it and under what conditions are required for usage.  each disc has the following information about it:

    English
    Microsoft Windows XP Professional
    x 64 edition
    (Required product key)

    June 2006

    Systems

    Media/student work
    The Home Media

    All use subject to volume
    license agreement.  Do
    not make illegal copies
    This disc.  No detail
    or OEM Distribution.  Not
    for resale.

    Microsoft licenses

    http://Windows.Microsoft.com/en-us/Windows-XP/help/setup/Windows-XP-Professional-x64-Edition-FAQ

    http://Windows.Microsoft.com/en-us/Windows-XP/Setup/Windows-XP-Professional-x64-Edition-Overview

    These articles should help you understand XP Pro - x 64

  • [11] ask for more info about the records, research and the Datagrids

    Hello

    I'm looking for info on the records, research and the Datagrids, I can't find a lot of research on the web.

    Thanks a lot if yo u can help.

    The FNDLOAD program creates scripts ldt is the kind of script you want to say. You issue a command to the program that tells it what kind of Application Oracle configurations you want to transfer to another instance and creates the script ldt that you use the target instance.

    See Support Oracle Note 274667.1 for orders to move configurations because I never used to move the datagrids.

  • Need more info on the violation of the "AlertShow".

    Hello

    First of all thanks for the great tool! It was really something that we all missed.

    I have a question related to the violation of the "AlertShow". I've had several of these violations and the description says

    'Do not directly call Alert.show... '. You shouldn't Alert.show () directly. If an error has occurred in the system, you should probably use an ErrorManager to have a consistent way to manage these errors.

    What, exactly, is this violation? Could you please provide more detail, why this violation appears and how it should be fixed.

    Thank you!

    Hello

    Glad you liked the project.

    So that we often people using Alert.show whithout having a central ErrorManager class. Having such a class allows you to have a consistent way to deal with errors in your application.

    Alert.Show can be called from anywhere (view, model, orders,...), while is nothing else than a wrapped view.

    I hope this helps.

    Xavier

  • Status report of VM tools with more info than the status

    Hallo.

    I'm looking for a script that shows me the status of VM as 'Version of the tools' tools, ' oder execution tools do not ' and 'Tools need upgrade' for each virtual machine. I found a small script

    $date=get-date -uformat « %Y %m %d-%H %M %S »; Get-vm | % { get-view $_.ID } | Select Name,

    @{Name='ToolsStatus'; {Expression={$_. guest.toolsstatus}},

    @{Name"ToolsVersion"=; {Expression={$_. config.tools.toolsVersion}} |

    Tri-objet name | Export-csv c:\temp\vmtoolsver_$date.txt -NoTypeInformation

    but I need additional information such as custom for each virtual named 'Customer' computer fields.

    Can anyone help me put in place this information in the script?

    It would be very nice.

    Thank you all.

    Best regards

    ron9999

    And another solution is to use the virtual computer object CustomFields property:

    $date = Get-Date -uformat "%Y%m%d-%H%M%S"
    Get-VM | `
    Select-Object -Property Name,
    @{ Name="ToolsStatus"; Expression={
      $_.ExtensionData.Guest.ToolsStatus}},
    @{ Name="ToolsVersion"; Expression={
      $_.ExtensionData.Config.Tools.ToolsVersion}},
    @{ Name="Customer"; Expression={$_.CustomFields["Customer"]}} | `
    Sort-Object -Property Name | `
    Export-CSV -Path c:\temp\vmtoolsver_$date.txt -NoTypeInformation
    
  • More info on the events of NetStream.Connect.Closed?

    Is there a way to get additional information on the reason of an event of NetStream.Connect.Closed? For example, I wish I could tell my users if the other end has expired or has been closed by the user.

    I looked into it, but I came to the conclusion that it is not possible. If this is correct, where would be the right place to propose such a feature?

    the distinction between a timeout and an active close is not conveyed by the current API.

    on the side of the editor, you may have a special method of NetStream.send () for "I am actively closing now" you send just before closing.  or you could deduct a timeout by observing a long time dry buffer or persistent lack of messages from heartbeat/watchdog that precedes a NetStream.Connect.Closed at the end of the Subscriber.

  • What is READ the array returned by the DAQmx meter? How can I know the two functions DAQmx READ data stream in the same WHILE loop?

    I have a question about the order of execution.  In the WHILE loop, I have two things to measure, period and tension using the DAQmx READ functions for voltage and the meter.  In the end, I want to collect these data as points almost simultaneously as possible, as a pair and then send them together to another piece of code (not shown here) which them will result in some sort of command for an engine.  It would be run, and then I want to perceive the tension and the period at a time later and do the same thing.

    (1.) I'm a little confused on what the meter of the READ function is back because it's a table.  What is a picture of?  I thought that it was up to the value of the individual periods between rising edges.  The output of the counter 1 DBL d's a table. How many elements in this table, and what determines the size of this table?  Are the elements of the array the individual delays between the edges?  How many values are stored in the array by executing?   We take the AVERAGE of the last 15 items, but do not know if we are throwing some of the data or what.  How to understand the composition of this painting?  How can I change the composition of this painting?  Is it possible to measure only one period at a time, for example the time between TWO edges?

    2.) Will this WHILE loop execute as it gathers tension and a "period table ' (remains to be understood by me) by TIME running in a loop?  In particular, we want that the value of the tension associated with the value of the AVERAGE of the period "array", so we can use two data items to create orders of next control every time that the two values are reported.  The structure for the delivery of vi will be attached data in pairs like this?  I understand that one of the READING functions run not before the other function of READING in the WHILE loop.  I want that the period "means" and "strain (Volt) collected at the same pace. This vi will he?

    Thank you

    Dave

    Hi David,

    I suggest including the DAQmx Start Task function. If it does not start before the loop, it starts the loop and work very well, but it is not as fast and efficient. In the model of task status, task wiill go to run the checked each iteration of the loop and then back the time checked running when it restarts.

    The status of the task model: http://zone.ni.com/reference/en-XX/help/370466V-01/mxcncpts/taskstatemodel/

    Kind regards

    Jason D

    Technical sales engineer

    National Instruments

  • Error-50103 occurred at DAQmx control

    We strive to take into two signals in LabVIEW through our acquisition of data, and then pass them through two channels of detection of distinct peaks, however, when we try to run the program, we get the following message is displayed:

    Error-50103 occurred at DAQmx control Task.vi:14

    Possible reasons:

    The specified resource is reserved. The operation could not be performed as indicated.

    Task name: _unnamedTask<9>

    I have attached the circuit we use below, any help woud be appreciated.

    Problem solved, use:

    http://digital.NI.com/public.nsf/allkb/485201B647950BF886257537006CEB89#case4

  • Why is the DAQmx Read VI so slow?

    Hello everyone.

    I'm using Labview 8.5.1. and NI-DAQmx 8.6 and I wonder what is actually done the DAQmx Read VI.

    I want to measure is a signal of 1 kHz. To do this, I use a similar to the attached VI (a pulse signal of 1 kHz is used to trigger and sample clock).

    Time the DAQmx Read VI must perform is longer than the acquisition time you would expect 250ms (rather 100ms to measure 100 samples at 1 kHz, time is usually around 350 ms, 1000 samples is ~ 1250 ms). The time depends not on the number of channels in the task.

    So my question is what happens when the reading DAQmx VI is called. What I want is: wait next trigger signal, and then acquire the number specified samples, then read buffers samples and return them. Is it possible to force this behavior?

    Thank you very much for your replies, I appreciate any help!

    Rene,

    For your application and hardware, you should use DAQmx controls Task.vi to commit your task before your loop.  Inside the loop, and then you had to play/start/stop the task.  DAQmx uses a state machine to Control Panel tasks and run time.  As writes, when you cal DAQmx Read, DAQmx will see that you have a task that has never been configured.  Therefore, it will look at all the settings that you make on the task, check their accuracy, all the necessary resources book, write the hardware configuration, and then start your task.  Once the specified data has been read, it will relax this state machine to put the task in a State not configured.  Therefore, every time call you Read, DAQmx if through all state transitions.  If you commit your task before the loop, DAQmx would not re - check your settings or need material to re - schedule each passage in your loop.  That being said, there will still be some time adding every iteration of the loop where you must stop and restart your task and meanwhile you can miss a trigger.

    If it is really not acceptable for you to miss a trigger, you might consider adopting a design in which read you continuous data and then use release to follow the relevant sections of the data.  Another alternative would be to look at DAQ hardware X series line, because these devices trigger support in hardware (that is to say... They may retrigger unless you need to stop and restart your task).

    Hope that helps,

    Dan

  • used a still old nano info from the owner if syncs with my account

    Bought used ipod nano of wages. has more info of the old owner on that.  Syncs not on my iTunes account.  How can I get rid of their old information so that I CAN SYNCHRONIZE WITH OUR ACCOUNT?

    Yout will contact the person who sold it to you. Unfortunately it is not an easy work around... for security reasons, in the event that the somebody device was ever flown.

  • Do you need 'DAQmx start task' vi read from a device NI DAQ (NI 9205)?

    I have a NI 9205, which I use to get a waveform data. To get started quickly, I used the wizard DAQ Vi. The code below (FIGURE 1) is the acquisition of data help VI looked like when I convert LabVIEW code and made some minor adjustments.

    When I looked online to see how to get hardware DAQ data, many sources use the task start DAQmx in figure 2.

    DAQmx start using VI makes another?  Materials using DAQ assist in loop gives you a lack of performance?    If so, figure a will have a lack of performance too as it is basically the DAQ help code?

    FIGURE 1

    Hello sticyfinger,

    Help for the Start Task function:

    "If you do not use this VI, a measurement task starts automatically when execution of the reading DAQmx VI. Automatic start of theDAQmx VI entry write determines if a build task starts automatically when the execution of the writing DAQmx VI.

    If you do not use the DAQmx start task VI and VI task DAQmx stop when you use DAQmx Read VI or VI to write DAQmx several times, as in a loop, the task starts and stops several times. Start and stop a task repeatedly reduce the performance of the application. »

    Hope that helps!

  • How can I activate my volume higher than does the volume control

    I would like to get more than allows the volume control. Just don't go to loud. I have a toshiba laptop with Windows 7.

    Hello

    I suggest you to add speakers to the audio output of the laptop. If you use small speakers that were included with the computer, you will not get the best performance available. New speakers offer more options to optimize the audio output.

    Also buy a set with a subwoofer if you want quality entertainment at home or in your office.

    For your reference: Getting sound from your computer: recommended links.

    http://Windows.Microsoft.com/en-us/Windows7/getting-sound-from-your-computer-recommended-links

    Hope this information is useful.

  • Get the error when you try to manually create a restore point in Vista 32 - Bit - System - Protection of the system control panel. Got the unable to create the specified task

    Get the error when you try to manually create a restore point in Vista 32 - Bit - System - Protection of the system control panel.
    Got the unable to create the specified task

    Hello

    What is the exact error message received when the problem occurs?

    Methood 1:

    Auditor of file system (CFS) scan to fix all of the corrupted system files. To do this, follow the steps in the following link:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833 

    Method 2:

    You can start Windows Vista by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    I suggest to put the computer in a clean boot state, and check if the problem persists, see the link:
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: See step 7; Reset the computer to start as usual after troubleshooting is performed.

    Method 3:

    You can temporarily disable the security software and check if the problem occurs. Check out the following link to do the same thing:

    http://Windows.Microsoft.com/en-GB/Windows-Vista/disable-antivirus-software

    Warning: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    I hope this helps! Let us know if you need more assistance.

Maybe you are looking for

  • How to stop my iphone from moms to get my emails as well?

    Why does my mother keep my emails? We have all two iPhones and the same Apple ID Can I do to get her telephone to stop get my emails and maybe my messages if it receives any .and thanks

  • admin password does not

    Connect as admin using the cpu, went to bed, woke up with cpu off (I / or someone else has done to turn off the cpu).  He turned back and now I can not login as administrator.  The password has not changed.  I have an account of the quest, but all my

  • How to reset the clock on my printer HP Officejet 8600?

    How to reset the clock on my printer HP Officejet Pro 8600?

  • T410 error of thermal detection

    While I'm enjoying my old T410 of one month, suddenly, I got a 'Thermal detection error' message when starting of the machine, and then he stopped. The day before I met this error, I: -updated to the latest version of the BIOS in the afternoon -used

  • BlackBerry Smartphones world phone - upgrading to 4.5?

    My World Edition (8830) is running on the 4.2 os. When I try to download the new 4.5 the Application Installer says that I'm running the latest operating system. Will the new 4.5 os does not work with my BB 8830 World Edition?