Dm1List cannot access active flag in script

Discuss issues and ideas you have to configuring displays with PowerVision
young123
Posts: 14
Joined: Thu Jan 16, 2014 4:59 am

Dm1List cannot access active flag in script

Post by young123 » Tue Jun 20, 2017 9:42 am

I would like to walk through the DM1's and make a custom sublist for each source address.
In a sense I filter the dm1 for each source address.

From earlier PV2.3 and onwardst this is possible using the older events DM1GoToFirst, DM1GoToNext and then each time readout the data per DM1, check for active and copy the active dm1 data to a custum list.

Now when using PV2.9 I would like to do the same but using the DM1List as a source in scripting.
The DM1List contains both active and non active dm1's.
I am only interested in active DM1s.
The only problem I have here is that the Active inidcator is not accessible in scripting !
One workaround here is that before each new walk through the DM1List I create the action DM1AcknowledgeAll.
But the corresponding answer (DM1.AllAcknowledged) is not alway given.
Perhaps that is only sent when there was at least one non-active dm1 to be removed ?
By the way: How do I know if this ackall action is processed before I readout the DM1List ?

So in my opinion this is a bit to complicated...

Why not just make this Active flag in the DM1List accessible in scripting ?
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Dm1List cannot access active flag in script

Post by boyce » Tue Jun 20, 2017 1:44 pm

I'm just starting to look at this and the first thing I see is the Active column is Hidden in Script. Does it work if you uncheck it?
dm1list.JPG
dm1list.JPG (148.63 KiB) Viewed 142 times
Boyce Schrack
Enovation Controls
young123
Posts: 14
Joined: Thu Jan 16, 2014 4:59 am

Re: Dm1List cannot access active flag in script

Post by young123 » Wed Jun 21, 2017 1:13 am

Yes, probably this can work, but right now the way I get an entry from the Dm1List is by reading it into a J1939DTC object.

So like this:

J1939DTC myDtcData;

ListManagerGetItem(ListDataType.Dm1ListType, index, myDtcData);

Thus the only way to make this working is when the active flag is accessible through this J1939DTC.
By the way : I can't find any description of this J1939DTC.
I just used it from an example that I recieved from your colleagues in the uk.
So perhaps there is already a method in the J1939DTC that can be used to access this flag ?

Pls make this work somehow...
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Dm1List cannot access active flag in script

Post by boyce » Wed Jun 21, 2017 2:12 pm

The problem is to make the Active element available in scripting will take PowerVision changes and also firmware changes. We are in the process of releasing another patch version of PV2.8. I should be able to get this change in if I can get help from one of the firmware developers. I'll update this topic as soon as there is more information.
Boyce Schrack
Enovation Controls
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Dm1List cannot access active flag in script

Post by boyce » Wed Jun 28, 2017 2:01 pm

PowerVision 2.8 Patch 4 was released today and it includes the fixes to allow access to the Active variable from scripting.
Boyce Schrack
Enovation Controls
young123
Posts: 14
Joined: Thu Jan 16, 2014 4:59 am

Re: Dm1List cannot access active flag in script

Post by young123 » Thu Jun 29, 2017 1:23 am

Hi,
Thats great but I am using pv2.9 oem version. Will there be an update for this also ?
Or perhaps I can use a normal pv2.9 release ?
My display is a pv780b.
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Dm1List cannot access active flag in script

Post by boyce » Thu Jun 29, 2017 5:12 pm

Yes, just finished testing the change. It will be in the next release. The next release was going to be called PowerVision 2.9 Patch 1 but it might become something like PowerVision for Color Displays. The release is planned for July 15.
Boyce Schrack
Enovation Controls
mzainuddin
Posts: 14
Joined: Sat Jan 31, 2015 11:35 pm

Re: Dm1List cannot access active flag in script

Post by mzainuddin » Mon Oct 16, 2017 5:27 am

Hello,

Where I can find the description of the methods and members of the J1939DTC class?
Is it in some manual? Otherwise can you share it on the forum?

Thanks
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Dm1List cannot access active flag in script

Post by boyce » Mon Oct 16, 2017 2:00 pm

The members of the J1939DTC class are shown in the Function Reference help text. It doesn't really give descriptions but it does list the actual names of the class members. This screen shot shows the latest development code and the members that have been added for the next patch.
j1939dtc.JPG
j1939dtc.JPG (155.06 KiB) Viewed 86 times
Boyce Schrack
Enovation Controls