ADI implementation with working statemachine|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
ADI implementation with working statemachine
Avatar
Andrew Owen
Member
Members
Forum Posts: 4
Member Since:
06/18/2018
sp_UserOfflineSmall Offline
1
10/10/2019 - 04:32
sp_Permalink sp_Print

I am trying to implement an ADI instrument. I am using the OPC Foundation tools. I am struggling with the AnalyserDeviceStateMachineType. The c# code generated from the model builder does not create the states or transitions in the instrument namespace and the state machine has no ‘AvailableStates’ or ‘AvailableTransisitons’ defined, nor does it have an initial value (it’s null). The method FiniteStateMachine.SetState does not work because the transisitons mappings are not set up.

The c# classes for the objectTypes are not in the instrument namespace either. I am in the process of trying to fix this in code by using the ADI namespace Objects but wanted to check if:

* I am missing something – the model builder can create these classes

* There’s an example somewhere of setting up a state machine in code, ideally using the OPC Foundation SDK. 

This is because there are many other state machines in the ADI instrument, some with sub-states, and it will become a bit of work to do to set them up if they didn’t need to be (because of model builder) or in an inefficient way (because no best practice example).

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 17
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1446
Posts: 4891