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

TOPIC: Sv.ActualValue in v5.6

Sv.ActualValue in v5.6 7 months 1 week ago #10316

  • daniel
  • daniel's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Karma: 0
How can I get the actualValue of a Sv in dataArithm? (Proview 5.6)
classdef Da1 Sv;
char *str = Da1–>InitialValue;
...
InitialValue works ok, but I need to read the ActualValue.

Thank you
Daniel
Last Edit: 7 months 1 week ago by daniel.
The administrator has disabled public write access.

Sv.ActualValue in v5.6 7 months 1 week ago #10319

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 2709
  • Thank you received: 357
  • Karma: 117
Hi Daniel,
Use gdh_TranslateRtdbPointer() to convert ActualValue to a pointer.

/Claes
The administrator has disabled public write access.

Sv.ActualValue in v5.6 7 months 1 week ago #10322

  • daniel
  • daniel's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Karma: 0
Hi,
My final code:

classdef Da1 Sv;
char *actualValue = (char *) gdh_TranslateRtdbPointer((unsigned long)Da1->ActualValue);

Thank you Claes
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 2.126 seconds