Programati​cally delete a DAQ device

I have created a system with hardware (a USB DAQ) and software that is to be installed on multiple computers overseas. I want to make the set-up as easy as possible because I don't think the people doing the setup will be very well trained, and I won't be there to fix any problems.  I have created an installer that includes all the hardware as well as software setup, but there is one issue left, and I'm not sure what the best way to solve it.  If the installer is run before the DAQ is connected, then the installer creates a virtual device. If the DAQ is then connected, it is named Dev1, which doesn't work with any of my tasks, of course. I have some code that runs, and verifies the hardware set-up each time the system is started, so I can see if the device with the proper name is virtual, and if so, I can rename the actual and virtual DAQ device to the right names, so my tasks operate properly. However, I now have a virtual device hanging out on my system doing nothing, which I would like to avoid, because there is an outside chance that I will end up on the phone trying to explain to people how to straighten out a system when it goes bad, and I want to keep it as simple as possible.  I have two questions:
Is there some way to delete the virtual device programatically?
Is there some better approach to accomplish what I am trying to do? I thought about not allowing the installer to proceed if there is no DAQ device plugged in, but I don't know if that is possible.

Jeff·Þ·Bohrer wrote:
Hmmmm...... There has got to be a way to script up the "Toss Tasks to MAX" and "include .nce" as part of a "Deploy" process. Wirebird, Jack?  any opinions on that?
I would tend to agree with John_P1's quote below:
John_P1 wrote:
I honestly just build up my tasks programmatically.... You can do just about anything that you could do in MAX programmatically via the System Configuration API.
 And I would tend to shy away from:
Jo-Jo wrote:
...I just find [that using MAX] really speed development, and help with maintanence because you can test out all of your tasks in MAX outside of any LabVIEW code. And debug and toubleshoot hardware without using any of your own software, so you know any problems are not software bugs.
 once going into production. MAX tends to be a good tool for getting your feet wet after unboxing the hardware, but something you gradually migrate away from after the prototyping phase -- yet occasionally return to, as you mention, if you need to back up to square one for new prototyping or as a sanity check.
It's possible to deploy NCE hardware behavior configurations, but not necessarily desirable. For the same reason it's possible to deploy any arbitrary configuration (INI, XML, ....), yet it's likely more desirable to build this configuration programmatically -- perhaps persisting it to disk if it's a user-modify-able configuration, or if it's desirable to persist user settings between subsequent deployments -- else it might be most desirable to keep the "configuration" hard-coded as essential business logic (as DAQ tasks might tend to be).
Though, it sounds like you have a solution, and that's far more valuable than more work! Keep a tally on whether the current deployment strategy keeps you and your end users happy, and if so, keep it! Else, consider John_P1's advice, which is more likely to scale with your application if things get hairy.
a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

Similar Messages

  • DAQ devices don't show up in LabVIEW Measurement IO after loading 2014 DS2, uninstalling 2014 DS2, and then reinstalling 2013 DS1.

    DAQ devices don't show up in Measurement I/O. I installed LabVIEW ver 2014 DS2 Developer suite and my application no longer worked. I then uninstalled ver 2014 DS2 Developer suite and re-installed ver 2014 DS1 Developer suite which installs as LabVIEW 2013. Now none of the DAQ VIs are present in the Measurement I/O. I have uninstalled all NI software, and deleted that NI software that did not uninstall. LabVIEW ver 2014 DS1 Developer suite installs normally, but I get an "unknown error" when trying to install the DAQ drivers from the CD, and the Device Drivers CD keeps looping with a message indicating "Currently exectuing License Manager."
    Solved!
    Go to Solution.
    Attachments:
    LabVIEW Device Driver Error.pdf ‏184 KB

    Try disabling all of your network apapters and running the install.
    Also try disabling any virus scanners during the install.
    Craig H. | CLA | Systems Engineer | National Instruments

  • How do I delete an associated device in iTunes) namely my iphone 6 (8.1) I am using an imac with Yosemeti

    How do I delete an associated device in iTunes) namely my iphone 6 (8.1) I am using an imac with Yosemeti

    Howdy nzh50,
    It sounds like you have a device associated in iTunes with your Apple ID that you would like to remove from your account. This article should help you out there:
    iTunes Store: Associating a device or computer to your Apple ID
    Removing an associated device or computer from an Apple ID
    To remove a device or computer from your Apple ID:
    Open iTunes.
    Sign in to your Apple ID by choosing Store > Sign In from the iTunes menu.
    Choose Store > View My Account from the iTunes menu. 
    From the Account Information screen, click Manage Devices.
    Click the Remove button next to the device name you would like to unassociate.
    Note: Removing a device from your Apple ID does not override the 90-day timer. You must wait 90 days from the day the device was first associated with your Apple ID before it can be associated with another Apple ID. 
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • TS3704 Trying to delete I Tunes because of missing MSVCR80.dll followed instructions from Apple to delete - Apple Mobile Device support keeps coming up its being used I have gone to program files deleted what I can from folder but left with 3 files

    I have been getting the MSVCR80.dll missing message.
    Been on the Apple site and following instruction.
    Going down the list has instructed I have Deleted I Tunes.
    Deleted Apple Software Update
    But when I try to delete Apple Mobile device it wouldn't delete so went into program files has the instructions say by going to Program Files\common Files\Apple\Apple Mobile Device Support Folder.
    It still wouldn't delete saying it was being used. 
    I opened the file and highlighted all the folders and pressed delete, most of them have disapeared into my recycle bin but the folder still holds AppleMobileService, AppleMobileDeviceService_main.dll and MobileDevice.dll. 
    Message when I right click the first file is AppleMobileService I am told this action can't be completed because file is open in Apple Mobile Device. Close and Try again. 
    When I click the next file AppleMobileDeviceService_main dll it says  It comes up with This action cannot be completed and File description Apple Mobile Device Service. Company Apple Inc. File Version 17.323.0.9 Date Created 7/9/2013. Try again...... and finally  MobileDevice.dll come up with same message but file version 710.0.0.4 Date Created 7/9/2013 Size 902KB Both say Try Again but the same thing just recurred.
    I have left my lap top on hoping that I a swift reply.
    I am certainly no computer wizard and simply trying to follow the instructions to get rid of the box which keep coming up everytime I switch the lap top on saying APS Daemon.exe-System Error. The program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem.  I had looked at the internet and there appears to be warnings not to click on the button.
    I have had an apdate from Apple for the I Tunes but it wouldn't update. I thought that may have sorted it so whilst I had a few hours I thought I would go through the process that is advised on Apple's website. 
    I hope I have not ruined my computer. I haven't even tried deleting Bonjour or Apple Application Support (I Tunes 9 or later) has these are supposed to come after the step I am on.
    Please HELP!!!!!

    Sorry I missed your post. Anyone else with the same issue should find useful resources at Troubleshooting issues with iTunes for Windows updates.
    tt2

  • I am a new ipad user. how can i synch my email on my iphone and ipad to delete the message from all devices when I have deleted on one device?

    I am a new iPad user. Is there a way to delete emails from multiple devices when they have been deleted from one device? Thank you!

    You are using icloud?
    maybe your account is not whit icloud and thats the problem
    o you dont have the same account in your iphone and ipad

  • My email account in Mail.app is IMAP, but when I delete emails, they don't delete from other devices connected to the mail server with IMAP. Deleted mail on other devices delete as normal from the server and thus from other devices as normal.

    MacBook Pro, late 2011 version. Up to date Mountain Lion.
    My email account in the Mail.app is set up as IMAP, but when I delete emails in the Mac Mail App, they are not deleted from the mail clients of the other devices that are connected to the mail server with IMAP. IMAP works perfectly between Windows Outlook 2010, iPad Mail App and Android default mail client. Deleted messages behave correctly, as in delete from one device and the mail is deleted from all devices.
    Having just tested in reverse order on the Mac; emails deleted from the email client on Windows, iPad and Android are not deleted in the Mac Mail App.  It appears that the account is behaving like POP rather than IMAP.
    Any advice on how to have IMAP work correctly on the MacBook Pro Mail.app?
    Thank you.

    Hi Csound1, thanks. The email host is 1and1.co.uk, however, i am going to fess up and make myself look like a plonker now -
    the email account in question was set up in Outlook as POP - stupid, stupid, stupid me, wasted an afternoon on this!  I have now changed the Outlook account to IMAP and Mail.app works perfectly - and looks much nicer than Outlook did.  Im in the middle of converting from Windows to a Mac, and still finding my way around the Mac
    The lesson learned, never assume - always double  check!  All my other email addresses with 1and1 are all imap, except this one, and it happened to be the first one I set up in the Mail.app. (bows head in disgrace!)
    Thank you anyway for attempting to help me!
    Cheers

  • My iphone was stolen so I decided to delete my device in find my iphone,  but the it has not yet been deleted bec the device is not connected to the internet yet. Can I undo my changes before it will be deleted from icloud? Thank you

    Hi Suport,
    My iphone was stolen yesterday so I decided to delete my device in find my iphone,  but the it has not yet been deleted bec the device is not connected to the internet yet. Can I undo my changes before it will be deleted from icloud? I want to undo the changes because I may find my phone when it connects to the internet. Thank you
    See image below:
    email is [email protected] for questions thank you Apple. I hope you could help me.

    Sorry, you can't undo your action remotely.

  • How can I get rid of old books that I have deleted from my device? It still shows up as purchased books on "Icloud".

    How can I get rid of old books that I have deleted from my device but still shows up as "purchased books" on "Icloud". I don't want to see some of these books at all. I can sort by one that are PDFs and ones currently on device, but it still gives option to show those old titles. Does anyone know how to erase your "Icloud" history, please?

    Nooooooo! lol... If I want to download again I will, I don't want an electronic trail. Plus when I have Ibooks open, sometimes I will accidently hit the item and it will immediatly try to download it. The problem with that is that its "Time magazines Best Photos of 2012" etc and it locks up my IPAD cuz of sheer size of the book. So I would like it gone from the history. Isn't there a way to clear the history? 

  • How can iTune-synched photos be deleted from iOS devices if the iTunes computer is no longer available?

    How can iTunes-synched photos be deleted from iOS devices if the iTunes computer is no longer available?
    This can happen because the iOS device is on travels distant from the iTunes computer, because the iTunes computer is on travels distant from the iOS device, because the iTunes computer has failed permanently, because the iTunes computer has been stolen, etc.

    KRDHarris-
    The only possibility I can think of, is to consult with an Apple Store Genius.  See if there is some kind of Apple proprietary software or diagnostic tool that can do it.
    I do not think you want to, but you could go to Settings-General-Reset-Erase All Content and Settings.  If you decided to do that, you might be able to restore from a previous backup when you get home.
    Fred

  • I accidentally deleted the main device on my time machine and now I cannot set it up nor can i back up my files before I go to my appointment with apple, please help!

    hello, I have a macbook pro and I have an appointment with apple to figure out what is loose in my hard drive, so before my appointment I want to back up all my files but while trying to set up my time machine, I accidentally deleted the main device, so now I cannot back up my stuff, is there anyway to retrieve the main device so that I am able to back up my stuff?

    not sure if this may help explain further, but here are screenshots of what I am seeing!

  • I can't back up my iPhone4.  When was I syncing, My computer hang. I restart computer. Itune told me there is an error, delete the back up file and try again. But there are no back up file to delete in preference-device. Please help!

    I can't back up my iPhone4.  When was I syncing, My computer hang. I restart computer. Itune told me there is an error, delete the back up file and try again. But there are no back up file to delete in preference-device. Please help!

    Thank you for answering my question. If I reinstall itune, is it mean that I need to install music, apps, video...everything in itune again? also intall everything in my iphone again?

  • So if iMessages deleted from one device are not deleted from others why not recover deleted iMessages from iCloud?

    I accidentally deleted ALL the messages from my wife from my iPhone, nearly all of them iMessages.  Yet, I can see all of them on my iMac and on my MacPro.  Indeed, there is a discussion item (https://discussions.apple.com/message/21313040#21313040) that confirms that messages are deleted and maintained independently on each device, even though they are all ultimately resident only in Apple's cloud.
    I would dearly love to have all of them back on my iPhone.  Yet, reading about 20 or so discussions here, the only way to recover them would be a recovery from my iTunes backup.  I have a somewhat recent backup, but I'll still lose about 100 messages that way.
    So, if all the messages are still in the cloud, why CAN'T I recover them directly from the cloud to my iPhone?  Any ideas?  Any software?  Is this an App just begging to be built??
    Thanks

    It depends on the type of email account you are using, not on iCloud.  If you are using an IMAP or exchange account, when you delete from one device, it is deleted from all devices.  If you are using a POP (POP3) account, it won't.  (iCloud email, Gmail and Yahoo are all IMAP accounts.)

  • Why are my emails not deleting from all devices when deleted from one?  I have iCloud set up and turned on. I have ipad2, iphone5 and a Mac. What am I doing wrong?  Thank you

    Why are my emails not deleting from all devices when deleted from one?  I have iCloud mail set up and turned on. I have ipad2, iPhone 5 and a Mac desktop. What am I doing wrong?  Thank you.

    It depends on the type of email account you are using, not on iCloud.  If you are using an IMAP or exchange account, when you delete from one device, it is deleted from all devices.  If you are using a POP (POP3) account, it won't.  (iCloud email, Gmail and Yahoo are all IMAP accounts.)

  • Trying to add a DAQ device to NI-DAQ without hardware

    I am developing software for a DAQCard1200 on Windows 2000. I develop most of my software on a system without the actual hardware installed. Since the NI-DAQ dll will error on load under Microsoft C++ unless you have a device configued, I used to configure a device manualy on the development system under NI-DAQ.
    I am trying to use the latest version of NI-DAQ (6.9). I cannot seem to add a DAQ device unless I actually have the hardware installed.
    How can I work around this to add a device without the hardware or how can I get the dll to load without a device configured?

    I am not sure how to add any DAQ devices to MAX. When I right click Devices & Interfaces, I only get a list of SCXI, PXI and VXI devices/chassis. Is there another way of adding devices or expanding the list?

  • Sending a signal to 1 of 2 different pins on a DAQ device

    I am trying to make a VI that simply sends a digital signal to 1 of 2 pins on my DAQ device. Is there an easier way to differenciate between the two pins then using two different virtual channels?
    Attachments:
    test1.vi ‏12 KB

    Here you go in 8.6. Also, please note to read two lines you will have something like this in the channel constant: Dev1/port0/line0:1
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies
    Attachments:
    test_modified.vi ‏11 KB

Maybe you are looking for