Mixing MAX Task under one Start/Stop

Hi,
I have an end-of-line app that is testing some radio boards.  These tests will require turnng on/off the some digital lines, reading some analog values and some RS-232 communications, sorta async stuff for the most part. 
I have defined several specific tasks in MAX for the digital and analog operations.  My question, that I cannot seem to find an answer or example for, is can I mix analog reads and digital writes under a single StartTask/ StopTask(see below)?  If not, what is the method.  Please advise and an example that gets posted on the web would be GREAT.
Will the StopTask and ClearTask stop and clear all loaded tasks?  I guess a more in-depth of what is really going on might be helpful.
thanks
tim
    DAQmxErrChk DAQmxLoadTask("D_TurnOnPwr", taskHandle)
    DAQmxErrChk DAQmxLoadTask("A_MeasurePwr", taskHandle1)
    DAQmxErrChk DAQmxStartTask(taskHandle)
    DAQmxErrChk DAQmxWriteDigitalLines(taskHandle, 1, F, 1, _
        DAQmx_Val_GroupByScanNumber, i(0), sampsWritten, ByVal 0&)
     DAQmxErrChk DAQmxReadDigitalLines(taskHandle, 1, 10#, _
        DAQmx_Val_GroupByChannel, readArray(0), arraySizeInBytes, _
        sampsPerChanRead, numBytesPerSamp, ByVal 0&)
    DAQmxErrChk DAQmxStopTask(taskHandle)
    DAQmxErrChk DAQmxClearTask(taskHandle)

Hi Tim,
From what I understand, it appears that you are trying to generate digital signal and acquire analog signal at the same time.  If your card is line addressible, for example, the PCI-6221, you can add one line per task and address your lines in seperate tasks or you can add multiple lines per task and address your lines within the task.  You have to make sure to set up the task to be in "One Line Per Channel" mode, so you can address your digital lines one by one.  You need a seperate TaskHandle for each task.  On top of that, you cannot mix input and output, digital and analog in one task. However, you can always create multiple tasks for each operation you are trying to do, and once you start the task, you can read from or write to those channels, and the value will stay until you either clear the task or write some new values.  The values written into each digital line will not affect the values in others.  Make sure when you clear the task, use the correct taskhandle.
Hope this information helps.
Yi Y.
Applications Engineer
National Instruments
http://www.ni.com/support

Similar Messages

  • Two tasks under one change request

    hi all,
    when two tasks will be created under one change request, when using same user id.
    is there any harm having different tasks under one change request?
    is it better to have  different change request for different tasks...
    Thx in Advance....

    Hi
    There is no problem to use like taht.
    you can create any number of tasks of diffrent users or same user under same Transport Request.
    it won't create any problem also.
    you need to transport those tasks with that Transport request.
    individuval taska won't be transported.

  • Get Project Phase, task under one Project

    Dear all
    I want to get all task and phase under one projects wht is the function module name ?, i got one function module BAPI_BUS2172_GET_SUBOBJECTS. In that function module i need to pass
    PROJECT_DEFINITION_GUID,  but i have guid in DPR_project. How can i convert 16 digits to 32 digits
    is any function module is there ?
    Any one help me for those issues?

    Hi,
    If im not wrong, you need to change the display of SE11 to ALV from SE16.
    To do this, goto SE11>display DPR_Project>goto databrowser>
    now click on F8 or from menu select Setting> User parameter> then select
    ALV Grid display or ALV list
    then copy using CTRL+Y
    Niranjan
    Points welcome if useful info

  • Starting/Stopping Oracle 10g Personal Edition

    Just wondering how one starts & stops 10g PE?
    Oracle asks for Host credentials and database credentials.
    SYS doesn't seem to work and as there is no security settings under Admin (in PE) I can't create my login as a SYSDBA.
    Suggestions appreciated!

    PE is actually a superset of EE (Enterprise Edtion), with all EE options except RAC. It is targetted towards developers and designed to allow a develolper access to all of the capabiltites
    Therefore, you can search the docs to find out how to start/stop the database's instance[s] and any reference to the Enterrprise Edition will be valid in your case. If I remember correctly, there is a chapter in the Installation Guide that covers the topic.
    IN any case, PE is only licensed on Windows (presumably because developers only work in Windows???), so:
    - Go to Control Panel > Admin Tools > Services
    - Ensure the TNS Listener service is running first
    - Start the Oracle service
    The questions you ask indicate you are confused about the relationship between SYSDBA and the OS userid. I strongly encourage reading the first 2 chapters of the Concepts manual (at http://www.oracle.com/pls/db102/portal.portal_db?selected=1) to get a decent starting point.

  • How do I change the start/stop time for multiple songs not just one song at a time?

    How do I chnage the start/stop time for multiple songs not just one song at a time?

    I don't think you can in iTunes.
    Multiple editing in Get Info does not offer an option to change start/stop times.

  • Shell script to start, stop and restart a JAR under linux

    Hi everyone,
    Does anyone have idea to write a shell script to start, stop and restart a JAR under linux? it can also indicate a method or parameter? Thanks!
    this JAR inculdes a class with main method like this:
    public class Client(){
    public Client(String name){
    public void stopClient(){
    public static void main(String[] args){
    new Client("/tmp/text.log");
    }

    Does anyone have idea to write a shell script to
    start, stop and restart a JAR under linux? That part isn't really clear.
    Start would be java -jar myjar.jar.
    Stop could either be kill, which kills the whole process; kill -TSTP, which suspends the process, or some application-specific communication such as sending something over a port; or putting something into a file or something.
    Restart could just be the same as start (if stop is just kill); kill -CONT, if stop was kill -TSTP; or some other app-specific communication.

  • How to start, stop and restart task

    Hello Everyone,
    Need advice on what is the correct way to start, stop and restart a Java task?
    I have tried with Executors.newCachedThreadPool() or fixedThreadPool() however I was only able to submit the task once. My program crashed when i tried to resubmit the task again after a shutdownnow command()

    Tasks are designed to be run once. If you want restart functionality, use a service:
    http://docs.oracle.com/javafx/2/api/javafx/concurrent/Service.html
    The sample service I posted in the following thread demonstrates how to do this:
    Multithreading
    Use of Executors is not necessary as a Service encapsulates the execution thread management (though you can set your own executor on the service if you really needed it). All you need to do is make use of the service start, cancel, restart and reset methods as required. If you do use the cancel method, then you need to make sure that your service is properly interrupt aware for the cancel to function as you expect.

  • How do I tell what songs have altered Start/Stop times (Under "Get Info-Options") without opening every single song.

    Sometimes, for whatever reason, I'll change the Start/Stop times of my songs, and I'll forget which ones I've done this to. For me, this can be a hassle, due to the number of songs I have, and the actual amount I listen to my iPod. I'll admit that it's my fault, that when I'm making a ringtone or simply shortening a song temporarily, I'll almost definitely forget to change that shortened time back after I'm done. But that moment when you're listening to a song and it abruptly ends, especially in a place I don't have access to iTunes (and in that situation I usually forget before I get home, exacerbating the problem even further), it can be the most annoying thing ever for me. I don't want to deal with it any longer, though, so here's my question:
    How can I view which songs have altered Start/Stop times, without needing to view the Info for each individual song? I can't select all songs and then select "Get Info", because if I do that it won't even show the Option. The only reason I'm here is because I tried to figure it out myself, for weeks on end, and have returned no valid options for solution. So can someone please help me?

    Customize the Finder window toolbar, adding the Path icon to it. Select an item and click on the Path icon or, as you already know, add path to the window. There's also copypath.app available via the App Store.

  • Start Stop of an app

    Hello,
    I am trying to stop and start a J2EE app (war or ear) on Weblogic (say) using JMX.
    When I look at Weblogic's Jython based scripting tool (WLST) and Websphere's corresponding offering (wsadmin) I do see jython and JACL functions called startApplicaton and stopApplication that seem to do the trick. That is they can be used to start and stop the apps on various targets.
    I am assuming that these jython and JACL functions use JMX calls under the covers. But when I look at the JMX api, I do not see any api to start and stop a J2EE app. (I do see apis to start and stop a server, but I'm looking for the start/stop of one J2EE app). I am specifically looking at the operations that are documented on the ObjectNames.
    So, how does one start or stop an application using just JMX.
    Or if someone can supply the underlying code of the startApplication and stopApplication Jython functions, that will help too!
    Thanks in advance!
    Jay

    JaySean wrote:
    http://community.vzw.com/t5/DROID-X-by-Motorola/DROID-X-Guide-Restart-Issues-amp-More/td-p/522082
    I believe the OP was wanting to know about apps restarting after app os force closed in the task manager not about the device rebooting, this post doesnt really apply.

  • How to configurate system for two database under one server

    Hi Friends,
    I installed abd created A database by oracle 10GR4 in window 32 bit 2003.
    it works.
    Then i created other B database by DBCA under this server.
    When I shutdown immediate database.
    it works well. But I can not startup mount ot startup A database again,
    I got below message as
    SQL> startup mount;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    From EM, I saw as
    A listen Status Up
    LISTENER
    Oracle Home          
    C:\oracle\product\10.2.0\db_1\BIN
    Location          
    C:\oracle\product\10.2.0\db_1\BIN\network\admin
    BUT agent connect Status          
    Failed
    Details          ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
    A database instance down
    Host     salerpt.net
    Port 1521
    SID SALERPT
    Oracle Home C:\oracle\product\10.2.0\db_1\BIN
    Also I try to connect as
    SQL> connect sys/salel@salerpt as sysdba;
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    Form EM, I saw listen start up.
    Then I stop it. then restart it
    I can saw B db listen and can not see A db listen.
    also
    I saw that other B database works.
    My listen info as***************
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1\BIN)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = SALERPT.NET)(PORT = 1521))
    I check physical, two database use one common bin directory .
    I do not have any experience to handle two database under one oracle server.
    How to check and configurate DB server system?
    Thanks for help.
    Edited by: user589812 on Jan 4, 2009 8:17 AM

    Jim,
    Before starting the database A, did you set ORACLE_SID=A from command line? You can run as many instances you want from single server provided you enough memory, processing power. Also try starting your instances usign window services and check and post some lines from alert.log for database A.
    tnsnames.ora entry
    DATABASE_A =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = salesrpt.net)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = DATABASE_A)
    DATABASE_B =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = salesrpt.net)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = DATABASE_B)
      )Regards
    Edited by: OrionNet on Jan 5, 2009 10:55 AM

  • PowerPoint file won't open under one user account, but does under another account

    Hello,
    I have a 10.9.5 macbook pro here that will not open a Powerpoint file under one user account. It is up-to-date with Software updates and Office 2008 is up-to-date as well. When I try to open the PowerPoint file, I get the message, "PowerPoint closed unexpectedly" and I can choose to Reopen (which opens a blank presentation) or OK (which closes PowrPoint). I have tried double-clicking the file from the Desktop where is resides, File --> Open from within PowerPoint and also saved it to a flash drive and tried opening from there. It does open under the admin account on the same machine and it will also open on other machines. Other PowerPoint files are opening fine...it's just a problem with the one file. The user has Read & Write privilege to the file. I tried Repairing Disk Permissions, I have tried deleting microsoft plist files, and lastly, have re-installed Office 2008. At this point, I can only think to try deleting the user account and re-adding it, but wanted to see if anyone had any ideas before I go that route.
    Thanks in advance for any suggestions!

    Back up all data before proceeding.
    This procedure will unlock all your user files (not system files) and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
               ▹ Restart
    from the menu bar.

  • Way to Erase All Start/Stop Time Data?

    I used a DJ plugin called BPMer to load the BPMs into all my MP3s. It had an option "Optimize Start and Stop Times." This helps the program skip ambient intros of songs in order to beatmatch, mix and crossfade more efficiently. The only problem is that the information is retained under Get Info:Options:Start/Stop Times even if the plugin is turned off. It is stored in the ID3 info. I am wondering how to universally delete this information or reset it to default because I do not feel like going to every song individually to reset it (I'd have to do it about 6000 times). I tried selecting multiple songs, but the Start/Stop does not show up under Options when multiple tracks are selected.
    Also don't suggest to re-run the BPMer program with the box unchecked for optimize start/stop times. I tried it. I figured out how to make BPMer not edit the times in the future, but it won't erase or overwrite the old start/stop info on tracks I already used it on.
    Sort of a weird problem, but any ideas to save me from the nightmare of doing this individually 6000 times are greatly appreciated.

    Doug Adams has a script over at his great site that should help with what you're trying to do.
    http://dougscripts.com/itunes/scripts/ss.php?sp=resettracksstartstop
    Matt

  • Flip video starts, stops, doesn't run smoothly

    I have a Powerbook G4, 1.67 GHz, 10.4.11 with Quicktime 7.6. I downloaded the video from my Flip Ultra and it barely runs in Quicktime - stutters, starts stops, video lags behind audio. I downloaded the 3ivx and the Perian software and still no luck. I did import the video into iMovie HD and it works fine there. Any ideas?

    Is it one of the new Flip Ultra HD cameras that came out last month? Or is a standard definition Flip Ultra? If it's one of the new Flip Ultra HD camera your computer is under powered to playback the video in Quicktime.
    For 1280x720 (720p) video at 24-30 frames per second:
    (Macintosh)
    1.8 GHz PowerMac G5 or 1.83 GHz Intel Core Duo or faster Macintosh computer
    The Flip HD cameras uses 3ivx to encode the video to h.264. Not one of the best encoders. I have one of the flip's Mino HD camera and I have to transcode the video into another codec so I can play the video one my computer.

  • Two output tasks on one device

    I would like to learn the best way to configure two output tasks on one device. Both tasks employ the same channels. Task 1 outputs a 2D array (raster pattern on some channels and DC on others) for which the array values and array timing may change during the rastering. Task 2 outputs only DC values in a 1D array: one value for each channel. There is a Boolean that turns the rastering on and off.
        Should I have two separate tasks or one task where the DAQmx Timing and DAQmx Write change according to the raster on/off switch? Do the tasks need to Start each time an array value is changed? I've come close to making it work both ways and the major problem seems to be a "resources are unavailable" error when I want to stop everything and send 0 to all the outputs.
    Thanks, Peg

    Dear Paul,
        Thanks for your response. I have managed to produce a vi that seems to work with just one task. When changing back and forth from rastering to non-rastering, the task is stopped and started, but never cleared until the vi ends. What I don't understand is why new values are output even though I don't call Start Task each time a value is changed. I'm happy it works but I'm nervous that I don't know why. I have attached it in case you (or anyone) has the patience to take a look.
    Thanks,
    Peg
    Attachments:
    DAQmxAO Write DC& Raster switch.vi ‏280 KB

  • Custom Concurrent Program works under one user, not the other

    Hi,
    We created a custom concurrent program in our 12.1 Windows EBS environment. This is a "host" concurrent program which executes a cmd file on the host.
    Using user A with responsibility X this program runs OK. Using user B with the same responsibilty X it does nothing. Request finishes completed, but it does nothing.
    With user B, if I remove the .exe from the %XX_TOP%\bin directory it ends in error. When I remove the .cmd from %XX_TOP%\bin it ends completed succesfully.
    User A and B have the same user preferences and the same profile option values at the user level.
    Can someone tell me what more to check to solve this problem?
    Thanks, Marco

    No the concurrent program is not user-dependent. It starts with copying a file from one directory to another and then starting a sqlloader process. But even if I only put an echo in the cmd file, it is not started when executing with user B. The concurrent request logfile is empty (besides the usual lines about program name,start/stop timestamps, printing info,etc. in it).
    I run the concurrent program under the same responsibility for both users.

Maybe you are looking for

  • Hot synch old Zire 72 with new Treo Pro

    Can anyone tell me how to do this? Post relates to: Treo Pro T850 (Sprint)

  • Adobe premiere elements 12 ne s'ouvre pas de l'icone ou du projet je n'ai rien

    Bonjour, Re: adobe premiere elements 12 sur pc windows 8.1 ne s'ouvre plus créée par AT Romano dans Premiere Elements - Voir la description complète ocho3546 Hello, I am beginner in data processing; j' entered the software adobe first elements 12 whi

  • How do I get ADSL2+ (Up to 20MB)

    I've been on BT Broadband forever and Broadband Anywhere for just about 18 months (contract ends this month, I think!).  Try as I may I cannot find a way through any BT.com web page that will allow me to upgrade from 8MB max to 20MB max, despite the

  • Iphoto picasa

    Hello - I would like to upload my pictures in iPhoto to my Picasa account. Does anybody know, if there is a quick way to do this? There used to be a Picasa Web Album Uploader for iPhoto - like this: http://picasa-web-albums.en.softonic.com/mac/downlo

  • Mail won't open from the dock

    Hi. Since upgrading to Mavericks Mail and Safari wont open from the dock. Even if the apps are open. I have to right click and select "New viewer window" The net result is I end up with several open windows, but even if I click "bring all to front" n