Using VISA and RS232 devise , loosing the COM port .

Using VISA and R232 devise communicating fine with labview and I can  Read and Write.
however, I want to turn OFF the devise, then turn it ON again (part of the test), and be able to continue .
The COM port is not communicating . unless I turn both the devise off  and Exit  LV then restart again.
How to do that without restarting LV.
thanks

" Is there a better way to make sure its closed and driver is not hanging onto the connection? "
you could try a command like " devcon disable usb\vid_0CD5*0003~" and then "devcon enable usb\vid_0CD5*0003~"
( you will need to figure out the ID of your device, my example is for a LabJack U3. )
Get the devcon.exe-utility from microsoft.
but as mentioned before, just watch what happens with device Manager (' run devmgmt.msc')...
to enable/disable a device in a VBS script you can use below example,   (As Administrator!)
Option explicit
Dim oShell
set oShell= Wscript.CreateObject("WScript.Shell")
oShell.Run "RunAs /user:Domain\USER ""cmd"
WScript.Sleep 100
oShell.Sendkeys "USERPASSW"
WScript.Sleep 500
oShell.Sendkeys "devcon disable usb\vid_0CD5*0003~"
WScript.Sleep 1000
WScript.Sleep 100
oShell.Sendkeys "devcon enable usb\vid_0CD5*0003~"
WScript.Sleep 1000
oShell.Sendkeys "exit~"
Wscript.Quit
My reason for doing it this way is that my USB device didn't respond to any of my calls from Labview. Enable/Disable solved the issue...
The thing I particularly hate about above VBS-script is that I need to send the Admin password in plain text...

Similar Messages

  • After updating my iphone 5s to ios 8.0.2, I am not able to use watsapp and line properly, iphone automatically comes out of the apps after few mins. Please suggest how to fix it.

    After updating my iphone 5s to ios 8.0.2, I am not able to use watsapp and line properly, iphone automatically comes out of the apps after few mins. Please suggest how to fix it.

    I had this same problem with what's app.  There is a new update for the app on the app store which is compatible with ios8.  Update the app, or delete it and re-add it.  I found a lot of apps weren't compliant with ios8, but after updating everything worked fine.

  • Using VISA can not find the com port

    I use visa read but can't find any com port in Windows 7.
    How can i find the com port in Windows 7?? 
    由 jw2002 在 06-28-2009 09:20 AM
    上編輯的訊息
    由 jw2002 在 06-28-2009 09:20 AM
    上編輯的訊息
    Solved!
    Go to Solution.

    Windows 7 is not officially supported by National Instruments as it hasn't even been released. That means you won't get any official support from NI on this.
    That said, does your computer actually recognize a serial port? Do you have an actual serial port, or do you have some sort of virtual COM port, or are you using some sort of adapter, such as a USB to serial port box? If it's any of the latter, the most likely reason is a driver issue which needs to be written to be compatible with Windows 7. 

  • HT1325 Just brought the MacPro and first time using iTune and Yes I authorized the computer. But for a few purchased songs, only 30 seconds of the song plays and for one song off an album, a pop comes up saying I need to authorized the computer, but it is

    Just brought the MacPro and first time using iTune and Yes I authorized the computer. But for a few purchased songs, only 30 seconds of the song plays and for one song off an album, a pop comes up saying I need to authorized the computer, but I do this and it says it is authorized already. I click on the song to play it and this process repeat (saying it is not authorized, then saying it is already authorized)

    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copies of the dodgy tracks and try redownloading fresh copies. For instructions, see the following document:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the items that are not playing properly. If you can't see "Report a Problem" next to the items, click the "Report a problem" button. Now click the "Report a Problem" links next to the items.

  • I want to upgrade my mac os 10.6.8 to 10.8.2 , will this erase all my files,apps,etc ? and will i loose the licence of microsoft office 2011, how to make a backup on a pendrive ?  I have files of approx 180 gb , THANK YOU

    I want to upgrade my mac os 10.6.8 to 10.8.2 , will this erase all my files,apps,etc ? and will i loose the licence of microsoft office 2011, how to make a backup on a pendrive ?  I have files of approx 180 gb , THANK YOU !!

    Forget the Pendrive stategy...
    Before attempting any Major Upgrade... get yourself an External Hard Drive... and create a Bootable Clone Backup of your current Hard Drive...
    By far the easiest way to make such a Backup, is to use something like
    SuperDuper  http://www.shirt-pocket.com/
    or CCC  http://www.bombich.com/
    That way, should anything untoward happen during the Upgrade,
    you will NOT LOSE ANYTHING.
    (Get an EHD that is at least equal to your current Drive...)
    Also, Check here for compatibility of 3rd party Software you may be using...
    http://roaringapps.com/apps:table
    You should also consider more RAM... Get the Maximum you can for your Mac...
    It is important to get the Correct and Matching RAM
    See Here  >  OWC RAM  >  http://www.macsales.com

  • I am using VPN, and Firefox is loading the page. Before I reinstall the new version, the VPN was working okay. Whta happened, what I am supposed to do?

    I am using VPN, and Firefox is loading the page. Before I reinstall the new version, the VPN was working okay. Whta happened, what I am supposed to do?
    I have to use the VPN to acess the site because of the limitatation , and it was working okay. When I do turn off the VPN, then the sites will open, but if I activate the VPN, then site will load for ever, but they won't load.
    Please advise me what to do?

    You might try using the add-on 'NoSquint' which allows numerous zoom options specific to each page you visit & keeps your settings - https://addons.mozilla.org/en-US/firefox/addon/nosquint/
    If you want to go back to 3.6x, you will find it here:
    http://www.mozilla.com/en-US/firefox/all-older.html
    In most cases you can simply "upgrade" (meaning downgrade) directly from the installation. It would be a good idea to save your passwords & bookmarks just to be on the safe side.

  • Using Coherence and Oracle Database as the CacheStore

    We are working on implementing a solution using Coherence and Oracle Database as the CacheStore. We initially implemented the Cache as a distributed-scheme which in turn uses the backing-map-scheme. We are trying to introduce transaction management and I used a scheme-ref in a transactional-scheme to point to an already existing distributed-scheme. However when I bring up the server, my custom coherence-cache-config.xml file is not recognized and Coherence comes up with the default setting. Given below is the snippet of my configuration file.
    1)     I would like to understand why the below configuration doesn’t work and am I doing it the right way? If not, what is the correct way of doing it?
    2)     There are a multiple transaction management options given in the documentation. Which are the ones that will work with a distributed-scheme and read-write-backing-map-scheme?
    3)     If transactional-schemes cannot work with distributed-scheme, what is the best way to have a distributed cache with a oracle database as a cache store?
    <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>id<cache-name>
    <scheme-name>example-transactional<scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <transactional-scheme>
    <scheme-name>example-transactional</scheme-name>
    <scheme-ref>distributedcustomcache</scheme-ref>
    <thread-count>10</thread-count>
    </transactional-scheme>
    <distributed-scheme>
    <scheme-name>distributedcustomcache</scheme-name>
    <service-name>DistributedCache</service-name>
    <backing-map-scheme>
    <read-write-backing-map-scheme>
    <internal-cache-scheme>
    <local-scheme>
    <!--scheme-ref>categories-eviction</scheme-ref-->
    <scheme-name>inMemory</scheme-name>
    </local-scheme>
    </internal-cache-scheme>
    <cachestore-scheme>
    <class-scheme>
    <class-name>spring-bean:coherenceCacheStore</class-name>
    <init-params>
    <init-param>
    <param-name>setEntityName</param-name>
    <param-value>{cache-name}</param-value>
    </init-param>
    </init-params>
    </class-scheme>
    </cachestore-scheme>
    <!--refresh-ahead-factor>0.5</refresh-ahead-factor-->
    </read-write-backing-map-scheme>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>

    Hi,
    If you look at the documentation for transactional-scheme here: http://docs.oracle.com/cd/E24290_01/coh.371/e22837/appendix_cacheconfig.htm#BHCIABHA
    you will see that it says The transactional-scheme element defines a transactional cache, which is a specialized distributed cache. That means that a transactional-scheme is already a distributed-scheme.
    You will see from the same documentation above that there is no way in a transactional-scheme to configure things like cache-stores or listeners or even the backing-map-scheme as these are not supported on a transactional-scheme - so you cannot use a cache store.
    Personally I would not use transactional-scheme unless you have some really big reason to do so - the restrictions far outweigh any perceived advantage of having a transaction. There are better ways to build applications so they do not require transactions, that is what we have been doing for years with Coherence so far, and there is no real reason to change that.
    JK

  • I have moved from a G5 Powermac to an Intel Mac Pro and am porting over Items from a Backup HDD. How can I access and use drawings and documents created on the PC computer on the Intel computer ?

    I have moved from a G5 Powermac to an Intel Mac Pro and selectively porting over items from a backup hard drive.
    How can I access and use documents and drawings created on the PC based computer ?

    Clarisworks, you need Appleworks, which will only work with Mac OS X10.6.8 or earlier.  See this tip if you must go newer.  Mac Pros with newer hardware configuration than July 20, 2011 can't use Mac OS X 10.6.8 or earlier without this tip and then it would be Mac OS X Server.  I'm not sure if the new black Mac Pro supports that configuration or not.
    iPhoto, there is an iPhoto for all versions of Mac OS X.
    iTunes, there is an iTunes for all versions of Mac OS X.  Note with iTunes versions 11 and later, which are needed for syncing with iOS 7 or or later, you will lose coverflow, if you liked that feature.  Sadly you can't run an older version of iTunes from within Mac OS X 10.9 or later.
    Sketchup: http://help.sketchup.com/en/article/60107 shows the versions that will work with intermediate Mac OS X versions, and this shows the latest version: http://help.sketchup.com/en/article/36208 be sure to click on the operating system you choose to use.
    GIF - Viewing GIFs Apple's Preview can do that.  Editing them, I like http://www.lemkesoft.com/ Graphicconverter.
    DMG is able to be opened by all versions of Mac OS X.  This are just "disk images" which store programs on a virtual disk that will open when double clicked.    Frequently you'll find the installer of the said program inside.  To find out if the program itself is compatible with 10.7 through 10.9, see http://www.roaringapps.com/
    Otherwise see the resources on:
    https://discussions.apple.com/docs/DOC-2455
    If you end up deciding to stick with Snow Leopard.

  • I am going to buy a mac mini i7 with 3 thunderbolt displays for forex trading. the question is if i use bootcamp and run windows on the mac mini will the displays still run the same way as if i was running it on Lion?

    I am going to buy a mac mini i7 with 3 thunderbolt displays for forex trading. the question is if i use bootcamp and run windows on the mac mini will the displays still run the same way as if i was running it on Lion?

    No idea if Windows will do it, but you can run Windows without Bootcamp & have OSX available at the same time, which should give you all the Monitors that OSX uses.
    Parallels...
    http://www.parallels.com/
    VmWare Fusion...
    http://www.vmware.com/mac

  • Using join and batch reading in the same query

    Hi,
    I wonder if it is possible to use "Joining" and "batch reading" in the same query.
    For example I Have
    A -> 1-1 B
    A -> 1-1 B
    B -> 1-M C
    This is the case where I have two separate 1-1 relationships to the same class B from A. Toplink 10.0.3 can manage it nicely through joining.
    Now, I would like to read a set of As (with its 2 Bs) and all Cs for each B.
    It seems that the following configuration does not work:
    A -> 1-1 B (use joining)
    A -> 1-1 B (use joining)
    B -> 1-M C (Batch read)
    Any help would be greatly appreciated
    Tony.

    James,
    Would you be so kind to look at the following code?
    Am I formulating it correctly to achieve my desired behavior?
    Trip.class -> 1-1 PickupStop
    Trip.class -> 1-1 DropoffStop
    PickupStop and DropoffStop extend Stop and use same table (STOP)
    Stop -> 1-M StopEvents
    I would like to fetch all Trips, with their Stops and all StopEvents in 2 queries:
    1. Trip joined with Stop
    2. Batchread StopEvents
    Code:
    ReadAllQuery raq = new ReadAllQuery(Trip.class);
    Expression qexp1 = new ExpressionBuilder();
    Expression qexp2 = new ExpressionBuilder();
    raq.addJoinedAttribute("pickupStop");
    raq.addJoinedAttribute("dropoffStop");
    raq.addBatchReadAttribute(qexp1.get("pickupStop").get("vStopEvents"));
    raq.addBatchReadAttribute(qexp2.get("dropoffStop").get("vStopEvents"));

  • I would like to be able to take a website that I use ofter and drop it on the firefox screen below the url. Then I will have a quick access. How do I do this?

    Question
    I would like to be able to take a website that I use ofter and drop it on the firefox screen below the url. Then I will have a quick access. How do I do this? I currently use this on my laptop, but recently bought a new computer and downloaded firefox and lost a lot of features that I enjoyed.

    Hi Ruthannw,
    I think you are talking about the [[Bookmarks Toolbar]]. That article will show you how to add sites to the toolbar and even how to display the toolbar if it is hidden in your new Firefox install.
    Hopefully this helps!

  • I can't log in the App store because an from Zambia which is not listed in Apple outlets. How do i go around this as apple products are using globally and not only in the listed countries. My product is a Mac book pro.

    I can't log in the App store because am from Zambia which is not listed in Apple outlets. How do i go around this as apple products are used globally and not only in the listed countries. My product is a Mac book pro. i feel this limits how i can use my product

    Unfortunately you have taken an Apple product outside of the area where Apple currently does business. There isn't legally a way around this. Apple cannot license apps to you where you currently live.

  • When to use SELECT and END SELECT in the query.

    hi all,
    When to use SELECT and END SELECT in the query.
    regads,
    Venkata Suresh Penke.

    Hi Suresh..
    When do we need to use SELECT .. ENDSELECT
    Usually we will never use SELECT .. ENDSELECT as it gives very poor performance.
    But whenever we read a single Record we will use it as an alternative for SELECT SINGLE in some scenarios.
    Eg: When the Full primary key is not specified in the WHERE clause.
    SELECT * FROM MARC INTO WA_MARC UP TO 1 ROWS WHERE MATNR = P_MATNR.
    ENDSELECT.
    And other scenario is when we perform AGGREGATE OPERATIONS.when the Result is only one row.
    SELECT SUM( LABST ) FROM MARD INTO V_LABST UP TO 1 ROWS
    WHERE MATNR = P_MATNR.
    ENDSELECT.
    Note: In The Above scenario we cannot use SELECT SINGLE..
    <b>REWARD IF HELPFUL.</b>

  • I'm new to using iCloud and couldn't find the answer to: how to set my calendar to use the 24 hour clock. Thanks all.

    ?? I'm new to using iCloud and couldn't find the answer to: how to set my calendar to use the 24 hour clock. Thanks all.

    Thanks, David.  i thought i had it set correctly in Preferences in L&R. Being i was wearing my suspenders and belt at the same time i went back to L&R, cleared what was there and re-entered same to include unchecking and rechecking Time Format fgor 24-hour time.   It works now. Thanks again.

  • HT5037 when I click on iPhoto(9.5.1)  i get "To open your library with this version of iPhoto, it first needs to be prepared." but i downloaded the up-grader, used it and it tells me the library can open with the current version... what should i do now?

    When I click on iPhoto(9.5.1)  i get "To open your library with this version of iPhoto, it first needs to be prepared." but i downloaded the up-grader, used it and it tells me the library can open with the current version... Then when I click on the iphoto again i get the same message "To open your library with this version of iPhoto, it first needs to be prepared."'
    What should I do?

    The upgraded is only necessary for libraries created with iPhoto '07 or eearlier.  Just double click the library to open it in iPhoto, and let it upgrade, if it has been created by a newr version.

Maybe you are looking for

  • Cannot run Quicktime or iTunes - Data Execution Prevention

    I have tried to install quicktime and itunes and when i run them windows vista home tells me that Data Execution Prevention has closed the application. I have removed itunes and quicktime and just tried installing quicktime - and i get the same error

  • My ipod touch isnt turning on

    My ipod touch acts like it is turning on by showing the apple logo but then it just comes to a white screen and then turns off and then starts all over. tried different things but nothing works. what can i do??

  • I am getting this error message!!!!!

    Can anyone look into this please? I have 2 subscriptions and i can't use them because Skype is not working!!!  Skype Home unavailable Skype Home is unavailable at the moment. Check back later to see your news and alerts. It's easy to start a conversa

  • Jvm question

    Hi. Let's say I have two computers, "apple" and "orange". They are both running the same java program called "synchronize", which is installed on both computers, and they communicate with eachother via RMI. synchronize has two classes called "ClassA"

  • Exporting Metadata only possible when all objects are valid?

    Hallo, i want to export the metadate from my project. The result was this error: MDL1256: Error occurred exporting PROCESSPACKAGE with physical name <IMP_TRAN> I made a tar for this problem and the answer from oracle was: if you wish to backup your d