Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Upgrade v4.8 to V5.2

Upgrade v4.8 to V5.2 5 years 9 months ago #9744

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
Hi all,

I have an old code in proview v4.8.6 that I wish to update in v5.2 version

I was using a DataArithm module to make the link between and output a interger value from a DataCollect module in input (which is itself gatrhring various CircBuff100k module).
My output is named OI1 and input is Da1 into the following C Code

My code was that one:

OI1 = ((pwr_sClass_CircBuff100k *)Da1->DataP[0])->Head.FirstIndex

It worked fine but in v5.2 it failed to compile : "Error cannot convert to a Pointer type"
Looking into the library evolution reveals that before the DataCollect OutputP was of type "void" with an associated objid attribute, but now a "DataRef" type.

I guess this is the reason one it failed but I can't succeed to make it work or cast it the right way.
Do I need to use an adress translation somehow or what ?

Thanks for your help

Snarf
The administrator has disabled public write access.

Upgrade v4.8 to V5.2 5 years 9 months ago #9745

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 502
  • Karma: 133
Hi Snarf,

Also the DataP array is changed to DataRef type and the pointer is now stored in DataP.Ptr. So you should change Da1->DataP[0] to Data1->DataP[0}.Ptr.

/Claes
The administrator has disabled public write access.

Upgrade v4.8 to V5.2 5 years 9 months ago #9748

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
Thanks a lot.
will try this asap
thank you
Snarf
The administrator has disabled public write access.

Upgrade v4.8 to V5.2 5 years 9 months ago #9757

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
Thank You Claes,

That made the trick...
you re always on top !!

Thx
Snarf
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 7.595 seconds