Oxford Mercury series instruments : Works with NI-MAX but fails with Labview

Hi,
  I am trying to interface an Oxford Instruments "Mercury Series" power supply for superconducting magnets, I am using Labview 2013 and an NI USB-GPIB-HS.
The problem I have is the following:
1.  After connecting the instruments I run NI-MAX (ver 14.0) to check that the instruments are recognized by the GPIB-bus. Everything goes fine, the instruments are detected and I can communicate with it by typing commands in the 488.2 communicator. Read and write both work fine.
2. Then I try to write my own code in Labview to run the instrument.  The standard 488.2 commands Send/Recieve or GPIB-Write anf GPIB-Read do not work.
There are other instruments on the same bus also - which work fine with both NI-MAX as well as my vi-s from Labview.  I have tried doing the "obvious" things
like intialising the GPIB before sending any command and then do a Device Clear for the specific instruments before sending other commands.
3. So the question is : What can be the reason for an instrument to respond correctly via NI-MAX but fail to do when addressed from Labview with essentially
similar basic commands?
I have tried tracing the origin of the errors via I/O trace (NI-spy), but they didn't help in locating the precise problem.
Would be grateful if somebody could suggest an answer.
Have other people faced this before?
Thanks-
Kanti

The instruments are actually newer  (rather than an older version). You are correct that they need an extra "\n" after the command string - which I had provided.
The command tryped in NIMAX was simply  "*IDN?\n"   in response to which  the instrument sends its identification string correctly. 
All other commands also worked properly.
I then tried the same in Labview using   "Send" and "Recieve". The Recieve generates the error.
I am attaching the trace file (converted to txt) and the VI. Line 10-14 has the error.
Thanks
Attachments:
test07.vi ‏12 KB
NImaxCapture_test07.txt ‏5 KB

Similar Messages

  • Query works in Test mode but fails with transient failure

    Hi,
    I have a query that works well while testing with input json data. However, when the job is started the query fails with transient failure.
    I have two eventhub input sources input1 and input2. I also have a reference data source in a blob, ref.
    The query is 
    WITH nameone AS(
    SELECT ref.field1 as field1,ref.field2 as field2,MIN(input1.datetimestamp) AS datetimestamp,avg(input1.value) as value FROM input1 TIMESTAMP BY datetimestamp JOIN ref ON ref.field1 = input1.field1 GROUP BY ref.field1,tumblingwindow(second,30)
    ), nametwo AS(
    SELECT ref.field1 as field1,ref.field2 as field2,MIN(input2.datetimestamp) AS datetimestamp,avg(input2.value) as value FROM input2 TIMESTAMP BY datetimestamp JOIN ref ON ref.field1 = input2.field1 GROUP BY ref.field1,tumblingwindow(second,30)
    SELECT field1, field2,datetimestamp,value from nameone
    UNION
    SELECT field1, field2,datetimestamp,value from nametwo
    Thanks

    I solved the problem. 
    The issue was in conversion of incoming data to write into an SQL db.
    Query failed to convert 
     System.Int64 (incoming data format) to  System.Double ( SQL column data format)
    I solved it by changing SQL column format to int, but I think this casting should be done automatically by the query. I can also CAST the data I guess but sometimes using CAST on everything is kind of a pain.
    Another issue I faced was the failure messages. I checked the logs for last 12 hours. Sometimes the failure will point to the Writing Error (conversion of int to double) but sometimes the failure will simply be transient failure. So it was difficult to pinpoint
    the error exactly.
    Thanks anyways.

  • Works fine using ADS but fails with NTLM

    Hello ,
    We have developed an iView which grabs data from a SQL database. In the personalization dialog , the user can choose all the values of a column so that the result set contains only those records which had the selected column values. This dialog was implemented using javascript. The iView works fine when it is run on its own using ADS authentication. However, when we implement single-sign on using NTLM the personalization dialog fails when I try to store the personalization dialog.
    Does anyone have any ideas?
    Thanks

    Hello,
    I have noticed that none of the personalization dialogs work after we have moved to NTLM single-sign-on.After I press apply or save on the personalization dialog , I get a "page not found" error.Please advise.
    Thanks

  • Problem : App works with Sun App server 8.0 but fails with 8.1

    Hi All
         I am experiencing some strange problem with executing my JSF application with Sun App Server.
         I have an EAR deployed on Sun Application Server 8.0 and 8.1.
         Strangely it works quite fine with 8.0 but fails with 8.1.
         In my JSP page ..I have a dummy component whose getter method is used as a "FormLoad" event of the page.
         <h:form id="imageForm" enctype="multipart/form-data">
         <h:messages showDetail="true" />
         <table width="980" border="1" cellpadding="0" cellspacing="0" bordercolor="#A9B8C2">
              <tr>
    <td>     
                   <h:inputHidden value="#{Screen1.initializeService}"/>
              <h:selectOneListbox styleClass="style2" id="cmbMiddleArea" immediate="true" value="#{Screen1.selectedMiddleArea}">
              <f:selectItems value="#{Screen1.middleAreaList}" />
         </h:selectOneListbox>
         In my backing bean i have ..
         public String getInitializeService() {
              ..... Retrieve all the data from DB to initialize all the components on the JSP page
              .......setMiddleAreaList......
              .......setSelectedMiddleArea.....
              ........set the values of the individal component...
         I am retrieving all the data from DB in this getter method and intializing the components on the JSP page.
         I have also checked the code generated for JSP by both the servers.I am posting the code here for reference although
         i did not find any significant difference between the two...
         For Server 8.0
         private boolean jspxmeth_h_inputHidden_0(javax.servlet.jsp.tagext.JspTag jspxth_h_form_0, PageContext jspxpage_context)
         throws Throwable {
         JspWriter out = jspxpage_context.getOut();
         // h:inputHidden
         com.sun.faces.taglib.html_basic.InputHiddenTag jspxth_h_inputHidden_0 = (com.sun.faces.taglib.html_basic.InputHiddenTag) jspxtagPool_h_inputHidden_value.get(com.sun.faces.taglib.html_basic.InputHiddenTag.class);
         jspxth_h_inputHidden_0.setPageContext(_jspx_page_context);
         jspxth_h_inputHidden_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_h_form_0);
         jspxth_h_inputHidden_0.setValue("#{searchBean.initializeService}");
         int jspxeval_h_inputHidden_0 = jspxth_h_inputHidden_0.doStartTag();
         if (_jspx_th_h_inputHidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
         return true;
         jspxtagPool_h_inputHidden_value.reuse(_jspx_th_h_inputHidden_0);
         return false;
         For Server 8.1
         private boolean jspxmeth_h_inputHidden_0(javax.servlet.jsp.tagext.JspTag jspxth_h_form_0, PageContext jspxpage_context)
         throws Throwable {
         PageContext pageContext = jspxpage_context;
         JspWriter out = jspxpage_context.getOut();
         // h:inputHidden
         com.sun.faces.taglib.html_basic.InputHiddenTag jspxth_h_inputHidden_0 = (com.sun.faces.taglib.html_basic.InputHiddenTag) jspxtagPool_h_inputHidden_value_nobody.get(com.sun.faces.taglib.html_basic.InputHiddenTag.class);
         jspxth_h_inputHidden_0.setPageContext(_jspx_page_context);
         jspxth_h_inputHidden_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_h_form_0);
         jspxth_h_inputHidden_0.setValue("#{searchBean.initializeService}");
         int jspxeval_h_inputHidden_0 = jspxth_h_inputHidden_0.doStartTag();
         if (_jspx_th_h_inputHidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
         return true;
         jspxtagPool_h_inputHidden_value_nobody.reuse(_jspx_th_h_inputHidden_0);
         return false;
         Now the actual problem is "getInitializeService" method never gets called when i deploy and run the application on Sun App Server8.1
         However with Sun App Server 8.0 it woeks perfectly fine.
         Can anybody help me in resolving these issues ?
         

    Actually generated JSP code can be referred as ...
    For Server 8.0
         private boolean jspxmeth_h_inputHidden_0(javax.servlet.jsp.tagext.JspTag jspxth_h_form_0, PageContext jspxpage_context)
         throws Throwable {
         JspWriter out = jspxpage_context.getOut();
         // h:inputHidden
         com.sun.faces.taglib.html_basic.InputHiddenTag jspxth_h_inputHidden_0 = (com.sun.faces.taglib.html_basic.InputHiddenTag) jspxtagPool_h_inputHidden_value.get(com.sun.faces.taglib.html_basic.InputHiddenTag.class);
         jspxth_h_inputHidden_0.setPageContext(_jspx_page_context);
         jspxth_h_inputHidden_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_h_form_0);
         jspxth_h_inputHidden_0.setValue("#{Screen1.initializeService}");
         int jspxeval_h_inputHidden_0 = jspxth_h_inputHidden_0.doStartTag();
         if (_jspx_th_h_inputHidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
         return true;
         jspxtagPool_h_inputHidden_value.reuse(_jspx_th_h_inputHidden_0);
         return false;
         For Server 8.1
         private boolean jspxmeth_h_inputHidden_0(javax.servlet.jsp.tagext.JspTag jspxth_h_form_0, PageContext jspxpage_context)
         throws Throwable {
         PageContext pageContext = jspxpage_context;
         JspWriter out = jspxpage_context.getOut();
         // h:inputHidden
         com.sun.faces.taglib.html_basic.InputHiddenTag jspxth_h_inputHidden_0 = (com.sun.faces.taglib.html_basic.InputHiddenTag) jspxtagPool_h_inputHidden_value_nobody.get(com.sun.faces.taglib.html_basic.InputHiddenTag.class);
         jspxth_h_inputHidden_0.setPageContext(_jspx_page_context);
         jspxth_h_inputHidden_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_h_form_0);
         jspxth_h_inputHidden_0.setValue("#{Screen1.initializeService}");
         int jspxeval_h_inputHidden_0 = jspxth_h_inputHidden_0.doStartTag();
         if (_jspx_th_h_inputHidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
         return true;
         jspxtagPool_h_inputHidden_value_nobody.reuse(_jspx_th_h_inputHidden_0);
         return false;
         }

  • My firewire port works with ext hd but not with audio interface

    2010 Imac 21.5 running 10.8.5. My firewire port works with ext hd but not with audio interface. The local authorized Apple tech said that I need a new motherboard, but my firewire ext drive works perfectly. I don't understand. Thanks.

    You must go to the website of the audio interface manufacturer and look for, download and install updated drivers for the audio device you are using.
    This is not, neccessarily, an Apple issue.

  • Have Sony reader 505, ADE doesn't recognize when attached to mac OX 10.6.8. works with reader library but not with ADE

    Have Sony reader 505, ADE doesn't recognize when attached to mac OX 10.6.8. works with reader library but not with ADE

    YEAY!
    I just got the solution (that worked for me, anyway) from a Sony support rep. No PC or VMWare needed.
    OK, you've installed Sony eBook Library v3, and Adobe Digital editions, you've set up your acocunts and authorized your computer on both of them, and you've authorized your Reader with the Sony Library application.
    You go to the public library ebook download page, either through the Sony Library or just through a bookmark.
    You check out a book, and open it in Adobe Digital Editions, which still won't recognize your Reader.
    BUT, in the Sony Library app, you can now click "File, Import.." and go find the pdf you downloaded with the Adobe app.
    On my Mac, it was in ~/Documents/Digital Editions
    Import it, and drag it to your Reader.
    The first time you do this, it will ask you to authorize the Reader with your Adobe ID.
    Worked like a charm.

  • SSIS package works in development environment but fails when job scheduler executes, file path invalid

    SIS package works in development environment but fails when job scheduler executes, file path invalid
    Relatively simple package to get OLE-DB connection to MS FoxPro 9.0 DB
    The failure in the job log states that the path is invalid its a network path (\\192.168.1.xxx\foldername) this has been run several ways with the remote computer being mapped as a network drive and through the \\ notation described above.
    Thinking it was a security issue between the SQL agent account and my account I tested by subsitution myself as a proxy account for the agent when running this job, again same result failed on network path.
    One issue I see is that the remote computer is running Server 2000 (legacy software incompatable with newer versions) 
    Is it possible that this is a security issue, since if i understand correctly the current MS domain security model didn't exist until Server 2003.

    Hi REIData,
    Have you got the issue resolved? Based on your description, please make sure the target folder is shared properly. If the computer on which the SQL Server Agent job runs doesn’t join the domain as the server that hosts the shared folder, you have to share
    the folder with everyone by adding “Everyone” to the people list on the File Sharing page of the folder and assign "Read/Write" permission to it.
    Regards,
    Mike Yin
    TechNet Community Support

  • ITunes library stored on an external hard drive which is connected to my airport extreme, I wish to share my iTunes library over my network, I can do this with my laptop, but not with my iPad, can anyone tell me if it is possible

    I have my iTunes library stored on an external hard drive which is connected to my airport extreme, I wish to share my iTunes library over my network, I can do this with my laptop, but not with my iPad, can anyone tell me if it is possible

    You can't connect directly to the external drive, but should be able to use iTunes Home Sharing via the laptop.
    http://support.apple.com/kb/PH1453

  • My Printer (samsung clx-3185fw) says it connects to my network but I can't seem to print wirelessly.  I could with my netgear but not with my airport extreme, any ideas?

    My Printer (samsung clx-3185fw) says it connects to my network but I can't seem to print wirelessly.  I could with my netgear but not with my airport extreme, any ideas?
    I have restarted all units, disconnected and reconnected

    Hi ryanfromstockbridge,
    I apologize, I'm a bit unclear on exactly what you are seeing when you try to add the printer or print to the printer. If you continue to have issues printing to this wireless printer, you may find the information and troubleshooting steps outlined in the following articles helpful:
    OS X Yosemite: Printing troubleshooting
    Troubleshooting printer issues in OS X - Apple Support
    OS X Yosemite: Add or remove a printer
    Sincerely,
    - Brenden

  • My iPhone does not synced with windows 7 but synced with windows Xp

    My iPhone does not synced with windows 7 but synced with windows Xp

    Just today evening I have replaced a brand new iPhone 5 with Apple store, so I came at home  &amp; try to restore my iPhone but it is not synced (mean my iPhone does not shown in iTunes,) &amp; at the same time I m restart my PC with windows Xp , now my iPhone connected with iTunes. So what is the problem of my windows 7 ,

  • Process q001 started up but failed with error = 20

    Dear All,
    I am facing the following error in my alert log file. I am using oracle database 10.1.
    Process q001 started up but failed with error = 20
    Process q002 started up but failed with error = 20
    Tue May 18 12:11:53 2010
    Process q001 started up but failed with error = 20
    Process q001 started up but failed with error = 20
    Process q001 started up but failed with error = 20
    Process q001 started up but failed with error = 20
    Process q001 started up but failed with error = 20
    Process q001 started up but failed with error = 20
    users unable to connect to database.....
    Regards

    This may be due to AQ_TM_PROCESSES parameter.
    what is value of AQ_TM_PROCESSES parameter..
    Also paste value of processes parameter.
    Also login as sysdba and give output of :
    select * from v$resource_limit;
    Regards
    Rajesh
    Edited by: Rajesh Lathwal on May 18, 2010 12:48 PM

  • Process m000 started up but failed with error = 20

    Hi,
    Could anybody tell me what does this mean ?
    Process m000 started up but failed with error = 20
    Thu Aug 1 15:22:34 2007
    Process q000 started up but failed with error = 20
    Process q000 started up but failed with error = 20
    Process q000 started up but failed with error = 20
    Thanks,
    P.

    Check metalink note 334704.1
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:4536502596857368347::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,334704.1,1,1,1,helvetica

  • My ipod touch 4th gen. will not allow me to adjust volume with my speaker, but will with headphones. How do i fix this?

    My ipod touch 4th gen. will not allow me to adjust volume with my speaker, but will with headphones. How do i fix this?

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so. There is a little switch in the headphone jack that disconnects the speaker when the headphone jack is inserted.
    Try the following to rule out a software problem
    - Reset the iOS device. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack or other hardware problem
    Apple Retail Store - Genius Bar

  • Using iCloud my iCloud calendar is syncing with my iPhone but not with the Outlook calendar on my PC (Windows 7)

    Using iCloud, my iCloud calenda is syncing with my iPhone but not with the Outlook calendar on my PC (Windows 7)

    smurfanda wrote:
    I agree. What I see is that it is creating an icloud calendar in Outlook but I want it to sync to Outook itself.
    That is what it does. There is no sync, you have a new calendar.

  • Can query serial port with NI MAX, but doesn't work in Labview

    I'm trying to control a Coherent Sapphire 488 with labview. It's connected via a serial to USB converter into the computer. I can communicate with a device using NI MAX, but when I try to run the vi (attached), it works for several queries, but evetually returns a null character, after which I can no longer communicate with the port. If I then go into the NI MAX interface, every time I try to read it gives the "VISA: (Hex 0xBFFF0015) Timeout expired before operation completed" error message.There are also several queriess from the instrument's manual that don't seem to work at all (with or without MAX) and always return a null character. Any help is appreciated. I'm certainly a novice with device communication. Thanks.
    Solved!
    Go to Solution.
    Attachments:
    488_query.vi ‏16 KB

    Generally issue with termination character.
     And you are sending     \  and  r   and not CarriageReturn.

Maybe you are looking for

  • MacBook Pro Will Not Reboot

    My MacBook Pro is having trouble restarting. I originally opened the laptop to start working and noticed the comouter was acting strange (reconnecting to Wifi after turning it off, Chrome wasn't loading). I decided to reboot the computer to see if th

  • New modem affecting iChat?

    Hi, I've recently installed a new modem (Thomson ST780WL) - it's one of them VOIP ones. I'm in The Netherlands and I used to be able to iChat to a friend in the UK who has an Orange Livebox, but since I've had the new modem I get the "insufficient ba

  • URGENT HELP-Connecting 2 Switches

    Hi All, I need to connect 2 switches (2960 & 2960S) with only one single link in our LAN network. This is to get extra number of ports. Requesting your help with the followings: Please confirm if straight throug cable will work to connect between the

  • JAAS: location of Configuration, LoginModule classes

    Hi, I've created a custom JAAS implementation (Configuration & LoginModule classes) for use in a web-environment (Tomcat + Expresso). Question: at the moment, my set-up will only work with Tomcat and a very simple non-Expresso web-app, if and only if

  • Mavericks has run out of application memory

    Is there a fix for this yet? I've read a lot of threads full of conjecture. Thanks.