Delete a virtual device in a VI

Hello,
By programming a VI, I can't delete a virtual device which exist in MAX configuration.
By programming in a VI :
I open a session to NISE on my system
Then I get a reference from the virtual device that I want to delete
Then with this reference I delete the virtual device
Then I close the session to NISE.
But when I open MAX the virtual device is still here (with this message there is a JPEG file of the diagram).
Perhaps someone can explain to me how to do ?
Sincerely
For information I use : LabVIEW 8.2 and NISE 3.0
Attachments:
diagramme.jpg ‏40 KB

See here

Similar Messages

  • 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;}

  • MAX virtual device error

    Hi,
    I've managed to create a corrupted virtual device in Switch Executive. I think I did this trying to save a virtual device to a network drive using Max 4.0 (I now realise after reading this forum that this bug/feature is fixed in Max 4.1). Reading through the forum it appears several others have done the same thing.
    However, the question still unanswered is..... how do we delete a corrupted virtual device in Switch Executive??? Trying to delete the virtual device using the normal menus simply raises an exception in Labview.
    Do we simply create a blank mxs file (found in ProgramFiles/National Instruments/Max/Data/) or is there an application that can regenerate this file? Note that I've saved my desired configuration to a local drive successfully, so can afford to completely erase all the current virtual devices.
    Regards,
    Tom

    Hi Tom,
    As you already know, this issue appeared with MAX 4.0 and it is fixed with MAX 4.1. The previous workaround was to export your configuration locally and copy it manually to the network location.
    It is possible that the crash might have permanently corrupted your mxs file system stored in the data folder. To restore a clean data folder follow the steps below: FOLLOWING THESE STEPS WILL DELETE EVERY CONFIGURED ITEM IN MAX (NISE CONFIGURATIONS, DAQMX TASKS, VIRTUAL CHANNELS). Excel needs to be installed to use this procedure.
    1. Export the configuration to Excel using the NISE Excel example GenerateExcelReport.xls (Program Files\National Instruments\Switch Executive\Examples\Excel)
    2. In the command prompt type (with MAX closed) : net stop mxssvr
    3. Delete the MAX Data directory (Program Files\National Instruments\MAX\Data)
    4. Reboot your computer
    5. Import your xls file created in the first step using the example: ImportFromExcel.xls
    Note: You may get an "Invalid resource name" error when you attempt to import your xls file. This will occur if Hardware Assets do not match DAQmx device names. Deleting the MAX Data directory forces your system to redetect all your DAQmx devices. All the devices will be reverted to default names, usually PXI_Slot_ or Dev_. If the Hardware Asset for any device differs from it's DAQmx name, simply right-click on the device under NI-DAQmx Devices to Rename it so they are the same.
    The following two steps will allow you to export the configuration to a network drive.
    6. Export the configuration to your local drive by right clicking on the configuration
    7. Copy the exported NISE configuration from your local drive to your network drive
    Let me know if you have further questions or if this does not resolve your issue!
    Chad Erickson
    Switch Product Support Engineer
    NI - USA

  • NISE virtual device causes LabVIEW exception error

    I can't delete a virtual device because when selected it causes an exception error in LabVIEW. I'm running MAX 4.1 with DAQmx8.3. Do I need to uninstall everything and then reinstall to correct this error?
    kph

    Okay here is what I remember...
    I had MAX 4.0 installed on the computer (not sure of the DAXmx version but probably 8.1) and I went to export a NISE virtual device to a network drive. At that time MAX froze up and I had to kill it with task manager. When I reopened MAX the virtual device gave me a LabVIEW error when I selected it. I was able to rename it and replace it with a backed up version. I then went to delete it but MAX continued to lock up. I read in the discussion forums about the export to network drive issue and the fix with MAX 4.1 so I downloaded DAQmx 8.3 with MAX 4.1 and installed it. Afterwards MAX seemed more stable but I still get the LabVIEW error when I try to select the renamed (broken) virtual device. Also since this started I've been getting weird exception errors when I run my TestStand/LabVIEW code.
    Any help will be greatly appreciated.
    kph

  • Check path if it is in virtual device or not, writable or not

    Hi everyone,
    I'm currently making an application which encrypt file and users can decrypt the file anytime they want. After encrypting the file, I will delete the original file and when I decrypt, I will re-create the file to original position.
    The question is : How can I check if the selected file or folder is in virtual device or removable devices such as CD-ROM ? Because we can not write file on them. 
    And how to check if the path is writable or not :) .
    Thank you :)

     >>How can I check if the selected file or folder is in virtual device or removable devices such as CD-ROM ?
    Take a look at the PathIsNetworkPath Win32 function and the DriveType property of the System.IO.DriveInfo as described in the following thread:
    http://stackoverflow.com/questions/2243569/check-if-path-is-on-network
    >>And how to check if the path is writable or not :) .
    You could try using the FileSystemSecurity class:
    http://stackoverflow.com/questions/1281620/checking-for-directory-and-file-write-permissions-in-net.
    But the easiest way is to try write to the file and then catch any exception that is being thrown if the write fails for some reason:
    https://social.msdn.microsoft.com/Forums/en-US/f81bea37-26f5-44d8-bac4-bc534bbb03b4/c-how-to-check-file-folder-if-writable?forum=netfxbcl
    There is however no boolean property of the FileInfo class called "IsWritable" or something if that is what you are looking for.
    But please don't post any more questions that are not related to WPF in this forum. There is a C# forum for these type of questions:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral
    Please remember to close your threads by marking helpful posts as answer.

  • 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

  • Can multiple Virtual Devices use the same IVI Driver Sessions?

    I am using Switch Executive 2.0 and I'm having problems creating multiple Virtual Devices.
    I have created a virtual device on a development computer that has no hardware connected to it.  This virtual device uses specific drivers to simulate the devices.  The problem I'm having is that when I create a second virtual device and try to add the same IVI Switches as the first Virtual device, I'm getting the following error:
    An error has occurred while attempting to access the device deviceA_ivi.
    Error -223116 occurred:
    Internal Software error occurred in Switches software.  Please contact National Instruments Support.
    File name: .\source\mxsWrappers\tMXSObject.cpp
    Line Number 192:
    Status Code: -223116
    Can someone please explain why?

    Can you please elaborate on how did you create those simulated devices? Namely, what does your IVI configuration look like? What does the driver session for the logical name look like? What's the software module? What's the hardware module? What is the driver setup string, and what is the simulation mode for the device in question?
    -Serge
    Srdan Zirojevic

  • 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 to delete a virtual column in a table

    Is it possible to delete a virtual column in a table. Please give the complete syntax to help do it

    Like this...
    SQL> select * from dept;
        DEPTNO DNAME          LOC
            10 ACCOUNTING     NEW YORK
            20 RESEARCH       DALLAS
            30 SALES          CHICAGO
            40 OPERATIONS     BOSTON
    SQL> alter table dept add (sal as (deptno*10));
    Table altered.
    SQL> select * from dept;
        DEPTNO DNAME          LOC                  SAL
            10 ACCOUNTING     NEW YORK             100
            20 RESEARCH       DALLAS               200
            30 SALES          CHICAGO              300
            40 OPERATIONS     BOSTON               400
    SQL> alter table dept drop (sal);
    Table altered.
    SQL> select * from dept;
        DEPTNO DNAME          LOC
            10 ACCOUNTING     NEW YORK
            20 RESEARCH       DALLAS
            30 SALES          CHICAGO
            40 OPERATIONS     BOSTON

  • While deleting the virtual machine .vhd folder -- error msg : the process cannot access the file beacuse it is being used by another process

    When i am trying to delete the Virtual Machine folder/directory i get the below error. Virtual machine is turned off
    V:\>rmdir ME-EXCAS01 /s
    ME-EXCAS01, Are you sure (Y/N)? y
    ME-EXCAS01\ME-EXCAS01\Virtual Machines\1B1FD14E-B3F0-4232-9F96-2A871E879CD6.xml
    - The process cannot access the file because it is being used by another process
    How to delete the whole folder ?
    Thanks

    Also, if your VM has snapshots and you delete it, you must wait for the snapshots to finish merging - the VHD files will be locked until then.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • 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

Maybe you are looking for

  • Clearing Personal Data From Session

    When the user leaves the page using the "X" button i want to clear the personal data from the session. To do this i eaither need to invalidate the session or call code which will clear my java objects. The only way i think i can do this is through ca

  • I want to uninstall my fax capability - and ONLY be able to scan, print.

    Recently I found I was not able to print, so I want to:  make sure I have ink in my cartridges; uninstall my fax function so that I am only able to scan and print.

  • Windows 8.1 keeps crashing when trying to open movie or videos

    Explorer.EXE 6.3.9600.17415 54503a3a mfmp4srcsnk.dll 12.0.9600.17415 54503c43 c0000094 00000000000aae7f 133c 01d01bd7558d78f4 C:\windows\Explorer.EXE C:\windows\System32\mfmp4srcsnk.dll aa127fcd-87ca-11e4-8264-3010b39e93b4

  • Mac pro DVD Writer + DVD Studio pro + Toshiba HD-EP10 - HD DVD Player !!

    Hi there.. I tried to make a short HD project in 4.7GB DVD by Mac pro Standard DVD Writer and i tried to play it in Toshiba HD-EP10 - HD DVD Player ( it gives msg ... the disc not contained DVD format and cannot be played ) so what is the mistake whi

  • How to install Movable Type?

    I want to move a Movable Type installation from a Linux server to OS X Server (Mountain Lion, Server 2.1.1).  However, it appears that the standard httpd.conf file is not to be touched, and the preferred method is to make changes to some subordinate