Jump to content

Reinstall device in Windows


Recommended Posts

We use USB-connected Microsoft Smart Card Reader. The devise crashes sometimes. It does not happen often thus search for the reason could take time.

The only way to get the devise functioning again, is to open Device Manager, click Uninstall then Scan for hardware changes (that installs the Reader again).

Is there any method to do this from LabVIEW? I.e. send commands to reinstall the USB device?

I know this could be a bad fix. However, it can help in long-time tests (while we are searching for reason of these crushes).

Thank you

Link to comment

Years ago I had a similar problem, and I think I temporarily resolved it by disabling/reenabling the device, which is not exactly the same as reinstalling as you ask, though. Here are some links I perused at the time (the last dead now), which involve a command called devcon, which worked for XP. Maybe it helps...


Otherwise I can just generically recommend to make your usb connection as robust as you can, to improve reliability. Watch out for flimsy cables, and EMI.

Link to comment

Yeah Devcon is the way I did it for a wireless card that would have connection issues when offsite:


If it couldn't ping google I first disconnected and reconnected to the network.  Then if that didn't work I would disable and reenable the card.  We were uploading remote data to an FTP from a DSL connection at the testing facility and it needed to continually try to put data out there so we could evaluate it from the office.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By torekp
      Supposedly there are Labview tools available at
      But whenever I try to register or login, nothing happens.  (Also, I try to think, but nothing happens.)  Are there any other Labview codes that use the Windows Memory-Mapped Files functions, or should I just reinvent this wheel?  By the way, here is a Microsoft document on the subject: https://msdn.microsoft.com/en-us/library/ms810613.aspx
    • By Jillu Pravin
      Hi all ,
      Need help regarding the Vi i have made which works fine with labVIEW pane.Which i need to capture in windows screen.
      I have attached the vi which works great in labVIEW pane and records each event of click inside the pane.i haven't find any options in event structure for capturing mouse events out side the pane (ie which captures windows UI ) .  I know i could make it with while loop capturing mouse coordinates still i feel its not a reliable way to record .So please let me know how to make it in Event structure or is there any reliable way to make without event structure.
      Capture tool LabVIEWpane.vi
    • By kuroko
      i'm a newbie in LabVIEW world     
      i need some help here could anyone help me with this installation problem ?     i'm installing Lab View 2014 64-bit on my windows 10 64-bit too, but the LAB VIEW wont be installed. What should i do to solve this ?        thankyou          
    • By dhakkan
      I'm experimenting with porting my existing LabVIEW application from Windows to Mac OS X. The code uses several instances of 'Build Path' function in 'File I/O' functions sub-palette. The 'Name or Relative Path' input is being connected with a 'string' data type rather than a 'file path' data type. With some quick code change and checks, I've realized that it's better to use the latter data type, so that the separator character '\' in Windows is automatically interpreted as ':' in Mac OS.
      Some parts of the code, however, build up the string. E.g. a 'Format Into String' is used to output based on a format string, e.g. 'Images\%s.jpg'. Doing a 'String to Path' after this function does not automatically interpret the '\' in Mac OS to ':'. (I can imagine that it would be difficult for the compiler to recognize that a specific character is meant to be a separator and not part of a file/folder name.)
      I can write more complicated code where the format string is itself concatenated based on the execution platform. Are there any easier or recommended approaches? Also, does LabVIEW have any 'File Constant' that provides the equivalent string character depending on the platform?
      Thank you.
    • By Callan
      Hi all,
      I have been trying to use VIPM to distribute drivers that rely on a .NET framework that is unsigned (i.e not in the global assembly cache).  My issue is that after the package is installed, none of the VIs will work because LabVIEW cannot locate the .net assembly.  However, if I launch labview by opening the library VIPM installed, all of the VIs will work, and LabVIEW is able to locate the the .Net framework and it appears in the main application instance.  I need to be able to use the installed vis all the time, not just when LabVIEW is launched in this particular way.
      Here is a link to all the all the files I used: 
      Here are the steps I went through:
      1) We put all the .NET dlls and the LabVIEW.exe.config file in the Labview directory.

      2) We installed the package on our computer.  

      3)We closed everything and relaunched Labview from the start menu.  Then accessed the BioRobotics/Vicon palette.

      4)We placed the Get Ref subVI on the block diagram, opened it up, and ran it it.
      5) We got the following error:

      We also get a similar error for any VI that uses a method associated with the .NET dll.
      6) However, if we again start with everything closed and launch Labview by clicking on the VICON.lvlib located in the vi.lib

      7) Then repeat steps 3 and 4.  We do not get any errors in the VIs on the palette, and the .Net assembly loads fine.  We can even close the library and everything still works.  Somehow opening the library first makes LabVIEW know to load the ViconDataStreamSDK_DotNet assembly when using functions on the Vicon palette.

      If anyone does attempt to build a new package, it is worth noting that I included the dlls in the source files, and in the same folder as the vipb:

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.