1.I was wondering if there is a way to test if the RS232 communication on our R1 brain is working or not.
Is there a way to see what string is [B]sent[/B] to the via communication handles ? I am getting a -39 error which is that there is no receiving so I ask my first question but I was wondering if the issue is whether what is being sent is “”.
I have tried to use the command “Get Number of Characters Waiting” command before using the ReceiveString Command and that commands spits out 0 during Debug mode.
Is there a similar command that I could use to check how many characters are being [B]sent[/B] ?
One relatively easy way to do what you want is to disconnect your rs232 device, and instead tie together the TX and RX pins on the R1 RS232 connector. Anything you send will then show up in the receive buffer and can be looked at with the commands you mention above. This is how I’ve done most of my debugging.
If you google “Serial Port Monitor” you will find both commercial and freeware software that will give you more diagnostic capabilities, but someone else will have to jump in with a recommendation.
Thank you sensij! We have resolved the issue that we were running into.
There was a live communication and the PSG at OPTO told me to do the same thing as sensij mentioned.
I do not have an answer for this one yet, however the problem we were running into was that we were going too fast through the chart and not waiting for the string to be sent work. When we inserted a time delay of 5mSec and added a decision block, it worked!
Here’s the place in PAC Manager where you can turn this handy feature on. Be sure to turn it off when you’re done troubleshooting, because it does require resources on your SNAP-PAC you’d rather use for other things: