Serial VISA operation does not work while PC Software does

Hello everyone.
I am using LabVIEW to communicate with a control box via VISA Serial. I can communicate with this control box in most areas just fine, like the data monitoring function which I use without any problems. The one thing I'm having trouble with is calibrating the unit. Calibration is done by opening a binary file and transferring the data 16 bytes at a time over serial using a 16 byte write command, which has this structure: [Command, in this case "P"][2 byte address starting at 3800 HEX][16 bytes of data][1 byte checksum]. I am calculating the checksum correctly, and documentation says that the box should respond to any command within 100 milliseconds.
When I  attempt to do this, the box responds with an E several times (E is supposed to mean checksum error, even though I'm correctly calculating it), then stops responding to anything at all. The weird thing is that this box comes with software that can calibrate it and that software has no problems with it!
I tried using SuperMon to capture what the software sends over serial and compare it to what I send, and from what I can see, it sends the same data that I do, only it works and mine doesn't. I also tried using SuperMon to manually send the calibration one 16 byte write function at a time, and it seems to have the same problem.
It seems because their software works, I must be doing something wrong. Here's a screen shot of my code that I'm trying to use. Any help would be greatly appreciated!
Solved!
Go to Solution.
Attachments:
upload_calibration.PNG ‏23 KB

lukepike wrote:
Could you explain what you mean a little more? I never thought about that, I tried byte-swapping the whole command string right before I wrote it to the port, that didn't work. I also tried just byte-swapping the data only and nothing else, still no go.
I had another look at the NI Spy data, and it seems that some hex values are unprintable, maybe this is why they don't show up in the ascii part of the property window.
That's exactly what I meant.  Hmmm, the serial port is config'd the same way it is for the parts of the code that work?  Maybe there's a framing issue so the data is offset and the UUT sees it as garbage?
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

  • Opera mini not working after updating software fro...

    i bought a nokia 6303c on feburary 2010 , at that time the software version of my mobile was v9.10 but after two or three months i noticed that my calculator was missing an some other menu function are also missing. so i searched in internet and got information in nokia discussion that that missing calculator is software problem. So i decided to go to nearest nokia care for solution of my problem, where they updated my software to v10.12 i got my calculator back, but from the day opera mini is not working properly, then after one month i again go to nokia care , then they again updated my software , but problem remains same. so i asked them to please give me old version in my mobile but they told me that it is impossible to downgrade to 9.10,  i m fed up of this problem. In comparison of this new version my old version is much better.. please help. might be this is also a bug of software nokia gives that useless lifetool and nothing improvement is there.

    Could be a problem with the App and that it may not support IOS 7.1.1 yet and need updating.

  • Hello I am using Ipad 4 and its charger is not working while I was using it few days before and it was working properly now it says that the cable does not support this Ipad Please Help me out.

    Hello I am using Ipad 4 and its charger is not working while I was using it few days before and it was working properly now it says that the cable does not support this Ipad Please Help me out.

    Try a reset:
    - Hold the home button and sleep/wake button down at the same time. When the Apple logo appears release both buttons then try and charge again.
    If issue persists try:
    - Another known working cable
    - Check the charging port for any damage or debris
    - You could also use a dry soft bristle toothbrush and gently brush it on the port to clean it of any debris that could be in there

  • Iphone 5c clock does not work while asleep

    done hard reset updated on and off set automatically time but it works while the device is in use

    iphone 5c clock does not work while asleep
    I have to ask how you know... does it show the right time before you go to sleep? When you wake up?

  • My autofill does not work while using Safari. Have checked both Safari and Apple settings.

    My Autofill does not work while using Safari. I have checked both my Safari settings and my Apple settings but don't know what else to do.

    Hi Eustace....yes, I did reset Safari but it didn't help. I'm running Mac OS X Lion 10.7.5...which might be the problem...my Safari is Version 6.1.1.

  • Delete operation is not working to delete selected row from ADF table

    Hi All,
    We are working on jdev 11.1.1.5.3. We have one ADF table as shown below. My requirement is to delete a selected row from table, but it is deleting the first row only.
    <af:table value="#{bindings.EventCalendarVO.collectionModel}" var="row"
    rows="#{bindings.EventCalendarVO.rangeSize}"
    emptyText="#{bindings.EventCalendarVO.viewable ? applcoreBundle.TABLE_EMPTY_TEXT_NO_ROWS_YET : applcoreBundle.TABLE_EMPTY_TEXT_ACCESS_DENIED}"
    fetchSize="#{bindings.EventCalendarVO.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.EventCalendarVO.collectionModel.selectedRow}"
    selectionListener="#{bindings.EventCalendarVO.collectionModel.makeCurrent}"
    rowSelection="single" id="t2" partialTriggers="::ctb1 ::ctb3"
    >
    To perform delete operation i have one delete button.
    <af:commandToolbarButton
    text="Delete"
    disabled="#{!bindings.Delete.enabled}"
    id="ctb3" accessKey="d"
    actionListener="#{AddNewEventBean. *deleteCurrentRow* }"/>
    As normal delete operation is not working i am using programatic approach from bean method. This approach works with jdev 11.1.1.5.0 but fails on ver 11.1.1.5.3
    public void deleteCurrentRow (ActionEvent actionEvent) *{*               DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcItteratorBindings =
    bindings.findIteratorBinding("EventCalendarVOIterator");
    // Get an object representing the table and what may be selected within it
    ViewObject eventCalVO = dcItteratorBindings.getViewObject();
    // Remove selected row
    eventCalVO.removeCurrentRow();
    it is removing first row from table still. Main problem is not giving the selected row as current row. Any one point out where is the mistake?
    We have tried the below code as well in deleteCurrentRow() method
    RowKeySet rowKeySet = (RowKeySet)this.getT1().getSelectedRowKeys();
    CollectionModel cm = (CollectionModel)this.getT1().ggetValue();
    for (Object facesTreeRowKey : rowKeySet) {
    cm.setRowKey(facesTreeRowKey);
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding)cm.getRowData();
    rowData.getRow().remove();
    The same behavior still.
    Thanks in advance.
    Rechin
    Edited by: 900997 on Mar 7, 2012 3:56 AM
    Edited by: 900997 on Mar 7, 2012 4:01 AM
    Edited by: 900997 on Mar 7, 2012 4:03 AM

    JDev 11.1.1.5.3 sounds like you are using oracle apps as this not a normal jdev version.
    as it works in 11.1.1.5.0 you probably hit a bug which you should file with support.oracle.com...
    Somehow you get the first row instead of the current row (i guess). You should debug your code and make sure you get the current selected row in your bean code and not the first row.
    This might be a problem with the bean scope too. Do you have the button (or table) inside a region? Wich scope does the bean have?
    Anyway you can try to remove the iterator row you get
    public void deleteCurrentRow (ActionEvent actionEvent) { DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcItteratorBindings =
    bindings.findIteratorBinding("EventCalendarVOIterator");
    dcItteratorBindings.removeCurrentRow();Timo

  • LIKE operator is not working in SQL Query in XML file

    Hi Gurus,
    LIKE operator is not working in SQL query in XML template.
    I am creating a PDF report in ADF using Jdeveloper10g. The XML template is as follows
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <dataTemplate name="catalogDataTemplate" description="Magazine
    Catalog" defaultPackage="" Version="1.0">
    <parameters>
    <parameter name="id" dataType="number" />
    <parameter name="ename" dataType="character" />
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[
       SELECT ename, empno, job, mgr from EMP where deptno=:id and ename LIKE :ename || '%']]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="EmployeeInfo" source="Q1">
    <element name="EmployeeName" value="ename" />
    <element name="EMPNO" value="empno" />
    <element name="JOB" value="job"/>
    <element name="MANAGER" value="mgr" />
    </group>
    </dataStructure>
    </dataTemplate>
    if i pass the parameter value of :ename from UI, it doesn't filter. But if I give ename = :ename it retrieves the data. Can anyone help me why LIKE operator doesn't work here?
    Appreciate your help,
    Shyamal
    email: [email protected]

    Hi
    Well for a start, you are doing some very strange conversions there. For example...
    and to_char(a.msd, 'MM/DD/YYYY') != '11/11/2030'
    and to_char(a.msd, 'MM/DD/YYYY') != '10/10/2030'If a.msd is a date then you should e converting on the other side ie.
    and a.msd != TO_DATE('11/11/2030', 'MM/DD/YYYY')
    and a.msd != TO_DATE('10/10/2030', 'MM/DD/YYYY')Also, you may want to take into consideration nothing being input in :P2_ITEM_NUMBER like this...
    AND INSTR(a.item_number,NVL(:P2_ITEM_NUMBER,a.item_number)) > 0Is item number actually a number or char field? If it's a number, you want to explicitly convert it to a string for using INSTR like this...
    AND INSTR(TO_CHAR(a.item_number),NVL(TO_CHAR(:P2_ITEM_NUMBER),TO_CHAR(a.item_number))) > 0?
    Cheers
    Ben

  • HT201407 The shake operation is not working on my iPhone, can anyone help me with it plz

    The shake operation is not working on my iPhone, can anyone help me with it plz

    All depnds what your using it for..  If it's an app, may be a delay in the app doing an update to be compaitible with iOS 6.  If its for an Apple app, then you need to check the settings for that specific app.

  • Iphone 6 plus fingerprint is not working while charging

    My iphone 6 plus fingerprint scan is not working while charging. Is this normal?
    I tried my iphone 5s and it works just fine even while charging.

    I think I got an answer to my own question
    If you're using generic lightning cable (non-original lighting cable), the fingerprint scan doesn't work while charging.
    I just find it weird as my iphone 5s works even if i'm not using the original lightning cable though.

  • HT1665 i have an apple IPhone4. I am experiencing certain problem with my iphone4. The problems are as follows a. my ear piece and proximity sensor is not working while making a call. 2. It cannot reproduce sound without earphone but rings if gets any cal

    Hi folks,
    i have an apple IPhone4. I am experiencing certain problem with my iphone4. The problems are as follows a. my ear piece and proximity sensor is not working while making a call. 2. It cannot reproduce sound without earphone but rings normally if gets any call.
    Can any one help me in this regard??

    Try to reset the phone by holding the sleep and home button for about 10sec, until the Apple logo comes back again. You will not lose data by resetting, but it can cure some glitches after installing new software or apps.

  • I am having trouble with my speakers not working while online in particular on windows.My audio works when playing audio files

    I am having trouble with my speakers not working while online particular on facebook. My audio works when playing audio files.

    Hi,
    Did it happen all the time or sometime?
    Please check online browser status:
    Click Volume icon in the taskbar, click Mixer link button as below:
    If it's fine, follow this guide to run troubleshooter to detect and fix the issue:
    Tips for fixing common sound problems
    http://windows.microsoft.com/en-in/windows/tips-fixing-common-sound-problems#tips-fixing-common-sound-problems=windows-7
    Meanwhile, this similar thread also could be referred:
    https://social.technet.microsoft.com/forums/ie/en-US/a4a1cfe5-93a5-4c0b-9bf6-f7db0304f2ba/no-sound-on-youtube-or-any-other-webpage
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Microphone not working while using handset

    microphone not working while using handset
    But it is working when loud speaker is On
    Y
    Wat to do??
    Kindly revert with your comments

     Repair the phone with PCC and report back  PC Companion (PCC)  Bridge (for Mac)   Alternatives on How to backup Xperias http://talk.sonymobile.com/thread/36355  

  • Hp split x2 touchscreen not working while un-docking

    hello hp support, i've recently bought a hp split x2 13-110dx. my touchscreen stops working whenever i detach the screen (tablet) from the keyboard (docking station). if i try to safely remove "Docking Station", first nothing happens and then after about 10 seconds all controls (touchscreen and touchpad) othen the keyboard itself stops responding. a reset allways solves this problem but that means that now i allways have to reset after every undocking. also, if the tablet is working fine, and i dock the tablet, again the touckscreen stops responding (again, reset required) i have done a hard (full) shutdown.i have installed all microsoft updates (i am running win8, not 8.1). what to do?sincerely,matan leilien

    Hi  ,
    Thank you for visiting the HP Forums! A great place where you can find solutions for your issues, with help from the community!
    I came across your post about the Notebook, and wanted to assist you! I have looked into your issue about your HP Split x2 Touchscreen and issues with the touchscreen not working while removed from the dock. Here is a document to troubleshoot the TouchScreen. The section you need is the TouchScreen responds inaccurately.
    Here is a link to the HP Support Assistant if you need it. Just download and run the application and it will help with the software and drivers on your system that need updating. Hope this helps. Thanks.

  • Iphone4 speakers not working while calling!!

    Hi
    Can somebody help me?
    My Iphone4 speakers not working while calling only and they work elswhere!!
    I tried to reset the devise with sleep and home buttens but nothing changed?!
    Thx

    Hi
    Can somebody help me?
    My Iphone4 speakers not working while calling only and they work elswhere!!
    I tried to reset the devise with sleep and home buttens but nothing changed?!
    Thx

  • Soundtrack Pro, with Logic Studio. app will not work, while Garage Band is present on my iMac?

    Still new to Logic Pro. Got the Soundtrack Pro when i bought the Logic Studio. am i to understand that this app will not work, while Garage Band is present on my iMac?
    if this is true, i'd welcome any suggestions.  do i have to delete GarageBand on current machine which has Logic Pro?
    appreciate any help
    thanks,

    My MacPro w/ OSX 10.6.8 runs GarageBand, SoundtrackPro and Logic 9 (Express) without issues.
    Everything was installed fresh - ie no overwrite OS upgrades and no app version overwrite upgrades.
    Just so we are clear - an UPGRADE would be from OSX 5 to 6 or from Logic 8 to 9 and involves a purchase. UPDATES are those decimal increments - 10.6.7 to 10.6.8  or Logic 9.1.3 to 9.1.6 that are free.
    Sometimes the sequence of installs can make a difference.
    Good luck,
    x

Maybe you are looking for

  • I have lost fotofox from my firefox page and I can`t get it to reapear even by downloading it again

    I had trouble with a pop up ad on a page It kept putting up boxes andnot letting me do anything else so I closed Firefox. When I went back into Firefox I no longer had the buttons for Fotofox or Feedly. I have tried downloading them again with no luc

  • Weird problem when executing an update statement

    Please help me out with this issue. This a very weird problem i'm facing while executing the following update statement. update tblo.S_TABLE c SET (ACCNT_NAME, ACCNT_LOC) = (select NAME, LOC from S_TABLE1 p where p.ROW_ID = c.ACCNT_ID) where ROW_ID =

  • Name : leopard Type : Volume  Disk Identifier : disk1s2 Mount Point

    Early in October, after installing SL and the first upgrade, I began experiencing colour flashes on transitions on slideshow projects created in iMovie '09. I contacted Apple Support and began working with one of the technicians. She reported that af

  • Release Outside when dragging object

    Hi there, I have a number of tabs which can be dragged around the screen.. I've constrained the movement to a rectangle using startDrag(false, rectangleName) but when I ROLL_OUT or MOUSE_UP outside of the constrain rectangle the tab does not register

  • Automations/Watchers suddenly stop working.

    Hi, I have a strange problem. In the last days my watch folders don't seem te work right. The watch folders always worked just fine. But now they won't respond. All the internal transcodes of final cut server work just fine. After a reboot of the ser