Page 1 of 1

PCAN Explorer 6 Add-Ins

Posted: Tue 11. Feb 2025, 19:35
by sara1967
Hello,

I am trying to access a transmitting message via .NET add-in that I am testing for PCAN Explorer 6. How could I access a transmit message and its signals/raw data if possible? I am experimenting with IPEApplication.TransmitMessages.FindID() and it does find the message I need (in a collection), however I am having trouble figuring out why IPEMessages.Item(0) is returning null. I can't find any documentation on any of the classes and methods, so any information is greatly appreciated.

In addition, what would be the best way to update a signal's value periodically?

Thank you
Sara

Re: PCAN Explorer 6 Add-Ins

Posted: Tue 11. Feb 2025, 20:39
by sara1967
Also, I don't understand why this would then work:

Code: Select all

                var msgs = app.TransmitMessages.FindID(msgId);
                var sb = new StringBuilder();

                var msgsList = new List<IPEMessage>();

                foreach (IPEMessage message in msgs)
                {
                    msgsList.Add(message);
                    sb.AppendLine($"{message.ID}\n");
                }
               MessageBox.Show(sb.ToString());
               MessageBox.Show($"Message accessed: {msgsList[0].ID}");