Home > Community > Forums > PCB SKILL > what can cause suppresion of printf statements

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 what can cause suppresion of printf statements 

Last post Tue, Jul 30 2013 12:33 AM by Ejlersen. 1 replies.
Started by Ejlersen 29 Jul 2013 06:37 AM. Topic has 1 replies and 348 views
Page 1 of 1 (2 items)
Sort Posts:
  • Mon, Jul 29 2013 6:37 AM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 569
    • Points 10,080
    what can cause suppresion of printf statements Reply

    Hi

    I'm seeing some behaviour that worries me a bit.

    Inside a form based skill program I've added some debug printf statements like

    when(axlGetVariable("ns_dbinfo") printf("1.1 Initialize\n"))

    when(axlGetVariable("ns_dbinfo") printf("1.2 Create output data\n"))

    etc. up til 1.11

     

    In between these lines different procedures are called.

    The problem is that only the lines fprintf("1.9 xxxxxx\n") and upwards are printed to the skill window or the command line.

    Some of the procedures run scripts with scriptmode +i +n +w +c - could this be the problem so everytime a script has been run, I'll need to change these to -i or -n

     

    Anyone seen this behaviour and know the solution? 

     

    Best regards

    Ole

    Best regards Ole
    • Post Points: 5
  • Tue, Jul 30 2013 12:33 AM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 569
    • Points 10,080
    Re: what can cause suppresion of printf statements Reply

    Hi

    Changed my code to use axlMsgPut instead of printf - that work much better and also outputs during processing instead of buffering data.

     

    Best regards

    Ole

    Best regards Ole
    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by Ejlersen at 29 Jul 2013 06:37 AM. Topic has 1 replies.