Error on PGN 65266

Hiroto miyazaki
Posts: 11
Joined: Mon Sep 17, 2012 9:18 pm

Error on PGN 65266

Post by Hiroto miyazaki » Mon Jan 18, 2016 10:31 pm

I have a problem. When I use one parameter of PGN65266 as the data for text gauge, an error occurs.
Examples of parameters are "fuel rate”,”instantaneous fuel economy” and so on.
Please tell me how to solve the problem.

My environment:
・PV Studio:V2.7、V2.8
・Configuration:Standard PV780
・Windows:win7(64bit,service pack1)

Regards,
Hiroto
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: Error on PGN 65266

Post by stalley » Tue Jan 19, 2016 6:42 am

Hello Hiroto miyazaki,

I will be glad to help try to find the problem.

Does the error occur on the PV780 when there is J1939 traffic ? Or is the problem when you are working in PowerVision with the configuration? Could you describe the error? If the problem is on the PV780, do you see any data on the gauge?

You listed PowerVision 2.7 and 2.8. Does the problem occur with both versions?
Sara Talley
Software Engineer
Enovation Controls
Hiroto miyazaki
Posts: 11
Joined: Mon Sep 17, 2012 9:18 pm

Re: Error on PGN 65266

Post by Hiroto miyazaki » Tue Jan 19, 2016 5:52 pm

Hi Sara,

Thank you for your quick response.

It's the problem when I'm working in PowerVision with the configuration.
After occurring the error, PV Studio is quit automatically.

The problem occur with both versions except for 2.3.

Error messages of PV Studio is here.

Error Message:

Exception has been thrown by the target of an invocation.

PowerVision Configuration Studio Version:

2.8.10366

Environment:

Microsoft Windows NT 6.1.7601 Service Pack 1 Is64Bit: True

Error Location:

at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
at PowerVision.ObjectModel.Framework.PropertyEditInfo.set_PropertyValue(Object value)
at PowerVision.WindowsClient.GaugeInformation.GaugePropertyEditor.OpenParameterEdit(Object sender, OpenLinkEventArgs e)
at DevExpress.XtraEditors.Repository.RepositoryItemHyperLinkEdit.RaiseOpenLink(OpenLinkEventArgs e)
at DevExpress.XtraEditors.HyperLinkEdit.ShowBrowser(Object linkValue)
at DevExpress.XtraEditors.HyperLinkEdit.DoClick()
at DevExpress.XtraEditors.HyperLinkEdit.OnClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)
at DevExpress.XtraEditors.TextEdit.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: Error on PGN 65266

Post by stalley » Tue Jan 19, 2016 7:37 pm

Hello,

You have found a bug in the configs, I think. It seems to be related to the definition of the Parameters on the PGN 65266, in particular the Fuel Rate and Instaneous Fuel Economy Units.

This is a work around that worked for me,
Remove the Fuel Rate and Instantaneous Fuel Economy parameters from the device,
On the Library tab, go to the 65266 change the units on the Fuel Rate and the Instantaneous Fuel Economy and then change them back.
Now, add the parameters on the device
Try to Create
If the Create works, try to put the parameter on a gauge.
Before I did the steps above, as soon as I put the parameter on a gauge, I got an exception. Did you?

Hope this will help, sorry for the inconvenience.
I'm not sure if the problem is from upgrading or what specifically.
Sara Talley
Software Engineer
Enovation Controls
Hiroto miyazaki
Posts: 11
Joined: Mon Sep 17, 2012 9:18 pm

Re: Error on PGN 65266

Post by Hiroto miyazaki » Tue Jan 19, 2016 10:39 pm

Hi Sara,

Thanks a lot.
This works without error.

Very nice of you to tell a quick solution.