VISA Read Timeout and VISA Write not working

I'm writing a program that sets a triangle wave pattern voltage (using Triangle Wave VI) to a DC power source (GWInstek PST-3202) through a RS-232 connection.  I know my instrument parameters are set up correctly because I've been able to control this power source using a different VI with the same parameters.  I also know I am connected to the power source because I can talk to it using MAX.  I have a string indicator before my VISA Write statement that shows me the command being sent to VISA Write.  It shows the correct syntax for setting a voltage on this instrument.  However, when I run the VI, the voltage is not changed on my instrument, even though the correct command is sent to the instrument.  After the VISA Write operation I have inserted a VISA Read function in order to read the newly set voltage from both a numeric and a waveform indicator.  Using the Error Out cluster I am able to see that there is a timeout error from VISA Read.  I thought perhaps I needed to clear or flush the buffer after each Read statement, but that didn't work either.  I'm stumped as to why VISA Write isn't writing to the device.  I have included my VI below, as well as the initialization subVI for the power supply.  
Attachments:
Triangle Volt Mod.vi ‏27 KB
GW Instek initialization.vi ‏18 KB

Yep, you need to append the End of Line character to the end of your command.  And for your read to work properly, you need to request the data.  That requires a querry command to be sent.  Look closely at the differences in command and communication structures between your working VI and your mod.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • VISA read in exe file is not working

    Hi all,
    I am having problems with VISA read in an exe file created.
    I am trying to write to and read from a programmable power supply via RS232. The VI writes a command to the instrument to set the voltage level. It then writes another command, requesting the resulting current value. This value is then read by VISA read
    The VI is working fine on the development PC, which has LabVIEW installed. The exe file is also working fine on this PC. However, when I try to run the exe file on another PC (I've tried several) everything seem to work except for the VISA read functions. The voltage level command is sent, as well as the On and OFF commands, but the current is not read back.
    I guess there must be something I have missed in the installation. I am working in LabVIEW 8.5. I have created an installer and included
    Runtime Engine 8.5.1
    VISA runtime 4.5
    Is there something else I should do? I am really running out of ideas here...
    I hope someone has a clue about this!
    Clara 

    Clara-
    1. Have you verified that the COM port settings in Windows (check under device manager) are matching how you initialize them (Baud, bits, parity, and flow control) and that these match the power supply's settings?
    2. Also, are you trapping an error message after the attempted Read command (this will make it a lot easier to diagnose).
    3. Do you programmatically close the VISA session at the end of the program?
    4. You can always post the code to see if the forum members will catch the porblem.
    ~js
    2006 Ultimate LabVIEW G-eek.

  • How to run vi continuous​ly when VISA read timeout happens

    Hello,
    I am using LabView 2010 to read an Agilent 6000 series Oscilloscope. The Oscilloscope reads data from another experimental machine which fails occasionally due to sample failure. When the machine fails, it stops sending signal to the oscilloscope and leads to the VISA read timeout error and the whole vi is terminated.  Is there a way that I can continuously run the vi when the error happens? For example, when the error happens, it stores the error in the error wire. When the vi read the error code from the wire, it sends a command to stop my experimental machine then stop the vi. 
    So far, it just simply stops during executing the visa read function. In this case, why do we have error in and out? The vi simply stops when the error happens. 
    Thanks
    Lawrence
    Solved!
    Go to Solution.

    I'll start of with automatic error handling. By default, LabVIEW enables the automatic error handling. So consider the case like the one below,
    If let's say the VISA Read returns an error, but you did you pass the error information to VISA Close, what will happen is that LabVIEW will highlight the VISA Read (since the error comes from that function), pause the execution at the VISA Read and an error dialog box will appear. From the dialog box, it will prompt to either continue (Move on to the VISA Close) or stop (LabVIEW will stop the VI at VISA Read)
    Now, consider another scenario like this,
    By passing the error information from one function to another, let's say if VISA Read returns an error, that error will pass to VISA Close and finally to Simple Error Handler.vi. So Simple Error Handler will generate error dialog box after all the VISA operation is completed. This is called manual error handling (It can be enabled by just wiring the error information from one function to another and terminates at Simple Error Handler).
    http://www.ni.com/gettingstarted/labviewbasics/han​dlingerrors.htm
    As for VISA Close, here is the information about VISA Close.
    http://zone.ni.com/reference/en-XX/help/371361K-01​/lvinstio/visa_close/
    See that button on the left side of this post...
    If you feel my post is helpful, all you need is just (at most) 2 seconds to click that button, to show your appreciation. Thank you~~

  • Difference between VISA READ buffer and string

    Hello I am just starting to use the VISA read and write function in labVIEW
    anybody knows what are the differene between VISA Read buffer and string? and comparison of VISA Write buffer and string
    thanks 
    Solved!
    Go to Solution.

    Hi Ein,
    "read buffer" is the label of the string given by VISARead, "write buffer" is the label of the string expected by VISAWrite!
    So there is no difference...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • I started to download Maverick but then read that Word and Excel do not work  with Maverick.  I hit pause on the download. How do I stop the download.  In non technical terms please!

    How do I stop the download of Maverick on my MacBookPro?  I started downloading then discovered that 2008 Word and Excel do not work  with Maverick. I have too many files in the 2008 version to upgrade them at this time.  I just need instructions in non technical terms to stop the Maverick download.

    I did the same as Tapmr and have paused the "upgrade".  So am I to understand that the upgrade only downloads and will not automatically install it?  I am an extreme novice here, and cannot afford any issues after I upgrade/download.  I don't know how to make a clone copy as you suggested either.
    I need assurance that if the upgrade is allowed to continue that I will be able to delete the upgrade downloaded and continue on as before with my regular system. 

  • Hi , i bought this phone from Dallas , TX  on 22 jun 2012 , right now I am in india . My phone Accidentally fall in water tub. And now is not working . For iphone replacement ,I went to local apple store in Pune (India). but these guys are not helping me

    hi , i bought this phone from Dallas , TX  on 22 jun 2012 , right now I am in india .
    My phone Accidentally fall in water tub. And now is not working .
    For iphone replacement ,I went to local apple store in Pune (India). but these guys are not helping me . And they  are not ready to replace my phone .
    I also tried contacting local apple employee  named " RATI KALE " , but didn’t got any positive response.
    I provided them apple invoice, passport, visa details, my air ticket details. but still  they are not ready to help me . My phone details are as below :
    Serial No:C8*******T9Y , IMEI : 01*************995
      Please help me in replacing my phone.
    <Personal Information Edited by Host>

    Your warranty is only good in the US where you bought the phone. You will need to contact Apple Support in the US to arrange to return your phone to the US for repair. You should also inquire as to whether they will be able to return the phone to you in India.
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Apple - Support - Contact Apple Support.

  • I have downloaded an app and it does not work

    I downloaded two apps. They are both are the same application, on;y difference is that one is the 2.0 version and the other 3.0 version.
    When I downloaded the 2.0 version I thought this was the latest version, but turns out there was another newer version. But I tried the 2.0 version first and this does not work on my mac. The application is Wondershare Data Recovery. It is not able to see any devices on my mac.
    So tried the 3.0 version and again same problem, does not work, funny because after careful researching on what product to buy I decided to download the trial version and it works fine. Only thing is that I need to but the full version to successfully retrive my disappeared images from memeory card, from my camera phone.
    anyway the point is, I have just wasted £95, and I would like this back, or at least the problem resolved. Any help would be appreciated.
    Thanks
    C

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Updated -
    I only find the v3.0 in the UK Mac App Store (MAS). But on the developer's website I find two separate apps; Wondershare Data Recovery for Mac, which is v3.0 and Wondershare Data Recovery for iTunes, which is v2. Where did you buy Data Recovery for iTunes? I don't find it sold in either the MAS or the iTunes App Store.
    Have you used the support link to the developer on the apps pane in the MAS? That is who Apple will direct you to contact.
    Did you remove the trial version before downloading and installing the paid MAS version(s)?

  • I have checked the box "display date and time on the Menu Bar" and it does not work.  Using OS X Yosemite 10.10.2  Anybody have a fix?

    I have checked the box "display date and time on the Menu Bar" and it does not work.  Using OS X Yosemite 10.10.2  Anybody have a fix?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • CFHTTP and Scheduled Tasks not working after CF8 Upgrade

    I have recently upgraded to ColdFusion 8. My scheduled tasks
    in the ColdFusion Administrator do not work anymore. I ran them
    manually without the ColdFusion Administrator from the server and a
    local machine via Internet Explorer 7 and they work. I tried to run
    the same scheduled task with the same URL via CFHTTP in a CFM page
    and this does not work. The logs are not giving me any error
    messages. Has anyone run into this? Is this a bug with CF8 or even
    an IIS issue? ColdFusion is on a Windows 2003 SP2 server.
    Thanks,
    Mike

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML dir=ltr><HEAD><TITLE>The page cannot be displayed</TITLE>
    <STYLE id=L_defaultr_1>A:link {
    FONT: 8pt/11pt verdana; COLOR: #ff0000
    A:visited {
    FONT: 8pt/11pt verdana; COLOR: #4e4e4e
    </STYLE>
    <META content=NOINDEX name=ROBOTS>
    <META http-equiv=Content-Type content="text-html; charset=UTF-8">
    <META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
    <BODY bgColor=#ffffff>
    <TABLE cellSpacing=5 cellPadding=3 width=410>
      <TBODY>
      <TR>
        <TD vAlign=center align=left width=360>
          <H1 id=L_defaultr_2 style="FONT: 13pt/15pt verdana; COLOR: #000000"><ID id=L_defaultr_3><!--Problem-->The page cannot be displayed
    </ID></H1></TD></TR>
      <TR>
        <TD width=400 colSpan=2><FONT id=L_defaultr_4
          style="FONT: 8pt/11pt verdana; COLOR: #000000"><ID id=L_defaultr_5><B>Explanation: </B>There is a problem with the page you are trying to reach and it cannot be displayed.</ID></FONT></TD></TR>
      <TR>
        <TD width=400 colSpan=2><FONT id=L_defaultr_6
          style="FONT: 8pt/11pt verdana; COLOR: #000000">
          <HR color=#c0c0c0 noShade>
          <P id=L_defaultr_7><B>Try the following:</B></P>
          <UL>
            <LI id=L_defaultr_8><B>Refresh page:</B> Search for the page again by clicking the Refresh button. The timeout may have occurred due to Internet congestion.
    <LI id=L_defaultr_9><B>Check spelling:</B> Check that you typed the Web page address correctly. The address may have been mistyped.
    <LI id=L_defaultr_10><B>Access from a link:</B> If there is a link to the page you are looking for, try accessing the page from that link.
          </UL>
          <HR color=#c0c0c0 noShade>
          <P id=L_defaultr_11>Technical Information (for support personnel)</P>
          <UL>
            <LI id=L_defaultr_12>Error Code: 400 Bad Request. The data is invalid. (13)
            </UL></FONT></TD></TR></TBODY></TABLE></BODY></HTML>

  • I am on windows 7 and I upgraded to 10.0.2 and now it will not open. I have removed firefox completely and uploaded it again and that did not work. So my latest attempt I removed firefox 10 again and uploaded the beta version and once again nothing.

    I am on windows 7 and I upgraded to the newest verison of firefox and now it will not open. I have removed firefox completely and uploaded it again and that did not work. I then made sure it could get through my firewall and that did not work. So my latest attempt I removed firefox 10 again and uploaded the beta version hoping that would do it and once again nothing. It will not open at all. Please help - is there a live chat or a number to talk to someone at Firefox?

    I think when uninstalling you may also have to choose (tick) to delete the preferences and other personal data like the bookmarks, stored passwords etc. to erase completely. If you are installing afresh, please try right-clicking on the file and '''Run as administrator''' to install. And when uninstalling, please also make sure choose to delete all data and also manually delete any '''Mozilla''', '''Mozilla Firefox''' or '''Firefox''' from %appdata%, %localappdata% and %programfiles%. You can open a location by typing for eg. %appdata% in the '''Run''' box (Windows key + R). You may also have to check the '''VirtualStore''' folder in %localappdata%. Files in the VirtualStore can be problematic. I think a clean installation may help.
    [https://www.mozilla.org/en-US/firefox/new/ Firefox]
    [http://kb.mozillazine.org/Installation_directory Installation Folder]
    [http://kb.mozillazine.org/Profile_folder Profile Folder]
    Please note that using system restore would usually damage the Firefox installation.

  • I've just updated my iPhone to the new iPhone OS and now it won't work and iTunes won't recognise that it's there.  I've uninstalled iTunes and reinstalled twice and it's not working.  Please help.

    I've just updated my iPhone to the new iPhone OS and now it won't work and iTunes won't recognise that it's there.  I've uninstalled iTunes and reinstalled twice and it's not working.  Please help.

    I have not had wifi since November when I upgraded to the newest IOS version.  I called the Apple help line and they told me some things to do and I tried them all and they worked for a few hours and then wifi shut off again.  I kept doing what they told me and it worked for a couple more days and then I could never turn it on again.  My blue tooth doesn't work either.  I had to actually increase my data usage with AT&T becuase of this.  When I did that in December I went to the Apple store and was told that it is a hardware issue and since my phone is out of warranty I would have to pay for a new phone because they could not fix the issue.  My upgrade isn't up until June 2014 so not only do I have to wait for the upgrade and I am not paying for a new phone but I have to pay $10 plus extra a month on my cell phone bill because I was going over on my Data!!!  I have been beyond upset about this and Apple is not doing anything about this nor did they offer up some way to resolve the issue because obviously it is not just some rare incident if several people are having this issue.  Who knows how many people out there have had this issue and have not said anything about it.  Now there is a newer update that I can't do because it requires wifi in order to download.
    June can not get here fast enough and I may not go back to Iphone after dealing with this for so long with no help from Apple.

  • Keyboard and trackpad are not working, Keyboard and trackpad are not working

    I'm using MBP 15" late 2008 with Maverick OS. A couple of days ago, the internal keyboard and trackpad are not working at all. I did all the troubleshooting. I even reformat it; installing the snow leopard and re-installing the maverick but no good result. I believe there's no problem with my keyboard because i can still do PRAM on my lappy. Everytime i'm booting up my MBP, it always looking for bluetooth trackpad and keyboard. I have not used those bluetooth peripherals from day 1 i've started using MBP. I just read on the internet about the same problem has happened on MBP 13" retina and APPLE fixed it by updating the software. I wish Apple will also do something for the old MBP to fix the intermal keyboard and trackpad problem.

    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the method for:
    "Resetting SMC on portables with a battery you should not remove on your own".

  • Windows error: iTunes crashes (uninstall and reinstall does not work)

    Hello all.
    I (and another user) have had a problem with iTunes crashing when trying to open it. Windows just generates the typical vague error message that explains nothing as to what the problem is. Uninstalling and reinstalling did not work, and using the "Repair" option did not work either.
    This was the solution. Hope it works for you. Cheers.
    C ;o)
    Here are the steps, some might be redundant, but still follow them to try and get iTunes to work.
    1. *Extremely important* Close the QuickTime launcher in the tray on the right side of your Windows TaskBar (right-click on the blue QuickTime "Q" logo next to where you have the time and date and select "exit".) The QuickTime logo should disappear from the tray.
    2. Go to where your iTunes library folder is, copy it and put it elsewhere on yoour hard-drive. This is where you asked your iTunes to point to and keeps the full repository of the files sync'ed to your iPod. If you don't do this, you will have to re-create the full library of all the music and files you have put into iTunes.
    3. Unistall iTunes and reboot your PC.
    4. Go to c:\Program Files\Quicktime and delete this whole folder.
    5. Go to c:\Windows\System 32 and: delete the Quicktime FOLDER there; then (ii) scroll down and delete all other QuickTime related files (there should be 5-10 of them, I didn't count, some will have a name like QuickTMvr whatever).
    6. Empty Recycle Bin.
    7. Reboot your PC.
    8. Go back to Apple Website and download: iTunes, and (ii) QuickTime installation only (without iTunes).
    9. Install QuickTime FIRST (use newly downloaded version)! Check it works OK by opening it.
    10. Close QuickTime lanucher from tray, as explained above in step 1.
    11. Install iTunes (use the newly downloaded version).
    12. Open iTunes. If it opens fine (clap your hands and say "hurray", and actually I said out loud to my PC, "Please work" and it did - I don't know if this step helped at all. ;o) ), then close iTunes FIRST BEFORE DOING THE NEXT STEP. Go to where the new iTunes (and library) folder is, rename the new iTunes folder (as you might notice when/if you open iTunes, that it is all blank), and copy the old iTunes folder (from step 2) to the same location. Re-open iTunes. It should be the way it opened the last time.

    Btw.
    Don't forget that, from my experience, most iTunes errors comes from malfunctioning instances of QuickTime.

  • I am using chat-r wireless and facetime is not working but when i put rogers fido or any other carrier sim in it work. Anyone know what the problem?

    I am using chat-r wireless and facetime is not working but when i put rogers fido or any other carrier sim in it work. Anyone know what the problem?

    I'm guessing it's a compatibility problem similar to that that T-Mobile in the US has. I'm not familiar with chat-r wireless, but I'm guessing it's not a supported carrier for the iPhone. If they can't tell you how to fix it, I'm guessing it's just plain not going to work.

  • Not able to sign into Blackberry Protect. Backup and Restore function not working. "Your device isn't associated with a Blackberry ID"

    Not able to sign into Blackberry Protect.  Backup and Restore function not working. Message is: "Your device isn't associated with a Blackberry ID."  My Blackberry Messenger and Blackberry World is working fine so I am sure its not an ID issue on the phone.  I can sign into Link, Blackberry.com and Protect.  I see my device in Protect but cannot send messages or view it on a map.  Times out with cannot reach device message.  BB Protect on Device has a swirling circle beside the on/of switch.  Cannot turn off.  
    I have deleted Link and re-installed.
    I have reset phone to default(factory) and signed in. 
    OS level is 10.2.1.3062
    BB Link is 1.2.3.56
    Solved!
    Go to Solution.

    I managed to figure this out myself. I had to delete the device from the Blackberry Protect website.  protect.blackberry.com.  I wiped my device again and signed in with my Blackberry ID.  I dont know if the step of wiping was necessary as I did not try my backup with the current configuration on the device following the delete.  Restore is in progress for me!

Maybe you are looking for

  • Windows 8.1 on Touchpad

    Hello, Recently, I was helping a friend over the phone. He's using an Asus Touchpad with a Windows 8.1 OS. He was claiming he couldn't get the keyboard to function after connecting it. I walked him through disabling the Touch Screen (assuming it woul

  • HELP: "Fitting" toolbar buttons not showing up in CS5

    Hi All, I can't figure out how to get this to work. The toolbar buttons in CS5 are a bit different than those that show up when I am in CS4 and I am not familiar with the changes. I like the "fit content to frame", "fit content proportionally", etc.

  • White stripes in exported JPEGs

    Dear Friends, I use Windows XP SP 2, Indesign CS 2 (Vers. 4.0.5). I use the Indesign in-built jpeg export function very often because I need the output for some flash presentation (flash book). But the output is sometimes distorted with white stripes

  • IPhoto locks up and closes.

    New Mac user.  Working with iphoto using "edit" feature.  When I try to return to the picture group after "editing" using the back arrow in the upper left corner of frame it locks up, goes astray etc.  Then it shuts down.  I get a nice dialogue box t

  • Phone locked in uk

    hi i have n 70 and this is locked in uk can i use this in any other part of the world ..what should i do to unlock this