yyterminal Posted March 3, 2022 Share Posted March 3, 2022 Hi all, I'm pretty new to PowerPMAC so this might be an easy question to you. I would like to print a simple debug message "Hello World" to the Terminal at the end of one of the motion programs (*.pmc file). Any suggestions are welcomed. Thanks. Quote Link to comment Share on other sites More sharing options...
Alex Anikstein Posted March 7, 2022 Share Posted March 7, 2022 Printing to the terminal window in the IDE from another source isn't especially easy. A better option would be to use the "Unsolicited Messages" window, which was designed to do exactly that. It is available under the "Delta Tau" dropdown menu, and by default it will listen on "Buffer 0". You can then use the "send" command in the motion program to broadcast a message out on Buffer 0 for the Unsolicited Messages window to receive. You can find more information about the Unsolicited Messages window in the IDE manual, included with the IDE under the Help dropdown. You can find more information about the "send" command in the Power PMAC Software Reference Manual, in the "Power PMAC Program Command Specification" section, including a few examples. Quote Link to comment Share on other sites More sharing options...
alejandrojginerd Posted December 22, 2023 Share Posted December 22, 2023 That is an option however, the sice of the unsolicided messages buffer is such that my aplication keeps sending data long after the send() command has changed. I am building a state machine i C and for debuging i wanted to cotinuisly print the current state and the current action. When the state changes, the buffer is aleady full of entries from the previous state therefore is keeps printing that state. Is it posible to decrease the size of the buffer to beter catch this changes? if not, printf would be a better option as it does not have a buffer. could you explain how to set up the printf() scheme with Putty? Quote Link to comment Share on other sites More sharing options...
DaveBarnett Posted December 22, 2023 Share Posted December 22, 2023 The sendgetsends application works much better than the "Unsolicited Messages" window in the IDE From a Putty session, type: cd /opt/ppmac/sendgetsends ./sendgetsends -0 Now, from a terminal in the IDE, type: cx send0, "Hello from PMAC!" 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.