Instr. and DAQ Assistants - Time to take off the training wheels?

Hi everyone,
I have written a control system program using a producer/consumer with state machine architecture - textbook LabVIEW beginner intermediate.
In the producer, I have 6 different DAQ assistants taking AI and DI data from PXI mounted data acquisiton cards and two Instr. Assistants taking data from PXI serial ports.  In the consumer, I have a similar situation.  There are 7 DAQ assistants sending digital and analog requests to 3 different PXI chassis and one Instr. asssistant sending requests to a PXI serial port. 
Is this frowned upon?  Would any of you pros call this a finished job if it is still bound with Assistants?  I have looked at the code involved in making these assistants into LabVIEW code (writing them out, so to speak), but it is complex and I haven't been able to put in the time to learn all of the different DAQmx and VISA functions and subVI's. 
However, I have some difficulties that arise when, for instance, a component that is monitored/written to by a serial port is turned to manual control and the assistant times out.  It times out the entire control system, which is not desirable.  Is the fix in error handling, or getting rid of the assistants altogether?
Any responses are appreciated - even if you are the bearer of bad news!
Brad

Hi Brad,
Using DAQ assistants in a loop does come with some overhead. However if you are acquiring at relatively low speeds and do not want to use the DAQmx VIs, it shouldn't be a problem. Though programming using DAQmx VIs might look somewhat intimidating it follows a general priciple common to most I/O in LabVIEW. You open/create a channel, configure it, read or write and then close it. Generally, only the read or write VIs will be in the loop. So doing the creation and configuration every iteration of the loop is the overhead.
I am not entirely sure what is timing out and what you are doing to cause a time out. There are two ways to generally fix time out errors. One, as you pointed out, is to handle the error. You can do this by unbundling the cluster to look at the error code, if it is a time out error, you can reset the error cluster.
The other solution is to increase the timeout for the DAQ assistant. (Wire the time (in seconds) you want it to wait, to the timeout input of the DAQ Assistant).
Cheers
Malay Duggar
NI

Similar Messages

  • HT204347 my macbook pro doesnt turn on without the battery connected. and the battery says is not charging and its green. if i take off the charger it shuts down directly. and when i turn it back on it sets to a different date, 31 december 2000 time is 6:

    please help me.. i m stressed out

    http://support.apple.com/kb/ht3964
    There are links on this page to take you to your specific model of MBP - removable battery or no removable battery.

  • How take off the attachment of email in SRM 5

    Hi SRM friends,
    I'm using the SRM 5 and when ever purchaser accept the bid, an email will go to the bidder  and I already changed the body layout by the SMARTFORM BBP_CHANGE_SF_BID, and now, I want to take off the pdf attached on this email. I tried put a blank parameter in PDF output form name using BADI BBP_OUTPUT_CHANGE_SF in this "event", but don't worked.
    So, somebody know how can I take off the attachments for the mails sent for bidder?
    Thanks in advance.
    Julio Tavares

    Hi
    See related link ->
    SRM 5 - authentication request attaching documents in SC
    I am not sure... But I think, You cannot remove the ATTACHMENT link for a particular screen ONLY.
    <u>Disable document attachment</u>
    Disable Document Attachment
    This is because you can only remove this link by modifying the ITS service BBP_PDH_TEXT( template SAPLBBP_PDH_TEXT_100) but this will be affecting all the screens (SC,PO..etc)where this attachment functinality is used.
    Also this BADI will not be useful for removing the attachment section.
    <u>Refer to the following pointers for more alternative solutions/workarounds -> </u>
    Re: How to hide document fields in Bid Invitation
    Close frame attachments in shopping cart details screen
    Re: Internet Service  BBP_CTR_MAIN
    Re: Attachment, ECC to SRM.
    Queries regarding fields in Bid invitation
    Re: Attachment storage in shopping cart
    Do let me know.
    Regards
    - Atul

  • TS1367 Hallo,I have an IMAC 21.5. which does not start.When i press the power button i hear only beep with an interval of 4-5 seconds.Some times when i take off the RAMS and put them again then get a white screen and shows that i have to insert a bootable

    Hallo ,I have an IMAC 21.5. which does not start.When i press the power button i hear only beep with an interval of 4-5 seconds.Some times when i take off the RAMS and put them again then get a white screen and shows that i have to insert a bootable device.Then i bought OSX mountainlion on line and wrote it on a DVD and tried with a USB key board to start the DVD.But does not work.Please help me to get this imac work.
    Thankyou in advance  for your help.
    Terrence

    Hey terremo,
    Thanks for the question. From the information you provided, it sounds like the iMac is successfully turning on, however video is not displayed. These symptoms can usually be isolated further by the troubleshooting steps in this article:
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/HT1573
    Thanks,
    Matt M.

  • Hay. i change the screen LCD in IPAD 2 3G but i don't know what happen. She was working and every thing it's ok. One time i turn off the ipad and turn on more time, i don't see good in LCD the  brightness is to low and i can see any thing

    Hay. i change the screen LCD in IPAD 2 3G but i don't know what happen. She was working and every thing it's ok. One time i turn off the ipad and turn on more time, i don't see good in LCD the  brightness is to low and i can see any thing!! and i want to know why is happen

    Assuming you mean that you performed the repair yourself, it would seem that you either obtained a defective screen or you did some sort of damage when you replaced the screen. You can try asking for assistance on ifixit.com, a site dedicate to those attempting their own repairs, or you can take the iPad to a shop and pay them to try to correct the problem for you. Apple will no longer touch your iPad now that you've attempted your own repairs.
    Regards.

  • I purchased a iMAC off eBay. I was wondering how do I take off the previous owner name and replace mines?

    Hi,
    I purchased a iMAC off eBay. I was wondering how do I take off the previous owner name and replace mines? I reset all passwords to log in,but his name in the mac keeps showing up.
    Thanks,
    Honey
    <Re-Titled By Host>

    Before buying a second-hand computer, you should have run Apple Diagnostics or the Apple Hardware Test, whichever is applicable.
    The first thing to do after buying the computer is to erase the internal drive and install a clean copy of OS X. You—not the original owner—must do that. Changes made by Apple over the years have made this seemingly straightforward task very complex.
    How you go about it depends on the model, and on whether you already own another Mac. If you're not sure of the model, enter the serial number on this page. Then find the model on this page to see what OS version was originally installed.
    It's unsafe, and may be unlawful, to use a computer with software installed by a previous owner.
    1. If you don't own another Mac
    a. If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc from the Apple Store or a reputable reseller—not from eBay or anything of the kind. If the machine is very old and has less than 1 GB of memory, you'll need to add more in order to install 10.6. Preferably, install as much memory as it can take, according to the technical specifications.
    b. If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for a MacBook Air. You should have received the media from the original owner, but if you didn't, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To start up from an optical disc or a flash drive, insert it, then restart the computer and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
    c. If the machine shipped with OS X 10.7 or later, you don't need media. It should start up in Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
    d. Some 2010-2011 models shipped with OS X 10.6 and received a firmware update after 10.7 was released, enabling them to use Internet Recovery. If you have one of those models, you can't reinstall 10.6 even from the original media, and Internet Recovery will not work either without the original owner's Apple ID. In that case, contact Apple Support, or take the machine to an Apple Store or another authorized service provider to have the OS installed.
    2. If you do own another Mac
    If you already own another Mac that was upgraded in the App Store to the version of OS X that you want to install, and if the new Mac is compatible with it, then you can install it. Use Recovery Disk Assistant to prepare a USB device, then start up the new Mac from it by holding down the C key at the startup chime. Alternatively, if you have a Time Machine backup of OS X 10.7.3 or later on an external hard drive (not a Time Capsule or other network device), you can start from that by holding down the option key and selecting it from the row of icons that appears. Note that if your other Mac was never upgraded in the App Store, you can't use this method.
    3. Partition and install OS X
    a. If you see a lock screen when trying to start up from installation media or in Recovery mode, then a firmware password was set by the previous owner, or the machine was remotely locked via iCloud. You'll either have to contact the owner or take the machine to an Apple Store or another service provider to be unlocked. You may be asked for proof of ownership.
    b. Launch Disk Utility and select the icon of the internal drive—not any of the volume icons nested beneath it. In the  Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive.
    c. An unusual problem may arise if all the following conditions apply:
              OS X 10.7 or later was installed by the previous owner
              The startup volume was encrypted with FileVault
              You're booted in Recovery mode (that is, not from a 10.6 installation disc)
    In that case, you won't be able to unlock the volume or partition the drive without the FileVault password. Ask for guidance or see this discussion.
    d. After partitioning, quit Disk Utility and run the OS X Installer. If you're installing a version of OS X acquired from the App Store, you will need the Apple ID and password that you used. When the installation is done, the system will automatically restart into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    e. Run Software Update and install all available system updates from Apple. To upgrade to a major version of OS X newer than 10.6, get it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the original owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed—you have to repurchase them.
    4. Other issues
    a. If the original owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're irrevocably linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Mac App Store Customer Service has sometimes issued redemption codes for these apps to second owners who asked.
    b. If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able to  authorize it immediately under your ID. In that case, you'll either have to wait up to 90 days or contact iTunes Support.
    c. When trying to create a new iCloud account, you might get a failure message: "Account limit reached." Apple imposes a lifetime limit of three iCloud account setups per device. Erasing the device does not reset the limit. You can still use an iCloud account that was created on another device, but you won't be able to create a new one. Contact iCloud Support for more information. The setup limit doesn't apply to Apple ID accounts used for other services, such as the iTunes and Mac App Stores, or iMessage. You can create as many of those accounts as you like.

  • Satellite P205-S6277: Can I take off the battery and connect the power too?

    I am working on my notebook Toshiba satellite P205-S6277, 80% of my time at home.
    Can I take off the battery and connect the power to a backup UPS in order to make battery life longer?
    I can charge it once a week.

    Of course you can do this. You can remove the battery and work on AC power supply only. Be sure there is no dust on the desk and the battery place on the notebook stay clean for further usage.
    Bye

  • I have a macbook pro core i7 mid 2012 And update to the latest version 10.8.4 system after updating the system I have the problem appeared to take off the device and stops at the apple logo for about 5 minutes and then enters the desktop How can I solve t

    I have a macbook pro core i7 mid 2012
    And update to the latest version 10.8.4 system after updating the system I have the problem appeared to take off the device and stops at the apple logo for about 5 minutes and then enters the desktop How can I solve this problem and thank you

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Select the messages logged after the boot, during the time something abnormal was happening. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    For example, if the problem is a slow startup taking three minutes, post the messages timestamped within three minutes after the boot time, not before. Please include the BOOT_TIME message at the beginning of the log extract.
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the entire contents of the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • How can I take off the text on the bookmark bar and just leave the Icons of the bookmarks on the boomark bar ?

    I'd like to save space for more sites on my bookmark bar so I'd like to take off the text on the bookmark bar and just leave the site Icon's...that way there will be much more space to add on more sites to my bookmark bar.

    SImple open the bookmark properties and erase the name, to open the bookmark properties:
    *Go to '''Bookmarks''' >> '''Show all bookmarks''' >> or press '''Ctrl+Shift+B ''' click on the bookmark to see the properties.
    *Go to bookmark page click on the blue star to see the properties or Press Ctrl+D

  • HT1657 I rented a movie and it's totally downloaded, but when I play it there's no sound or picture (though the progress bar is moving and time is coming off the movie like it's trying to play).  Help!

    I rented a movie and it's totally downloaded, but when I play it there's no sound or picture (though the progress bar is moving and time is coming off the movie like it's trying to play).  Help!

    Hi California Jess,
    Thanks for using Apple Support Communities.  If you were not able to watch your rental movie, you can report that to the iTunes Store by following this:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Cheers,
    - Ari

  • Recipe Management Using State Machines and DAQ Assistants

    I am writing LabVIEW code to control a conversion process for up to 4 devices on one apparatus.
    The operator will select from these 4 devices which ones will go through a conversion process. Therefore - they can select some or all of the devices to go through the process.  The process is the same for all 4 devices. The difference between the 4 are the digital outputs used for the conversion process.
    Clearly a state machine is applicable. However, I would like to "reuse" the process conversion code of the state machine by creating a separate recipe for each device and merely change the digital outputs (their physical location) for the device under conversion. Presently I have DAQ Assistants controlling digital ouputs for the conversion of one device. Is it possible to "reuse" the code by creating a recipe or a lookup table to reassign the DAQ Assistants to their proper physical location (the digital output lines) for the device under conversion?
    I could - copy and paste the code, go into the process and reassign every DAQ Assistant to the correct physical channel of each digital output for the other 3 devices. I was curious if there was a more efficient way.
    I see documentation online for recipes; however they are dated 2006. I thought there may be some updated examples.
    Using:
    LabVIEW 2011
    cDAQ-9188 chassis

    Hi MgDAQ,
    DAQ Assistant is a quick way to start acquiring data, however it's not the most efficient.
    Everything that DAQ Assistant does can be acompished with basic DAQ functions on the
    Measurement I/O -> NI-DAQmx pallete. For example, you can use DAQmx-Create Channel.vi and
    a Channel Constant to select the channel from which you want to acquire data.
    To get started with using the DAQmx functions you can browse through Hardware I/O examples in the Example Finder.
    Open up a new LabVIEW VI and then go to Help -> Find Examples -> Hardware Input and Output [folder] -> DAQmx -> Digital Measurements
    Now, as you probably know, copying and pasting code is inefficient and it's not a good programming practice. So what I would do is create the code for your conversion process and then simply change the channel constant to read the digital output you need.
    Mikhail
    RF Toolkits, Product Support Engineer
    National Instruments

  • My mini has a password on it now that I have iOS 7   I do not know the password. Nor will it let me restore since it has find my mini in iCloud. How can I restore and take off the password

    My mini has a password on it now that I have iOS 7   I do not know the password. Nor will it let me restore since it has find my mini in iCloud. How can I restore and take off the password

    Sounds like then maybe a "friend" got hold of your phone and set a SIM card password.  Not much you can do if that is the case if you do not know the password except go to your carrier and request a new SIM card.

  • My MacBook pro won't recognize hard drive I put in it. It boots only to a white screen unless I boot to my recovery USB. If I do that then I can select my USB and my external time machine drive in the disk utility, so no problems there. But what do you

    My MacBook pro won't recognize hard drive I put in it. It boots only to a white screen unless I boot to my recovery USB. If I do that then I can select my USB and my external time machine drive in the disk utility, so no problems there. But what do you think it is? It won't recognize any hard drive I put in the machine, so might it be the sata cable?

    Boot the Recvoery USB, use Disk Utility to select the internal drive makers namea and size on the left.
    Now select erase and select the midde option and click erase, it will take a bit to complete but it's best for the drive.
    Now select Partiton tab, click the big box and Options: GUID and then Format: OS X Extended journaled and click apply.
    Quit and you should be able to install OS X now with your Apple ID and password.
    see
    http://osxdaily.com/2011/08/08/lion-recovery-disk-assistant-tool-makes-external- lion-boot-recovery-drives/

  • How do you take off the passcode on a ipod touch 5th generation

    the only reason that it says that is because the right side of my screen is not working, so when i try to put my passcode to many times it said to connect to itunes. so i do know what my password is its just i can't try anymore. so can you please tell how how i can take off the passcode or the connect to itunes without losing everything..........thanks

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased. That is how the security feature works
    iOS: Forgot passcode or device disabled
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes       
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • How can i take off the notebook s name

    I ve bought my Macbook Pro to another person and now
    Before to give the macbook to her i need to
    Take off the name i d given to it.
    I d like to delete things to macbook start
    From zero...for new notebook owner
    Will be able to give another name to it
    And havent see anything of me in this notebook.

    You must erase the drive and reinstall Mac OS X. If your Mac came with DVDs:
    1. Insert the Mac OS X disc and press C key while your Mac is starting.
    2. Go to Utilities > Disk Utility, select Macintosh HD in the sidebar and erase the drive.
    3. Install Mac OS X. When the installation finishes, turn off the computer.
    If your computer didn't come with DVDs:
    1. Press Command, Option and R keys while your computer is starting and open Disk Utility.
    2. Select Macintosh HD in the sidebar and erase the disk.
    3. Install Mac OS X. When the installation finishes, turn off your Mac

Maybe you are looking for