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

Similar Messages

  • I just upgraded to mountain lion osx and now my applications are crossed out and out of date. they will not run. how do i fix this?

    I just upgraded to mountain lion osx and now my applications are crossed out and out of date. they will not run. how do i fix this?

    Here is a recent post I assembled for a similar question:
    Unfortunately you got caught up in the minor miracle of Rosetta.  Originally licensed by Apple when it migrated from the PowerPC CPU platform that it had used from the mid-1990's until the Intel CPU platform in 2006, Rosetta allowed Mac users to continue to use their library of PPC software transparently in emulation.
    However, Apple's license to continue to use this technology expired with new releases of OS X commencing with Lion (and now Mountain Lion).  While educational efforts have been made over the last 6 years, the fact is that Rosetta was SO successful that many users were caught unaware UNTIL they upgraded to Lion or Mountain Lion.
    Workarounds:
    1. If your Mac will support it, restore OS X Snow Leopard;
    2.  If your Mac will support it, partition your hard drive or add an external hard drive and install Snow Leopard into it and use the "dual-boot" method to choose between your PowerPC software or Lion/Mt. Lion;
    3.  Upgrade your software to Intel compatible versions if they are available, or find alternative software that will open, modify and save your data files;
    3.  Install Snow Leopard (with Rosetta) into Parallels:
                                  [click on images to enlarge]
    Full Snow Leopard installation instructions here:
    http://forums.macrumors.com/showthread.php?t=1365439
    NOTE:  Computer games with complex, 3D or fast motion graphics make not work well or at all in virtualization.

  • HT1918 how can i get the first device i put in out and the second one to stay in without time restrictions?

    So I've been having an apple account before I got my first and only iphone. But I plugged in my friend's device first into my account and the account read it as the owner device of the ID. Two days later, I plugged in my device and read it as a second device in the accound and therefore, my device is just "borrowing" the ID and it set a time limit to use it. But it needs to be the other way around. The first device is not mine and I want it out, and I want the second device in as the owner of the apple account.
    What do I do?
    I've already removed the first device,but it still has a time restriction on the second device. THE SECOND DEVICE IS MY DEVICE AND ITS MY ACCOUNT!

    "Well, since its the first device into the account, I guess the account read it as the "owner" device of the account."
    There is no such thing as "owner" device at all.
    "Apparently, the account read it as the second device and thought that it was "borrowing" the account since it was the second device"
    There is no such thing as "borrowing" the account.  You can use your account from ANY device/computer that has itunes.
    You seem to completely misunderstand the way it works.
    There is no time limit.  You are confucing your account with associated devices:
    iTunes Store: Associating a device or computer to your Apple ID
    If you want to buy music from your iphone, simply go to Settings and sign into your account.
    The musci your friend bought using your account belongs to you and it is not legal from your friend to use.
    iPhone User Guide (For iOS 6 Software)

  • Playstation 3 Digital out to Mac Pro 3,1 Digital in and out again through Konnekt 6

    So I got a used Mac Pro 3,1 on craigslist and it's a beast.  Only problem is that the superdrive was broken.  No big deal really, but I've been thinking about how it'd be cool to be able to watch blu-ray movies on it. I Could just buy an 80 dollar drive, or I could use my Playstation.  I've got optical outputs on the PS3 and inputs on the Mac, so my question is what the easiest way to route the sound would be.  Just using audio/midi setup? Usually inputs need to be "armed" so that there isn't that constant stream of info and I imagine with digital it's the same?  Would I have to open up Logic and do some kind of soundflower bed magic?
    Thanks!

    Ok so I'm home now and continued my seach... and found this:
    http://reviews.cnet.com/8301-13727_7-20075185-263/workaround-for-audio-problems-with-os-x- 10.6.8-update/?part=rss&tag=feed&subj=MacFixIt
    I won't be able to try it until back in the studio tomorrow but it may just be what I need - will report back here. Seems that it is an OS issue though and not an Adobe one.

  • Digital In AND Out on 6024E

    Hi
    Is it possible to set 2 lines of the digital port on write (Output) and the other 6 on read (Input)? if yes, how do I have to config the DIO and which vi's do I have to use.
    thanks a lot for your help
    Yves

    Line direction is set by DIO Port Config.vi. It can be found at the Data Acquisition>Digital I/O>Advanced Digital I/O palette. There's an input called line direction map. A line is an output if it's bit is 1 and an input if it's bit is 0.

  • Import and Copy Opening – One Task & One Prompt Set

      Hi Experts,
    We want to create one data manager package that contains both import from BW with UI and copy opening. We ran into some issues.  Maybe you can help:
    We created a new process chain that contains both tasks, and created a new DM package that has both scripts.  Users only want to enter parameters such as entity and time one time for both tasks...
    When I commented out the Copy opening prompts, relying on the prompts from the Import from BW, I receive an error. The message:
    Task name LOAD
    INFOPROVIDER:
      Replace and Clear Submit
    count: 1114
      Replace and Clear Reject
    count: 0
      Aggregate count: 376
      Submit count: 312
      Reject count: 0
    Invalidate
    selection condition
    I believe it's because we have the %SELECTION% recorded twice in the script (thinking that we will take the variables from the import and continue to use for the Copy opening).
    Also thought to switch around the prompts, hard coding the cube name, and using a dimension selection screen like Copy Opening.
    Any ideas for executing this would be really helpful.  Below please find the standard scripts for
    import and Copy Opening.
    Thank you.
    Eyal Feiler
    'DEBUG(ON)
      PROMPT(INFOPROVIDERSELECTION,%InforProvide%,%SELECTION%,"Please select the InfoProvider
    and set selection (InfoProvider list is restricted by both
    BW and BPC authority)",,)
    PROMPT(KEYDATE,%KEYDATE%,"Key date",0)
    INFO(%TEMPNO1%,%INCREASENO%)
    INFO(%ACTNO%,%INCREASENO%)
    TASK(/CPMB/INFOPROVIDER_CONVERT,OUTPUTNO,%TEMPNO1%)
      TASK(/CPMB/INFOPROVIDER_CONVERT,ACT_FILE_NO,%ACTNO%)
      INFO(%MAI_TRFILE%,\ROOT\WEBFOLDERS\MAI_CONSO\Consolidation\DATAMANAGER\TRANSFORMATIONFILES\EXAMPLES\MA\T_FILE_BW_IPROVIDER.XLS)
    TASK(/CPMB/INFOPROVIDER_CONVERT,TRANSFORMATIONFILEPATH , %MAI_TRFILE%)
    TASK(/CPMB/INFOPROVIDER_CONVERT,SUSER,%USER%)
    TASK(/CPMB/INFOPROVIDER_CONVERT,SAPPSET,%APPSET%)
    TASK(/CPMB/INFOPROVIDER_CONVERT,SAPP,%APP%)
    TASK(/CPMB/INFOPROVIDER_CONVERT,FILE,%InforProvide%)
    TASK(/CPMB/INFOPROVIDER_CONVERT,INFOPROV_SELECTION,%SELECTION%)
    TASK(/CPMB/INFOPROVIDER_CONVERT,KEYDATE,%KEYDATE%)
    TASK(/CPMB/LOAD_IP,PREPROCESSMODE,0)
    TASK(/CPMB/LOAD_IP,TARGETMODE,2)
    TASK(/CPMB/LOAD_IP,INPUTNO,%TEMPNO1%)
    TASK(/CPMB/LOAD_IP,ACT_FILE_NO,%ACTNO%)
    TASK(/CPMB/LOAD_IP,RUNLOGIC,1)
    TASK(/CPMB/LOAD_IP,CHECKLCK,1)
      TASK(/CPMB/LOAD_IP,KEYDATE,%KEYDATE%)
      'supress
    prompts for work status default script and replace - default as yes and yes
    replace.  Default transformation file
    path
    Copy opening
    PROMPT(SELECTINPUT,,,,"%ENTITY_DIM%,%CATEGORY_DIM%,%CURRENCY_DIM%,%TIME_DIM%")
    TASK(/CPMB/OPENING_BALANCES_LOGIC,SUSER,%USER%)
    TASK(/CPMB/OPENING_BALANCES_LOGIC,SAPPSET,%APPSET%)
    TASK(/CPMB/OPENING_BALANCES_LOGIC,SAPP,%APP%)
    TASK(/CPMB/OPENING_BALANCES_LOGIC,SELECTION,%SELECTION%)
    TASK(/CPMB/OPENING_BALANCES_LOGIC,LOGICFILENAME,COPY_OPENING.LGF)

    Hi Vadim,
    Thanks, isn't %SELECTION% passed to the process chain?  I see that the process chain RUN LOGIC contains a field SELECTION.  If the value is passed, then I have to change that too?
    2) If we change the value to SELECTION2, then how does this variable capture the parameters for the dimensions?  I am commenting out the prompt of the copy opening script keeping the first prompt below from the import from BW in order to capture the parameters for both scripts.
    PROMPT(INFOPROVIDERSELECTION,%InforProvide%,%SELECTION%,"Please select the InfoProvider
    and set selection (InfoProvider list is restricted by both
    BW and BPC authority)",,)
    Thanks
    Eyal

  • Anyone know how to reach someone in customer service who will not out and out LIE to us?

    Just so frustrated right now... in the near week since my husband's iPhone was stolen, we have spoken to four different reps and three so-called supervisors. Each one has either made the problem worse or actually lied to us. Does anyone know how to reach someone at Verizon who will help us? We have three iPhones with Verizon and are ready to leave for AT&T.
    So far, this is what we've had:
    1. As we were tracking the phone with the police to get it back, Verizon tech support advised us to wipe the phone because we'd still be able to track it. WRONG. Phone lost forever. Verizon clearly does not understand what "wipe" means on MobileMe. What they should have said is, "We don't know for sure, so don't wipe it."
    2. Rep transferring my husband's phone number to a backup handset transferred MY number to that phone, deactivated MY iPhone and reported it as stolen. When they were trying to fix it, we were assured that our unlimited data plan would not be affected. WRONG. Reps are now refusing to give it back. 
    3. Next rep advised us to get insurance on the phones because if anything happens, they are replaced for free. WRONG. $199 deductible, which we found out from the next rep. 
    4. The supervisor we spoke to yesterday said she would pull the tapes from the call center, review them to make sure that IT gave us the wrong information, and then call us back the next day with a discounted rate on a new iPhone. She gave us her name and direct number... both of which were bogus. The number goes to a media specialist at some public school. Subsequent reps have told us that there is no way anyone at Verizon would say that.
    5. We have been promised three times that a supervisor would call us within 24 hours... almost a week later, no calls from anyone. 
    So if anyone has any leads on how to speak to someone who will make this nightmare go away, please, please, let me know. Thank you. 

    feochadan wrote:
    Thanks to this board, my problems were solved! This thread can probably be deleted.
    The point of this board, being a peer to peer forum, is so that people can learn how to resolve issues that others have already gone through. Please let us know how it was resolved so that others in the future with the same issues can be assisted.

  • Mixing DVCPRO HD and Animation in one Sequence...Thoughts?

    I'm working on a project that was shot in DVCPRO HD 720p,
    and I need to include a lot of clips that have been processed
    to create alpha channels, so I'm using the Animation codec
    (square pixels) to bring them in from Shake.
    With all the layering I'm doing, now the only clip using DVCPRO HD
    is the background. Playback is quite choppy, but it's all working
    when it's rendered.
    Just wondering, would it make sense to set the sequence to
    Animation codec, with square pixels, and if so, should
    I set Render preferences to RGB instead of YUV?
    Or maybe I should convert the sequence to ProRes 422?
    Or should I just keep it set to DVCPRO HD?
    My final output could be either codec. I'll probably make
    some DVDs, HD H.264s, and a Flash movie by the time I'm done.
    If you can offer any advice or point me to a workflow
    description that addresses extensive layering in FCP,
    I've got some chocolate covered stars to give away.
    Thanks for your time!
    Les

    If I could afford FCP 7, I would definitely use ProRes 4444.
    Sigh.
    Meanwhile back in my world, I didn't quite understand
    what Luca wrote:
    gogiangigo wrote:
    you may want to offline your edit using Apple ProRes
    (use composite modes if required) and when you are done...
    online everything for the master.
    If I use ProRes 422 for my offline codec, how do I access
    the alpha channel? Seems impossible.
    I was using a bizarre workflow, which I may use again.
    Whenever I had a Shake render with alpha, I would render
    out 2 DVCPRO HD files: One with the RGB data, and one
    B&W with the alpha data. Then I would place them
    both on the FCP timeline, with the RGB track using
    the B&W track in Travel Matte Luma mode.
    That technique works OK, but you've got to remember
    not to premultiply, since with non-alpha clips,
    you don't have the option of setting the alpha to Black.
    Anyway, Luca, if you could explain your idea in a little
    more detail, that would be cool.
    Anyone else out there doing complex layering in FCP?
    FCP 6, that is.

  • My iphone 3g has stopped working? it was fine till a few weeks agom i took my sim out and out it after a week and it keep sayingn no sim. what shall i do?

    I used my iphone through out summer, i connected it to my itune software and when i re inserted my sim it stooped workin and keeping sayn no sim or no service, what shall i do? x

    I would call Apple tech support, which is excellent.  Or take the phone to your local Apple store - not AT&T or Verizon, as the Apple techs specialize in Apple products and are somewhat fanatical about them.
    Regarding the photos, they are probably still on the simm card in the phone and recoverable.  Check with the Apple folks to get them back... sorry about your pet!

  • Out and Out Sub Contracting scenario

    the process is :
    1) Create Standard PO for component material on Vendor A (in delivery address tab, entering Sub con vendor with tick)
    2) Now doing GRN for the above PO, the material is received directly at vendor location. 
    3) Sub Con PO is created on the subcon vendor.
    4) As the component material is already with sub contractor no transfer posting (541) is done  .
    5) Now we have to create sub contracting challan (J1IF01) which will go to subcontractor from the plant.
    6) Now the issue is with what reference shall i create subcon challan in J1IF01.
    System allows J1IF01 with ref to transfer posting doc only.
    Please suggest.

    As material is directly going to subcontractor from vendor, you don't need to create 57F4 challan for the same.
    Challan needs to be generated if material is going from your premises.
    If you want to provide the challan to your subcontractor, then you have to take the raw material into your premises first(MIGO), then MB1b-541 & then J1IF01.
    Regards,
    Piyush

  • Combining Digital OUT and Digital IN with DAQmx on E-Series

    Hi,
    I'm trying to combine Digital IN and OUT-function with the DAQmx-driver. I have set the first four channels of my E-Series to IN and the other four to OUT. How can I programm this? I encounter problems when changing an OUT-channel.
    Earlier I did that with the traditional DAQ driver by setting the port to 240 (first four In, second four OUT)
    Thanks for any help

    Hi,
    The easy way i know, is by configure Global Channels at the NI-Max and then use the Linked VI i send.I know it's a elementary VI, but u can continue from this point.
    Hope it helps ....
    Bush-Man
    Attachments:
    Read and Write Digital.vi ‏61 KB

  • How to use the Digital Audio in & out RCA jacks a6010n

    On the lower right of the back of my Pavillion a6010n desktop, above the mouse and keboard connections and below the monitor connection are two RCA jacks labeled Digital Audio in and out.  The top one has an orange insulator and is labeled "out", and the lower one has a black insulator and is labeled "in".  I have been unable to find any information about these or how to use them.  Can anyone please tell me or direct me to information about this?  I have Vista Home Premium 32 bit and have added a Sound Blaster Audigy sound card which is cheap but has a better S/N ratio.  In Control Panel --> Sound the digital output for the sound card is listed but there is nothing about the Digital Audio jacks I would like to be able to use.  Thank you all.

    Yes there is. I suggest trolling these boards for the 3rd party remote solutions that will free you to use the remote in ANY application like Winamp, Notepad, Windows Media Player, etc.
    Just my two opinionated cents...

  • Multiple inner joins combined with outer and right.

    Hello
    Can someone give me an example of multiple inner joins?
    Meaning inner join on more than 3 tables. Can someone provide me sql statement that would be great?
    Also can you combine inner outer and right in one query if so how? Again, can someone provide me sql statement that would be great?
    Thank you so much

    You can look at my sample Re: Need Assistance to write a procedure for the below requirements!!!
    John

  • 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).

  • Reader Ver 9 - several Windows - just one Task

    Is it possible to start Adobe Reader 9 with several documents and open just one task icon? I have a customer around who wants to switch between his applications using [alt]+[tab] and wants to have only one icon for all reader documents.
    Thanks in advance.

    refer to this thread : http://www.adobeforums.com/webx/.59b5b3cb
    and file a bug/feature request here:
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&product=49

Maybe you are looking for