Error 6 in GPIB Write

Hi
I have a LabVIEW code acting as a driver for an EG&G 5210 lock-in amplifier. Essentially I am using the GPIB write vi to send a string to the amplifier.
I have been trying to de-bug my code for a while.
The problem is, I have split the code into each constituent control and each separate part (e.g. changing phase or filter type etc.) works absolutely fine on its own. Also, when I combine several of these into one string it also works fine, apart from the addition of the very last part. 
At this point I get error 6 "LabVIEW:  Generic file I/O error. NI-488:  I/O operation aborted."
I cannot then check any of the others parts work after this point since I only get the same error, even just testing one constiuent part (which had been working well beforehand)
I am using Labview 2011 with an NI GPIB-USB-HS with the previously mentioned EG&G 5210 amplifier.
Any help is greatly appreciated.
Please find attached my LabVIEW if required.
Jordan B
Attachments:
test 3.2.vi ‏28 KB

My guess is that when you are stringing the commands together, you aren't waiting long enough for at least one command to complete.  I can't see the VI because of the ancient version of LV that I have at work, but if the instrument is SCPI compliant, consider appending ;*OPC? to each command that isn't already a query.  This will turn that command into a query, so you execute a read (of a couple of bytes) and it will wait until the instrument has completed the command.
Read the instrument manual to make sure that the commands you are going to modify in this fashion are compatible with the *OPC? command.
Bill
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

Similar Messages

  • Error 6 @ GPIB Write

    Hello!
    I'm currently working on a flash photolysis instrument using labview. Recently I have upgraded the computer and now have error 6 occuring randomly throughout the program. I've tracked the errors down to the GPIBwrite command which happens to be used throughout the program. After doing some reading and asking a few questions, I'm pretty sure its due to race conditions but have been unable to fix the problem (Probably due to me being a novice with Labview). Just wondering if any pros out there could lend some assistance, I've attached a jpeg of the problem area!
    Thanks!
    Attachments:
    Helpme.jpg ‏63 KB

    Updated my NI-488 driver and I've narrowed down this error a little more, but it is beyond my understanding. If I probe the Write error in, and Write error out the program will run fine for an indefinate amount of time(Pic1) but as soon as I remove the probes I'll be lucky to get 30 repetitions without Error6 coming back into my life(pic2). Really don't know what to make of this...
    Attachments:
    Error_1.jpg ‏202 KB
    Error_2.jpg ‏193 KB

  • GPIB write error code 6, how to do proper wait in GPIB comm

    Hi!
    I use a Keithley MUX and a DVM to measure different values in my system, including 4 wire resistance. My project runs for several hours without any problem, but last night I have got an error after approx. 8 hours runtime. My error out in the main vi shows the following error:
    GPIB Write in A_4Wire_resMUX_2!1,2!3,2!5_new.vi Error code 6.
    I have attached this subvi, as you can see, I have put a while loop in the subvi, to give enough time for the 4Wire measurement to be done. But of course maybe another GPIB write function crashes in the subvi, not the one after the while loop.
    I have 2 questions:
    1. what is the best way to do error handling in GPIB comm., so I could see on my final error out what element caused the problem in this certain subvi?
    2. Can someone show me what I could do better in this subvi, to avoid possible GPIB errors?
    Its just guessing, but I think the error comes from that I may not give enough time to the GPIB device to perform an action, so the next GPIB write crashes?
    plus info: WindowsXP, LabView 2010 Full version
    Thanks very much for advice and help!
    Solved!
    Go to Solution.
    Attachments:
    A_4Wire_resMUX_2!1,2!3,2!5_new.vi ‏35 KB

    2001 driver
    7001 driver
    Now that you have a modern version of LabVIEW why are you not taking advantage of the instrument driver network?  VISA is wonderful and the raw 488.2 primitives should be considered "obsolete".
    Since you did not use the specific instrument driver vi's we can't tell which write to what device generates the error you are seeing. 
    So to specifically answer Q1.  Use the Driver's found on the instrument driver network- they are tested and structured in ways that assist in debugging your application and take advantage of powerful features in VISA..
    And 2) (see #1) and change the stacked sequence into a state machine
    Jeff

  • PNA Guided Calibration: GPIB write error in for loop

    Hi,
    I have a LabVIEW program that creates a Guided Power Calibration on a PNA.
    After initializing everything properly, I have a for loop that loops through all the manual steps that the user must go through (ex: Connect Channel A of Power meter to Port 1" "Connect male Short to port 1" etc).
    The problem is, the program displays an error at the first command: sens:corr:coll:guid:acq STAN1
    I says there is an error with the GPIB Write function.
    Here are the commands I send:
    SYSTRES
    DISPlay:WINDow2TATE ON
    CALCulate2ARameterEFine:EXT 'MyMeas',S21
    DISPlay:WINDow2:TRACe1:FEED 'MyMeas'
    CALC1AREL 'CH1_S11_1'
    SENS:FREQTAR 2e9
    SENS:FREQTOP 4e9
    SENSWEOINTS 3
    SENS:CORR:COLL:GUID:CONNORT1 'APC 2.4 male'
    SENS:CORR:COLL:GUID:CONNORT2 'APC 2.4 male'
    SENS:CORR:COLL:GUID:CKITORT1 '85056D'
    SENS:CORR:COLL:GUID:CKITORT2 '85056D' 
    SENSe:CORRection:COLLect:GUIDedSENsor1 ON
    SYSTem:COMMunicateSENsor gpib, "13"   
    SENSe:CORRection:COLLect:GUIDedSENsor1OWer:LEVel -20
    sens:corr:coll:guid:init
    sens:corr:coll:guid:steps?
    //for loop from 1 to total_number_of_steps
    sens:corr:coll:guid:desc? <step#>
    sens:corr:coll:guid:acq STAN<step#>
    The program quits right at the first step, when I send "sens:corr:coll:guid:acq STAN1", although the command is executed.
    Also, the VBScript with the same commands works fine.
    Can anybody help me? I've been stuck for a while now.
    I attached the block diagram of the for loop.
    Thanks in advance,
    Nicolas
    Attachments:
    Guided cal for loop.vi ‏27 KB

    Sending SENS:corr:coll:guid:acq STAN1 \n gives me a different error: -101 "Invalid Character".
    From my different attempts at figuring this out, I thought the problem would come from LabVIEW, since the vbscript with the same commands works on the PNA.
    I also modified the for loop because I thought each iteration should be linked to the previous one with the error wire (see attached).
    I still have the same issue, only the first iteration is executed, then the program quits.
    Attachments:
    Guided cal for loop.vi ‏28 KB

  • Keithley 6517B GPIB Write Error 7

    Hello,
    I have a Keithley 6517B running and communicating with PC through GPIB. The program was initially running fine, and giving the current-noise signal against applied voltage (as programmed). But now when I run the program , it is giving an error that arises at the 6517 Reset/Preset.vi -
    Error 7 occurred at GPIB Write in Keithley 6517A Reset / Preset.vi
    How do I get rid of this error. I don't understand how suddenly an error arised when I changed nothing in the program or settings of the keithley. The keithley is configured at GPIB address 27.
    I am attaching the main program and the sub.VI llb file .
    Now when I run the main program, the graph does not show any current or noise signal, but it shows a straight line plotted along '0' along the x-axis (that is, against time or voltage)
    Please help.
    Best Regards,
    Poulomi Das.
    Institute for Microsystems Engineering.
    University of Freiburg.
    Freiburg, Germany.
    Attachments:
    VI Measurements_v4.vi ‏45 KB
    kei6517v6.llb ‏1213 KB

    Hello Mike,
    I was on leave hence the late reply. I have attached the entire LV main vi with the sub VIs llb file to the very first message on this post. I have attached them again to this message.Do you mean something else?
    Best Regards,
    Poulomi Das.
    Institute for Microsystems Engineering.
    University of Freiburg.
    Freiburg, Germany.
    Attachments:
    VI Measurements_v4.vi ‏45 KB
    kei6517v6.llb ‏1213 KB

  • GPIB Write to multiple address

    How do you write commands to multiple instruments?  I get Error 6-GPIB
    Controller not in charge when I use GPIB Write consecutively in block
    diagram.  Is there an easy way?
    Attachments:
    Multiple IO.llb ‏25 KB

    Hi Rig
    see attached llb
    Its quick and 'dirty' it assumes you already know instrument addresess's!
    Note use of sequence -this can be improved by either state machine or
    simply by connecting vi in series using error connection as link.
    No error detection coding has been added. This could cause problem with regard to time out etc.
    Basically it should give you inspiration.
    xseadog
    Attachments:
    Basicinstr.llb ‏204 KB

  • Windows Server 2012 VSS error "The system writer is missing"

    Hello All,
    I have a HP server that I have just installed Server 2012 standard, SQL Server 2012 and Sharepoint 2013.
    When I try to take bare metal backup I get the error: "The system writer is missing", I have tried the backup as the local admin and domain admin.
    The backup will only work if I decide to back up C:, once I select "Bare Metal" or "System State" the backup fails.
    I have tried this solution: http://technet.microsoft.com/en-us/library/cc734021.aspx but have not had any luck yet.
    When I run the command "vssadmin list writers" I can not see "System Writer" listed.
    How can I add/turn on the System Writer?

    Hi,
    The system writer fails due to the fact that the trusted installer & system accounts are missing permissions to files in the directory %windir%\winsxs\filemaps\.
    To resolve this issue, please run the following commands from an administrative elevated Command Window:
    CD c:\windows\system32
    Takeown /f %windir%\winsxs\filemaps\* /a
    icacls %windir%\winsxs\filemaps\*.* /grant "NT AUTHORITY\SYSTEM:(RX)"
    icacls %windir%\winsxs\filemaps\*.* /grant "NT Service\trustedinstaller:(F)"
    icacls %windir%\winsxs\filemaps\*.* /grant "BUILTIN\Users:(RX)"
    For more information, please also refer to the following links:
    Discussion Forum FAQ: VSS System Writer is missing. 
    http://social.technet.microsoft.com/Forums/en-US/winserverfiles/thread/0b1eb10a-d666-4f5e-b657-c93b1d754a7f
    Failure during Windows Server 2008 System State Backup & System Writer Missing
    http://blogs.technet.com/b/chrad/archive/2009/11/18/failure-during-windows-server-2008-system-state-backup-system-writer-missing.aspx
    Regards,
    Arthur Li
    TechNet Community Support

  • Trying to install itunes on my new windows 8 laptop and getting an error message cannot write to file?

    error message cannot write to file when trying to install itunes on windows 8 laptop.

    Hi Stacy,
    Welcome to Apple Support Communities.
    Take a look at the article below, it provides a lot of great tips that will resolve most iTunes installation issues.
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    If you run into any issues, just reply with details about the step you're on and what you're seeing.
    -Jason

  • Gpib write or read sometimes hogs cpu

    I have written a simple vi to communicate and
    control a Stanford Research SR640 programmable filter.  It does a
    series of gpib writes and reads to get and set various controls on the
    instrument, and it works very well.  The problem comes when I try to
    call it from a more complex vi that controls the entire experiment. 
    Once the sr640 vi is linked into the big vi, it takes 10-20 seconds for
    the sr640 vi to return and it hogs the cpu, making even the mouse
    unresponsive, Windows task manager stops updating, etc.  This happens
    even when running the simple sr640 vi directly from its front panel
    with no other vi's executing.  In "lightbulb" mode, I can see that
    occassionally, the gpib write or read icons (from traditional gpib
    pallette) take a long time to return, and the cpu goes to 100%.
    If
    I remove the complex calling vi from memory, the problem goes away, ie
    the sr640 vi runs fine.  If I load the big vi back into memory, I
    reproducibly get the bad behavior when running the sr640 vi. Note that the big vi does not need to be running to cause trouble, only be loaded in memory.   If I
    delete the sr640 vi from the big vi, i.e. it is no longer called from
    the big vi, the sr640 vi again runs fine.
    Any idea what might be happening and how to go about debugging this?
    Thanks,
    Bob Shelby

    Thanks for the reply. 
    Attached is the SR640 vi and a calling vi that works just fine.
    Bob 
    Attachments:
    srs_filter_setparms.vi ‏42 KB
    test_sr640.vi ‏17 KB

  • [Flat File Destination [220]] Error: Failed to write out column name for column "Column 2"

    I am using SSIS to extract fixed width data into a flat file destination and I keep getting below error. I have tried almost everything in this forum but still no solution. can anyone help me out to solve this problem.
    [Flat File Destination [220]] Error: Failed to write out column name for column "Column 2".
    [SSIS.Pipeline] Error: component "Flat File Destination" (220) failed the pre-execute phase and returned error code 0xC0202095
    Thanks

    Hi Giss68,
    Could you check the Advanced tab of the Flat File Connection Manager to see whether the InputColumnWidth and the OutputColumnWidth properties of the Column2 has the same value? Please refer to the following link about the same topic:
    http://stackoverflow.com/questions/10292091/how-do-i-fix-failed-to-write-error-while-exporting-data-to-ragged-right-flat-fil 
    If it doesn’t work, please post the sample data and the advanced settings of Column2 for further analysis.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Error, can't write to temp

    Hello,
    On a Mac with Creative Cloud, when I try to install any application I get this error message :
    Installation failed
    Error, can't write to temp..

    Iozo the next step would be to try a new local administrator account to see if you face the same difficulties.  Are you receiving any other strange behavior under your current User account?  I would think you would be seeing errors much more often if you were unable to write to the temporary directory.
    Another option is that you may want to look at the security software you are using.  Perhaps it is attempting to prevent our installers from writing to the temporary directory.  This could explain while your file permissions are correct but you still receive the same error.

  • Error on content write: Socket closed

    Since a week or so we are getting the following stack trace on our WebCenter Portal (11.1.1.6.3). There are several content presenters on it, and so far I've not found out yet where the problem originates from. Has anyone experienced the same, or perhaps any pointers?
    <Aug 24, 2012 3:10:13 PM CEST> <Error> <oracle.webcenter.content.internal.http.HttpServiceImpl> <WCS-11001> <Error on content write: Socket closed
    oracle.webcenter.content.internal.http.InternalServerErrorException: Aug 24, 2012 3:10:13 PM oracle.webcenter.content.internal.http.HttpServiceExceptionFactory getException
    ALL: Error on content write: Socket closed
    at oracle.webcenter.content.internal.http.HttpServiceExceptionFactory.getException(HttpServiceExceptionFactory.java:191)
    at oracle.webcenter.content.internal.http.HttpServiceExceptionFactory.createInternalServerError(HttpServiceExceptionFactory.java:707)
    at oracle.webcenter.content.internal.http.HttpServiceExceptionFactory.createInternalServerError(HttpServiceExceptionFactory.java:685)
    at oracle.webcenter.content.internal.http.HttpServiceExceptionFactory.createInternalServerError(HttpServiceExceptionFactory.java:664)
    at oracle.webcenter.content.internal.http.Entity.sendResponse(Entity.java:205)
    at oracle.webcenter.content.internal.http.HttpServiceImpl.doGetOrHead(HttpServiceImpl.java:322)
    at oracle.webcenter.content.internal.http.HttpServiceImpl.service(HttpServiceImpl.java:179)
    at oracle.webcenter.content.http.GetHandlerServlet.service(GetHandlerServlet.java:225)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:75)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >

    We have a content presenter which loads a video file from the content server. It looks like the socket is unexpectedly closed at some point if the video is paused or stopped for some reason.

  • Error attempting to write location redirection to web server (Windows NT error number -2147467259 occurred)

    I'm seeing an error pop up on a development server... error
    2408:
    "Error attempting to write location redirection to web server
    (Windows NT error number -2147467259 occurred)"
    Any idea what this is? I can't seem to find anything
    solid.

    I'm having the same problem but it just started.  Logged in last week from work computer running IE 8.0.8 with no problems.  Today I keep getting problem connecting to server.   Clicking on the error indicator gets me the same error.
    Message: Object expected
    Line: 5
    Char: 1963
    Code: 0
    URI: https://setup.icloud.com/ajax_sender.html
    Tried clearing browser history,cookies, etc.. nothing works.

  • Scanning problem. Receive error message: cannot write file. Code 10,242,7. Please help

    I just purchased and installed a Canon MX 922 multi-function printer. I'm having a problem with the scanner in that the output after scanning cannot be displayed and is accompanied with an error message : Cannot write file. Code 10,242,7. This occurs when scanning documents and images. My operating system Windows XP (32).  Can anyone please help me solve this problem? Thank you.  

    Hello. Please try the following adjustment to see if we can resolve this issue: 1.  Open the IJ Scan Utility from your Desktop or the Canon Utilities listing of the Start Menu.2.  Click Settings.3.  On the left, choose the Auto Scan tab.4.  Click the Defaults button on the lower right.5.  Continue this process with each tab on the left.6.  Click OK at the bottom of the Settings menu. Once this has been done, try scanning from the IJ Scan Utility to test the unit. If these troubleshooting steps do not work, feel free to call us at 1-800-OKCANON.

  • Error output to 'write to spreadsheet'

    Hi 
    I dont know, whether someone talked about this earlier.
    But I prefer error output for 'write to spreadsheet file' subvi, as it keep crashing the software with error 5.
    I want this, 
    Thanks
    Cube

    > that would make people think it works with Excel "spreadsheets".
    actually, tab-delimited text files work fine with excel (of course there are some exceptions )
    I would rather have this VI removed from the palettes and marked it as deprecated since it does not conform to LV style-guides (no error in/out) any more. I also guess that the pop-up dialog might block other LV threads which will be a serious issue if you have some data logging running. (I can find/build/provide several nice examples where a pop-up VI set to dialog appearance - and also user interaction on GUI elements - can block other loops running in LV)
    Thus, I never use the pre-programmed write/read spreadsheet VIs, I always write my own version - usually takes 2-3 LV primitives + a few constants ...
    just my 2 cents
    -Benjamin
    CLA

Maybe you are looking for