PCAN Explorer 6 Add-Ins

This forum covers issues concerning multiple software products.
Post Reply
sara1967
Posts: 2
Joined: Fri 30. Aug 2024, 08:20

PCAN Explorer 6 Add-Ins

Post by sara1967 » Tue 11. Feb 2025, 19:35

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

sara1967
Posts: 2
Joined: Fri 30. Aug 2024, 08:20

Re: PCAN Explorer 6 Add-Ins

Post by sara1967 » Tue 11. Feb 2025, 20:39

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}");

Post Reply