What causes the "specified operation cannot be performed when no device in the task.

        using (task NationalInstruments.DAQmx.Task = new NationalInstruments.DAQmx.Task ())
{
task. Timing.ConfigureSampleClock ("", 1000, SampleClockActiveEdge.Rising, SampleQuantityMode.FiniteSamples, 2);
task. DIChannels.CreateChannel ("PXI1Slot6/Port2/Line3", "", ChannelLineGrouping.OneChannelForAllLines);
task. Triggers.StartTrigger.ConfigureDigitalEdgeTrigger (triggerLine, DigitalEdgeStartTriggerEdge.Rising);

DigitalSingleChannelReader reader = new DigitalSingleChannelReader (task. Stream);
drive. ReadSingleSampleSingleLine();
}

Why the code above throws an exception DAQmx with message:

"Specified the operation can only be performed when there are no devices in the task."

task name: _unnamedTask<2>

"Status code:-200477"

There is a device in the task.  I'm trying to PXI1Slot6 (map of IO 6535) to enter the 2 samples off Port 2 line 3.

Hi CurtisHx

Thanks for reporting this. I agree that the error message returned by the driver is very unclear and fails to a user of the API provide enough information to determine the cause of the error in the code. In addition, it seems that we don't document the correct order of operations to set up a task well (the best thing we could find was the subject of tasks in NOR-DAQmx , who actually seems to imply that the channel configuration and their calendar can be made in any order). We are producing several bug reports, to fix / improve the following:

  • The error message returned by the driver to the API.

  • The help topic for the tasks in NOR-DAQmx.

  • The documentation of the specific method provided with the NOR-DAQmx .NET API.

To clarify the error, it seems that 'peripheral' in ' specified operation cannot be performed when no device in the task "is in fact reference to the channels configured in the task. At this point, I'm not sure what "device" can be applied to other entities in the DAQmx driver software, but I'll post at the time where I have an error message created by the development team working on it.

Best regards,

Tags: NI Software

Similar Questions

  • Error-200478 - specified operation cannot be performed when there is no channels in the task

    I write a task in NiDaqmx read 8 thermocouples 2 9222 or 4 thermocouples of a NI 9223 modules. Under Source of CCM I entered the channel and specified a type K thermocouple connected to a NI 9219. All modules are located in the same chassis of cDAQ9178.

    I get the above error.

    I add the CJC channel and he complains that I have double readings of the same channel in one of the tasks.

    The environment where it will be installed will vary widely affecting thus the constant CCM is not a viable option.

    Any help would be appreciated.

    Simple reason - we already possess the 9222 s of NOR and the NI 9223. I'll check the price NI9213 and see if the Group has the budget.

    I watched your program and compared it with mine. Tried to channel the CJC as Temperature_12 but all local channels are grayed out. BUT I moved Temperature_12 the command to the top you and Voila! He is available for selection. I put all 9222 s and 9223 channels at points to Temperature_12, and it saved without error.

    So I would say put the CJC channel as the first channel to read fixes the problem - it makes sense that the following channels need a reading to serve their CCM. Where this logic breaks down is if you consider that the 9222 and 9223 channels are simultaneous channels, but that's a topic for another post!

    For now, I thank very you much for your help.

    Best regards

    Dean

  • ORA-12721: operation cannot be performed when other sessions are active

    Hello
    I started my database like this:
    1) Change INIT.ORA file;  unset parallel_server parameter.
    2) Execute these commands:
    STARTUP MOUNT ;
    ALTER SYSTEM ENABLE RESTRICTED SESSION;
    ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
    ALTER SYSTEM SET AQ_TM_PROCESSES=0;
    ALTER DATABASE OPEN;
    SHUTDOWN IMMEDIATE;
    
    SQL> STARTUP RESTRICT  pfile='C:\oracle\product\10.2.0\db_1\database\initORCL.ora';
    ORACLE instance started.
    
    
    SQL> alter database national character set INTERNAL_CONVERT UTF8;
    alter database national character set INTERNAL_CONVERT UTF8
    *
    ERROR at line 1:
    ORA-12721: operation cannot execute when other sessions are active
    Sorry for the duplicate.

    Published by: user522961 on December 10, 2008 01:51

    >
    ORA-12721: operation cannot be performed when other sessions are active
    Cause: This command can only be run when there is no other active sessions
    Action: Ensure that there is no other connections to the database >
    HTH
    Aman...

  • When to install the old version of quicktime get error: an operation cannot be performed because a file handle could not be opened

    "On windows vista, that I am trying to install quicktime for windows 2.1.2 so I can run a program requiring but keep getting messages like" an operation cannot be performed because a file handle could not be opened.  Try to close applications or increase the number of files available (see order of FILES in your manual BACK". Or I receive QTINSTAL caused a GPF in module QT16 failure. EXE to 0002:5DA9

    Hello chris_660,

    You can check that the program that you try to run Windows Vista compatible by visiting the link below:
    Windows Vista Compatibility Center

    Also, you can try to run the program in compatibility mode and then check if the same problem occurs.

    Make older programs in this version of Windows

    Thank you

  • The operation cannot be performed because the "Firefox" element is in use.

    Whenever I try to download the latest version of Firefox on my mac, I get the following error:

    "The operation cannot be performed because the"Firefox"element is in use."

    I close Firefox and still get this error. I tried this guy 100 times and may not know how to solve this problem. Help!

    I have Mac OS X 10.6.8 v.

    Download the full Firefox installation program and save the file to the desktop
    https://www.Mozilla.org/en-us/Firefox/all.html

    If he has problems with the update or with the permissions then best is to download the full version and trash the version currently installed to do a fresh install of the new version.

    Download a new copy of the Firefox application and save the file to disk on the desktop image

    Your personal data are stored in the Firefox profile folder, so you will not lose your bookmarks and other data to personal when you uninstall and (re) install Firefox.

  • Cannot update 3,010 FF.; Downloaded 3.6: impossible to copy in the app folder "the operation cannot be performed because you don't have sufficient privileges for some of the itemss.

    I had FF 3.0.10 for two years. My preferences are set to automatically check updates, my for a reason, it apparently never worked. I am the administrator for my Mac and have read/write permissions. The manual "check for update" under the menu help is disabled and will not work. " I tried to reset the permissions, quit and restart several times. At a given time, the window ' check for updates ' seems to be enabled, but froze when he started the download and came back to grey again. I tried to download 3.6 on your site, but when I try to drag FF in the app, I get a message that says "the operation cannot be performed because you don't have sufficient privileges for some of the items. Through it all, I noticed that my download folder is gone from the dock on my screen

    Your profile data is stored in the Firefox profile folder, so you will not lose your bookmarks and other personal data.

  • Deleting files of Time Machine, "the operation cannot be performed because you have not granted access to some of the elements."

    I am trying to remove approximately two weeks (at a time), but I get "the operation cannot be performed because you have not granted access to some of the elements." How can I get around that?

    Thank you

    My OS is 10.11.3

  • Support Assistant: what is the ' task to resign the ghost? "

    I was in the Task Scheduler and seen this task "Ghost resign Task" which runs every hour. What is it?

    Hello

    Thank you for this informtion.

    This more with a colleague, that would cause by another process on the computer (I would not be able to say that, without looking at the computer).

    To compare, when there is something in the Windows registry that has no value and is usually represented with 0, we who would call a "ghost key" in the registry. What you see is essentially the same, but a "ghost task." It does nothing useful or harmful to the computer, to the extent that I could find.

    You can try to follow the process, though, as it should appear in the Manager of tasks under the "processes" as "ghost resign task" (or something similar), if you see that and do a right click on it then choose "instead of opening the file", this will take you to the specific file that is causing the task to run. From here, you can choose to let the task or terminate, this depend on the program by running it.

    I hope in a way that makes sense and provides you with the information you're looking for.

    Thanks for your reply.

  • Need info on what caused the blue screen appears

    Can someone tell me please by the info below causing the dreaded blue screen to appear?

    Signature of the problem:
    Problem event name: BlueScreen
    OS version: 6.1.7600.2.0.0.768.3
    Locale ID: 1033

    More information about the problem:
    BCCode: 3B
    BCP1: 00000000C000001D
    BCP2: FFFFF88000000000
    BCP3: FFFFF88007290010
    BCP4: 0000000000000000
    OS version: 6_1_7600
    Service Pack: 0_0
    Product: 768_1

    Files helping to describe the problem:
    C:\Windows\Minidump\041610-32292-01.dmp
    C:\Users\Gary\AppData\Local\Temp\WER-60606-0.SysData.XML

    What do you mean "that it was the video driver?"   A defective hardware and faulty kernel-mode components are the things that can cause a blue screen (not this external stimulus cannot trigger a bug in a driver). There are many components that interact in kernel mode, if e.g. a third-party driver who may undergo rigorous testing even as something like a driver provided by Microsoft for something can corrupt the memory that will be used later by another component.  This component seems to be blamed, even if it's really the victim.  Driver Verifier adds controls for these kinds of things, at the expense of performance (why it has not enabled all the time).

  • What are the tasks we can perform by using Component Services in the Microsoft Management Console?

    Original title: use MMC

    Can someone enlighten me on component services, found in the administrative tools, including the management console folder. Is their anything that can be done by someone who has no knowledge on this subject, extensive Windows, I use XP (SP3) thank you.

    Hi ratchet.

    Microsoft Management Console (MMC) lets system administrators create much more flexible user interfaces and customize administration tools.

    See this link for the tasks that we can perform using Component Services in the Microsoft Management console.

    With Component Services, administrators can deploy and administer service applications of components through a graphical user interface or automate administrative tasks using a programming or scripting language. Software developers can use Component Services to visually configure routine component and behavior of the application, such as security and participation in transactions, and to integrate components into Component Services applications.

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/snap_start_mmc.mspx?mfr=true

    Also check out this link:

    Using the Microsoft Management Console:

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/snap_start_mmc.mspx?mfr=true

  • "The operation cannot be performed because some points had to be ignored" prompt what items?

    The message goes on to say, "for each item, choose file > info, make sure 'Locked' is unchecked, then access the sharing & permissions section.» I have no idea of which are items of interest.

    Stay with the latest version of any program.

    How and when the message comes up?

    Hello

    To better help you with your question, please provide us with a screenshot. If you need help to create a screenshot, please see How to make a screenshot of my problem?

    Once you have done so, attach the file to screen shot saved to your post on the forum by clicking on the button Browse... under the box to post your reply . This will help us to visualize the problem.

    Thank you!

  • SRM 5.5 - vSphere replication - error: impossible to reverse the replication for the Virtual Machine. A snapshot operation cannot be performed

    Hi all, we have just run a test DR failover of a couple of virtual machines in our protected our failover site and all site swung perfectly, two virtual machines came online and all applications work well. However when we cam to r-eprotect machines virtual, we get some errors.

    One of the virtual machines seems to have lived the reprotect end process, it is still running, but has not moved to 89% for some time. The virtual machine has a couple of grand (a little less than 2 TB) VMDK. slow progress is just a consequence of the large VMDK?

    More worrisome is the virtual machine which don't reprotect at all. It generates an error whenever I click on the "Restore" button (error: impossible to reverse the replication for the Virtual Machine.) A snapshot operation can not be performed).


    Does anyone have any ideas as to the cause?

    Thanks in advance for any help.

    Andy

    Finally got to the bottom of this. The issue was that reprotect SRM work was trying to dispel any snapshots that were taken on the computer object virtual destination in VMWare, but could not clean snapshots.

    The reason why snapshots would not consolidate was because it was snapshots of temporary VEEAM who in fact any snapshot file listed in the VSAN data store. So when we looked through the browser data store, no snapshot file existed in the virtual computers folder. Trying a manual removal also failed.

    To fix this, we created a snapshot of the virtual machine in the original data center (note is the engine to the bottom of the virtual machine), this effect was to get rid of the 'fade' snapshot that was visible in the Snapshot Manager that VEEAM backup had left behind. Once this had disappeared, the reprotect back to DCA worked perfectly.

  • The Active Directory operation cannot be performed

    Hello

    Sorry for my bad English...

    I have installed and configured a vdi system to deploy an office on 3 different Active Directory domain.

    I have configure the broker with admin of a domain for each domain 3 when I deploy it. Che pool 2 field is create successfully without error, but in the last pool I have this error:

    _Error in provisioning6/10/09 08:47:28 CEST: cannot perform the operation of Active Directory. COM error code:-2147016689 _

    I have check the domain admin profile and name resolution on the broker and the vcenter, without error.

    In the vmware site, I can't find the 2147016689 error code.

    Can someone help me?

    Good bye

    Fabrizio

    This area is also a subdomain or entirely trust others?

    Kind regards

    Christoph

    Don't forget to assign points if this answer was helpful for you.

    Blog:

    http://Communities.VMware.com/blogs/Dommermuth | http://www.thatsmyview.NET/

  • the requested operation cannot be performed on a file with a user mapped opened section: 0x800704c8

    Hi guys

    I'm on Win7 64-bit SP1. I have 4 drives hard 1 TB, with a set-aside for the backup only warnings. My backup settings are my drive Local C and My Documents, music, pictures and video libraries, with a System Image.

    I had nothing else problems with Win 7 back-up since I got this PC several years ago. Every time I solve a problem is only a matter of time before something of another b * # * rs it upwards again. My last problem is the above. I spend several hours waiting for him back up only to be told at the end that he did so successfully because of a user mapped section open! I try to re - start but wait so much time for the backup to give me the same error message. How the hell can I even know what that user mapping file? Can someone tell me how to solve this problem?

    M$ really knows how banjax SMEs by having them spend more time fix irritating errors like this to run their business!

    Hi Graham,

    If problem persists and that you are able to connect to your computer then I suggest you to check the system files are they work very well or not and to check who are trying to run the (SFC) System File Checker tool.

    Scan SFC will be scans all protected system files and replaces incorrect versions with appropriate Microsoft versions.

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

    1. Go to Start, click all programs and open the Accessories.
    2. Right-click on command prompt in the list programs, and then select run as administrator. If you are prompted for an administrator password or for confirmation, type your password, or click OK.
    3. In the command prompt, type the following command and press ENTER:

    sfc/scannow

    For more information, refer to this link:

    http://support.Microsoft.com/kb/929833/en-us

    Keep us.

    Kind regards

  • "The operation cannot be performed because you don't have sufficient privileges for some of the elements" is the message I get when you drag the icon of firefox to application icon?

    This is my laptop and I know my password install but do not understand why it gives me this message when you try to copy the new Firefox on the old Firefox application I currently have (to. 3.0.3).

    Any suggestions? I am also concerned about all my favorites organized, would be completely lost in the replacement of the software?

    If you have problems with the update or the permissions then more simple is to download the full version and trash the version currently installed to do a clean install of the new version.

    Download a new copy of the Firefox program and save the file on the desktop DMG

    • Trash the present application Firefox to do a clean (re-) install
    • Install the new version you downloaded

    Your profile data is stored in the Firefox profile folder, so you will not lose your bookmarks and other personal data.

Maybe you are looking for