08-21-2019 01:59 PM
Does anyone know of a configuration routine that will scan the Veristand tree and return name and reference for each single point available in the project? This would include any single-point channels, user defined variables, any veristand calculator values, any model valves, other custom device values ect...
I'm building a Veristand custom device that does simple waveform calculations. One of the options is to multiply a waveform by a single-point value. I am looking to populate a ring so the operator can select the signal name. I can see a couple of ways of doing it by reading the system definition file or by reading all the tree values and searching. I did not want to reinvent something that has already been done.
thank you
09-09-2019
05:48 AM
- last edited on
07-17-2024
06:14 PM
by
Content Cleaner
Hello,
I you mean finding a way to choose a channel in an existing Defisition System, why don't you use the .NET control TreeAliasBrower ? It requieres some code to interface to .NET, but I already used it. There is an example here using two .NET controls (I didn't find any download link ??)
I guess in your case, you will have to get the channel reference to use it, at execution time, in an assynchronous Custom Device, right ?
Regards,
09-09-2019 07:07 AM
Well,
one remark here - the correct way to accomplish your goal would be to create a channel within the scope of your custom device and let user to use channel mappings to provide the value sourced by whatever channel in the system. At execution time, (by default) the internal channel protection mechanism does not allow you to touch channels (over the channel references) outside the custom device scope. Unless you overcome this protection.