Parity error occurs in VISA read when building an executable

Hi,
I am doing some serial communication in LabVIEW and have battled for a long time with parity error where it appeared as a lot of 0's were added to the data I read through VISA read. I fixed my problem according to this description:
Can I Do 9-bit Serial Communication Instead of 7 or 8 bits?
Where i modified the visa ini file to disable error replacement. This seemed to help out the problem - at least i got the data i expected, until i built an application.
When i build and EXE the problem occurs again when i run the application on another computer - not the computer on which it is built. I have made sure to include a customed configuration file, i.e. to include the modified visa.ini file to make sure that the error replacement is disabled in the application as well. When i look in the configuration file that follows the application it also appears as if the error replacement is disabled, however, it seems not to work since a lot of 0's are once again filled into my dataset.
I have of course made sure that the serial port setting are set up correctly.
I am using LV2013.
Anyone tried this before or is able to help somehow?
Thank you
Nicolai

Sure, I have attached my VI - however i'm not sure it provides any useful information in this case. What I am doing is simply reading a serial port every 750 ms, accessing specific data in it and plotting in graphs. The VI works perfectly fine on the development computer.
I don't think the VI or the serial port are what's preventing me. It seems like the configurations in my visaconf.ini file are not transferred to the deployment computer. I have tried the following from the knowledge base:
How to Include VISA Settings in a LabVIEW Installer
Why Does Serial Communication Not Work on my LabVIEW Deployed Executable?
Storing VISA Aliases and Moving Them to Another Machine
I can also see that the 'DisableErrorReplacement' parameter is set in the .ini file that comes along with the application, but it seems like it is not applied since I keep receiving all these annoying 0's that ruin my data.
As you can see in the VI i configure my serial port in the 'false'-state, and then on the development machine I have just added 'DisableReplacementError=1' to the visaconf.ini file which solved my problem before trying to distribute the app.
Hope some of you guys can help.
Best regards
Nicolai
Attachments:
Read datablock.vi ‏55 KB

Similar Messages

  • Error -1073807253 occurred at VISA Read in transient SR830.vi VISA: (Hex 0xBFFF006B) A framing error occurred during transfer.

    Hi,
    I am have written a program with labview to make transient c-v measurement using a stanford research SR830 lockin amplifier. The program seems to be runing fine, but sometimes it is givvibg an error:
    Error -1073807253 occurred at VISA Read in transient SR830.vi
    Possible reason(s):
    VISA:  (Hex 0xBFFF006B) A framing error occurred during transfer.
    Error -1073807253 occurred at VISA Read in transient SR830.vi
    Possible reason(s):
    VISA:  (Hex 0xBFFF006B) A framing error occurred during transfer.
    but if I press ok, the program again starts running. What might be the poblem? BTW I googled a bit and I see that in the labview topic "RS-232 Framing Error with HP 34401A Mulitmeter" by pkennedy32 this is what is said about framing error:
    ""Framing Error" in an RS-232 context means a very specific thing - when the receiver was expecting a stop bit, the line was not in SPACE condition. This can be the result of:
    1... Baud rate mismatch (although other problems would likely crop up first).
    2... Data Length problem, If I send 8 data bits and you expect 7, the stop bit is in the wrong place.
    3... Parity setting mismatch - If I send 7 data bits + parity and you expect 7 data bits and no parity, the stop bit is in the wrong place.
    4... Mismatch in # Stop bits - If I send you 7 Data bits + parity + one stop bit, and you expect 7 data bits + parity + TWO stop bits, the second one might not be correct, although most devices do not complain about this.
    But, I must say that this is the same com port setting that I use to measure c-v hysterysis, but I never gt this error there.
    I attach the program herewith for your kind perusal. Please help me resolve this issue.
    Thanks in advance.
    Solved!
    Go to Solution.
    Attachments:
    transient SR830.vi ‏94 KB
    csac.vi ‏8 KB
    sr830 initialize1.vi ‏15 KB

    @Dennis Knutson  you are right I checked the read indicator in backslash mode, and instead of a \n it is sending \r. So I changed the \n in my write strings to \r. But, if I keep the CLOSE VISA outside my loop instead of inside as you suggested, the termination character appears to come in the middle of the read string instead at the end. And since the read terminates at the \r so it is displaying some junk value before the \r, but if I put the CLOSE VISA outside the loop and play along with the bytes at the read buffer, I see the whole read string with the \r  at the end of the string. But, whenever the values are in exponential form (when close to zero) like 6.938839 e-5, I always get a time out error whatever be the timeout that I put at the VISA initialize. And subsequently, if I stop the program and run it again the machine program hangs and I donot get any reading. Then after I close it again and start, sometimes it hangs for some more or starts working. If I put an arbitrarily large byte count at the READ VISA, then I always get the time out before the operation completed error.
    @ Ravens Fan I have removed the CSAC VI altogether and taking the CH! And CH” reading separately, instead as one string. So, no more issues with that.
    I use the control at the delay so that I can choose how much delay I want to set, and I use the math operation because I am using adding up the delay time to keep track of the time elapsed. Because in the end I have t plot a time vs. CH! And CH” readings.
    I am not sure but probably I am making some silly errors. Please help me out. 
    Attachments:
    transient SR830-2.vi ‏103 KB
    sr830 initialize1.vi ‏15 KB

  • SQL error occurred in the database when acces

    Dear All,
    I am getting following error message while doing file to file scenario.
    source side messages are pickedup and entering into the Queues .receiver side i cant able to see any souce messages.
    SYSFAIL Message is showing in the Queues when i was double click that message its giving following message.
    SQL error occurred in the database when acces
    a table.
    Plz, help me in this regard.
    Thanks,
    Mahesh

    Hi Mahesh,
    Did you get a chance to check the IPC log directories
    Also usually for a sysfail message you can check the smw01
    You will see a bdoc with status F05. What does it say there?
    or
    Is it "Scheduled for outbound processing" or "recorded for outbound processing".
    I guess the message has not been processed, so the next step is to go to transaction SMQ2, and check for info as to why it is not processed.
    If you see a queue status of SYSFAIL, first try resetting it to "Ready" again. If it still fails then, delete that particular LUW. And if you still have some more messages in the queue just click the unlock queue button.
    Reward points if this helps
    Regards
    Pragathi.

  • "Errors occurred during the extraction" when run RSA3 of EBP datasource 0DO

    "Errors occurred during the extraction" when run RSA3 of EBP datasource 0DOC_NUMBER_ATTR.
    What would be the reason and how to resolve this problem?
    Thanks

    Hi Kevin,
    Generally the installed DS also comes under RSA5 nodes, not only in RSA6.
    Have you activated it earlier before extraction?
    If DS is already active, please try to follow all the steps once more, and check, and let us know if still the same error comes.
    Cheers!!!!!!!!!!!

  • An error occured attempting to read properties for 'Cluster Group' group. The remote procedure call failed. Error ID:1726 (000006be).

    Hi All,
    I have a two node 2003 cluster, When any one of the cluster node holding resources goes down, the resources are not failing over to the running node.
    In the running node I receive the pop-up error message
    ""An error occured attempting to read properties for 'Cluster Group' group. The remote procedure call failed. Error ID:1726 (000006be).""
    After I click on ok on the pop-up error message the resources are coming online on the running node. If I dont click ok the pop-up error message. The Cluadmin screen is not responding and the resources are not coming online.
    In the cluster log i see the below messages realted to Error ID 1726
    00000874.00000b10::2014/03/17-23:38:58.276 WARN [EVT] EvtBroadcaster: EvPropEvents for node 2 failed. status 1726
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: ProcessId= 2164
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: SystemTime= 3/17/2014 23:38:58:276
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: GeneratingComponent= 2
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: Status= 0xc002100b
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: Detection Location= 641
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: Flags= 0x0
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: Number of Parameters= 2
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: Long Val= 32000
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: Long Val= 32000
    00000874.00000b10::2014/03/17-23:38:58.276 INFO [NM] RpcExtErrorInfo: ProcessId= 2164
    How to FIX this issue?
    Regards,
    Stunner.

    Hi,
    Unfortunately, the available information is not enough to have a clear view of the occurred behavior. Base on my experience, it may cause by some of one resource abnormal
    failure, I suggest that please schedule a down time to run “Repair Active Directory object” in “Simulate Failue of this resource” status. And the operation “Repair Active Directory Object” will force to update the object’s attributes.
    More information:
    Understanding the Repair Active Directory Object Recovery Action
    http://blogs.msdn.com/b/clustering/archive/2013/12/13/9067582.aspx
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • An error occurred attempting to read DynamicList

    Hi!
    I have a Netiq Sentinel 7.1.1.2 when I try make an dynamic list on the
    WEB Interface or in the control center, I see the next message error on
    the log:
    Tue Jun 03 11:45:54 CDT 2014|INFO|qtp209445166-14189476 -
    /SentinelRESTServices/objects/dyn-list/count?query=name.eddd|esecurity.ccs.comp.audit.Aud itLogger.execute
    Audit High:: Action by user javila via Sentinel service Server
    object ZLists method ReadDynamicList client 172.22.3.136 failed : An
    error occurred attempting to read DynamicList: null, with XDAS taxonomy
    name: XDAS_AE_QUERY_DATA_ITEM_CONTENTS
    And the next message error on the interface:
    com.novell.sentinel.client.http.HttpException: 500: 500: Server:
    Internal: java.lang.NullPointerException
    and I see the server internal error on the
    https://<sentinelip>:8443/SentinelRESTServices/objects/dyn-list/
    <WrapperNcacFault>
    <Fault>
    <Code>
    <Value>Server</Value>
    <Subcode>
    <Value>Internal</Value>
    </Subcode>
    </Code>
    <Reason>
    <Text>java.lang.NullPointerException</Text>
    </Reason>
    </Fault>
    </WrapperNcacFault>
    What can I do tu fix this?
    Thanks.
    javilam
    javilam's Profile: https://forums.netiq.com/member.php?userid=6183
    View this thread: https://forums.netiq.com/showthread.php?t=51013

    Hi javilam,
    Was this an upgrade, or a new install? Either way, it looks like one of
    your DL files got corrupted or something. Can you create a Service
    Request with our Tech Support? We will definitely want to track this
    down and fix it.
    DCorlette
    DCorlette's Profile: https://forums.netiq.com/member.php?userid=323
    View this thread: https://forums.netiq.com/showthread.php?t=51013

  • TS1368 I am unable to connect to the itunes store; I get the message 'Itunes could not be connected to the itunes store.  An unknown error occured (-3212).  Also when I plug my iphone in to the computer it doesn't ever pick it up

    I am unable to connect to the itunes store; I get the message 'Itunes could not be connected to the itunes store.  An unknown error occured (-3212).  Also when I plug my iphone in to the computer it doesn't ever pick it up please help!!

    same here no solutions

  • An error occurred in lock management when attempting to set a lock on table

    Hi All,
    I am getting the error 'An error occurred in lock management when attempting to set a lock on table SWWWIHEAD.'
    Sometimes the workitem is not created by the Workflow due to above error & this happens rarely but keeps coming.
    cany anyone guide or help me how to correct this problem.Is it happening due to my custom code making locks on the above table?
    Thanks in advance.
    Pls do reply

    I think you should not use any code to lock the table SWWWIHEAD.  Please let us know why you are writing code to put lock on this table.
    Thanks
    Arghadip

  • Error message an error occurred while signing in " when I worked with Create PDF and at the signed

    Error message "an error occurred while signing in " when I worked with Create PDF and at the signed in status. Please help so that I can continu my work.

    Hi Stacy,
    Thank you for your attention.
    I have been working with Create PFD under normal procedures including
    sign-in and several documents had been finished. However, when continued
    creating another document the computer took a long time to pprocess and
    finally a mesage appeared: "An error occurred while signing in" and stopped
    there. I clicked the OK button and start creating again and the same
    message appeared once more. I tried to log off and log in again in no
    avail. So I went to the help site and called for help.
    Later, I decided to reboot the computer and tried once more. This time it
    worked and I continued creating. Thanks.
    laozhao39

  • How do I overcome error "files in use Reader" when downloading 10.1.4?

    How do I overcome an error "files in use Reader *" when attempting to download Reader 10.1.4? Reader 8 not in use, but is installed.  All I want to do is upgrade to 10.1.4.  Why do I get sudn an error anyway?

    Make sure no AcroRd32.exe process is running when you run the installer.  Easiest way:
    download the cleaner tool http://labs.adobe.com/downloads/acrobatcleaner.html and save it to disk
    download the installer from http://get.adobe.com/reader/enterprise/ and save it to disk
    restart Windows, then run the cleaner tool, followed by the installer, before doing anything else
    P.S. the latest Reader X version is 10.1.8.

  • An internal error occurred in adobe reader

    an internal error occurred in adobe reader.

    I was frustrated by this problem as well. I even uninstalled and then resinstalled a fresh download: SAME Problem.
    Now the problem seems to have been RESOLVED on my Windows Vista Laptop.
    Instead of trying to open by double-clicking on file icons, I opened the Adobe Reader from the Windows Explorer. On the first screen appeared the usual Adobe Licence & Terms that I had to ACCEPT. This screen NEVER showed up before after either upgrading to the Adobe Reader X or after reinstalling. After accepting the License and TERMS. this problem does NO longer reproduce.
    I have successfully opened fewer than 10 PDF files without the annoying error so far. I hope others will reproduce this "FIX" before claiming this was the root cause of the problem.
    Hopefully Adobe will display a more meaningfull error message for such a problem.

  • When building an executable I get the error message var.lsb not found.

    When building that executable with LV 5.0 it will work, but it will not work on a korean version of WinNT 4.0.

    When exactly does the error message come up? When you're doing the build or when you attempt to run the executable?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Error 8 occurred when building an executable due to file permission error?

    I received this error on executable builds from two different .vis.  Other .vis in the project build without incident and the message below doesn't seem to indicate the file that is causing the problem, unless it is the SPT-errors.txt file listed at the end of the error message.
    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    Error 8 occurred at Copy in AB_Engine_Copy_Error_Files.vi->AB_Application.lvclass:Copy_Error_Files.vi->AB_Application.lvclass:Copy_Files.vi->AB_Build.lvclass:Build.vi->AB_EXE.lvclass:Build.vi->AB_Engine_Build.vi->AB_Build_Invoke.vi->AB_Build_Invoke.vi.ProxyCaller
    Possible reason(s):
    LabVIEW:  File permission error. You do not have the correct permissions for the file.
    =========================
    NI-488:  DMA hardware error detected.
    C:\Program Files\National Instruments\LabVIEW 8.5\project\errors\Japanese\SPT-errors.txt

    Hi DanielAllis,
    Like mentioned earlier, there is most likely an application on the internet that you can find and use where you can see what processes are calling specific files or folders to see if that specific file is being used by anything else.  It doesn't sound like this is the root of your problem, but it couldn't hurt to check.  Also, I have seen a similar problem to this with someone who was using the software Subversion and Tortoise with their application.  I am not familiar with this software in particular, but I have attached a link below that goes through the steps that this other person took to try and fix the same error when having this software on their computer.  Let me know if any of this helps!
    http://forums.ni.com/ni/board/message?board.id=170&message.id=172537&query.id=115461#M172537
    Regards
    Noah R
    Applications Engineering
    National Instruments

  • Help!! error of remark classes.zip when build midp2.0

    i changed back to CLDC1.04 + midp2.0
    using cygwin under winxp
    there is no problem when i build cldc, but error occur when i build midp
    error message
    ...classes.zip
    c:\DOCUME~1\owner\LOCALS~1\Temp\make283218.sh: line 1: zip : command not found
    c:\GNU\gnumake.exe:***[classes.zip] Error 127
    all the src files have been complied into class files, the error i guess is during packing jcc's class files into classes.zip, but cannot find the "zip"
    but to my understanding, cldc do not use something like "zip.exe" to pack the class files but the "jar", why midp defnied the following lines in
    {midpdir}\build\share\makefiles\Defs.gmk
    #MIDP tools
    ZIP = zip
    UNZIP = unzip
    is this place where the error comes from?
    anyone can help me? thanks a lot.

    Well just an update. I managed to solve the problem by installing the latest version of IMAQ for LV 8.0 which is IMAQ 3.5.1 instead of the original 3.5.0. I hope this helps someone.

  • ORA-00604: error occurred at recursive SQL when calling proc via db_link

    Hi,
    I'm on 9.2.0.8 and got strange issue with simple test case
    on source db:
    CREATE OR REPLACE PROCEDURE ADMIN.gg_ref(out_tokens OUT SYS_REFCURSOR) is
      BEGIN
      OPEN out_tokens for select dummy from dual;
    END ;
    Now testing code localy:
    SQL> var r refcursor
    SQL> declare
      2   output sys_refcursor;
      3  begin
      4   adminx.gg_ref(output);
      5  :r:=output;
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    SQL> print r
    D
    X
    So its working.
    I've got db_link to that db , and now call that proc via dblink from other 9.2.0.8 DB:
    var r refcursor
      1  declare
      2   output sys_refcursor;
      3  begin
      4   admin.gg_ref@LINK_NAME(output);
      5  :r:=output;
      6* end;
    SQL> /
    declare
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00900: invalid SQL statementWhats wrong with my code ?
    Are there any restriction I'm not aware of ?
    Regards
    GregG

    GregG wrote:
    What should my code look like now ?
    Should I rewrite this as function returning index by collection or something ?You can use DBMS_SQL - but use the remote package and not the local one. This is a little bit more complex ito call interface than using a ref cursor, but is the very same thing on the server side. DBMS_SQL also provides a more comprehensive set of features than using the ref cursor interface.
    The main issue though is additional coding - as DBMS_SQL is a lower level interface (a lot closer to the real Oracle Call Interface/OCI):
    --// on remote database the procedure returns a DBMS_SQL cursor instead of a ref cursor
    SQL> create or replace procedure FooProc( cur in out number, deptID number ) is
      2          rc      number;
      3  begin
      4          cur := DBMS_SQL.open_cursor;
      5 
      6          DBMS_SQL.parse(
      7                  cur,
      8                  'select ename from emp where deptno = :deptID',
      9                  DBMS_SQL.native
    10          );
    11 
    12          DBMS_SQL.Bind_Variable( cur, 'deptID', deptID );
    13 
    14          rc := DBMS_SQL.Execute( cur );
    15  end;
    16  /
    Procedure created.
    --// from the local database side we call this remote proc
    SQL> declare
      2          c               number;  --// instead of using sys_refcursor
      3          empName         varchar2(10); --// buffer to fetch column into
      4  begin
      5          FooProc@testdb( c, 10 );  --/ call the proc that creates the cursor
      6 
      7          --// we need to define our fetch buffer for the 1st column in the
      8          --// SQL projection of that cursor (10 byte fetch buffer for 1st column)
      9          DBMS_SQL.define_column@testdb( c, 1, empName, 10 );
    10 
    11          --// we now fetch from this cursor, but via the DBMS_SQL
    12          --// interface
    13          loop
    14                  --// fetch the row (exit when 0 rows are fetched)
    15                  exit when DBMS_SQL.Fetch_Rows@testdb( c ) = 0;
    16 
    17                  --// copy value of 1st column in row into the local PL/SQL buffer
    18                  DBMS_SQL.column_value@testdb( c, 1, empName );
    19 
    20                  --// record value it via dbms output
    21                  DBMS_OUTPUT.put_line( 'name='||empName||' deptID=10' );
    22          end loop;
    23 
    24          --// close it explicitly as you would a ref cursor
    25          DBMS_SQL.Close_Cursor@testdb( c );
    26  end;
    27  /
    name=CLARK deptID=10
    name=KING deptID=10
    name=MILLER deptID=10
    PL/SQL procedure successfully completed.
    SQL>

Maybe you are looking for

  • How can i register my Window phone lumia 520

    I have a problem in registration as a window phone developer. What are the steps for register as a window phone developer??

  • The workbook that you selected cannot be opened. The workbook may be in an unsupported file format, or it may be corrupt.

    Hello folk, I am trying to create pivot tables from an SSAS cube, in excel (Windows Authentication being used) and publishing the same to a document library in sharepoint. I am publishing only 'Pivot1'(the default name of the pivot table you create)

  • Nv4_disp.dll BSOD Errors (solved by driver rollback)

    http://projectm.us/murc/planetside/BSOD2.jpg It happens whenever im running a game or program that uses a lota ram. Ive completly replaced my drivers (uninstall/reinstall) and im going to try the MSI drivers, does anyone know how to fix this crap?

  • Learned something new today

    Up to now, all my videos have been lectures using a wireless lapel mic. No problems with my external Maxtor 250 Firewire keeping up. Yesterday we took an airboat tour of lake Jessup here in Florida. There was constant chatter and music in the backgro

  • General SAP advice

    Dear Experts, First, sorry if I am writing in the wrong section. Please let me know the right place to post such a question. I am a young accountant in an old distribution company which is currently catching up on the modern methods. We are implement