• 0
Sign in to follow this  

Waveforms Script Printing



    I have an Analog Discovery (legacy) and the latest Waveforms app.  I am trying to write a script that makes the protocol module write to a 24C16 eeprom, read it back, and print to the screen or  window.  I can access th I2C (can see on my scope), but I can't print anything.  The print() function does nothing unless in debug mode, but then the app seems to hang.  I tried Custom mode and Sensor mode.  And I tried the ADXL345 example, with a known good breakout board, and it always returns the same thing, doesn't change with orientation of the chip (but my main concern is the eeproms)

    Why is the output window at the bottom of the script area only one line long.  The only thing that shows up there is the results of return statements. 

    How can I see the I2C and run the script at the same time ?  The logic analyzer only shows the first two I2C bytes, so I'm using an external scope.

    What does the manual mean when it says the the I2C can only send when in debug ?  Isn't that a show-stopper ?  Am I missing some key piece of documentation ?  The manual does not say much about how all of this stuff works.

- Thanks

Edited by agnichatian

Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @agnichatian

The print function is only available in the Script tool. The Protocol/I2C is accessible from the Script tool.
Note that the last Read function arguments have different order!

The Protocol/Custom the bottom line is only for the return of the execution, but you can log to file using File, FileWrite, FileAppendLine... objects/function


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this