|
|
Rank: Member Groups: Member
Joined: 3/24/2009 Posts: 20 Location: Saudi Arabia
|
Dear Colleauge;
I have a code that works well on VB using the IPIData2 but when i try to convert my code to c#, below error is returned:
"CS0266: Cannot implicitly convert type 'PISDK.PIData' to 'PISDK.IPIData2'. An explicit conversion exists (are you missing a cast?)"
I am using IPIData2 to be able to use the InterpolatedValues2 method.
any idea?
Regards,
Jayson
|
|
|
|
|
OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System. We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ or contact OSIsoft vCampus for more details.
|
|
|
Rank: Administration
 Groups: Administration
Joined: 6/20/2008 Posts: 617 Location: Cheshire, United Kingdom.
|
Try... PISDK.PIData pid = myPIPoint.Data; PISDK.IPIData2 ipd2 = (PISDK.IPIData2)pid; Principal Consultant Real-Time Data Management @ Wipro Technologies
|
|
|
Rank: Member Groups: Member
Joined: 3/24/2009 Posts: 20 Location: Saudi Arabia
|
problem solved...thanks a lot!!
jayson
|
|
|
|
Guest
|