Dm1List cannot access active flag in script
- young123
- Posts: 14
- Joined: Thu Jan 16, 2014 4:59 am
Dm1List cannot access active flag in script
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 ?
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
- Posts: 322
- Joined: Wed Sep 08, 2010 5:09 pm
Re: Dm1List cannot access active flag in script
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?
Boyce Schrack
Enovation Controls
Enovation Controls
- young123
- Posts: 14
- Joined: Thu Jan 16, 2014 4:59 am
Re: Dm1List cannot access active flag in script
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...
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
- Posts: 322
- Joined: Wed Sep 08, 2010 5:09 pm
Re: Dm1List cannot access active flag in script
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
Enovation Controls
- boyce
- Enovation Controls Development
- Posts: 322
- Joined: Wed Sep 08, 2010 5:09 pm
Re: Dm1List cannot access active flag in script
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
Enovation Controls
- young123
- Posts: 14
- Joined: Thu Jan 16, 2014 4:59 am
Re: Dm1List cannot access active flag in script
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.
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
- Posts: 322
- Joined: Wed Sep 08, 2010 5:09 pm
Re: Dm1List cannot access active flag in script
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
Enovation Controls
- mzainuddin
- Posts: 14
- Joined: Sat Jan 31, 2015 11:35 pm
Re: Dm1List cannot access active flag in script
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
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
- Posts: 322
- Joined: Wed Sep 08, 2010 5:09 pm
Re: Dm1List cannot access active flag in script
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.
Boyce Schrack
Enovation Controls
Enovation Controls