04-29-2024 09:25 AM
I am developing an auto connect tool using Python and a .NET framework that let's me use the c# commands within python. The tool will connect channels between Simulink models and IO cards once those two have been loaded into veristand via system definition file. I was able to find documentation on how to load my system definition containing the models and the IO but I can't find documentation on how to find the corresponding input and output channels in these models and IO. My question is, after having defined my system definition, having found my targets, having found my models, how do I find the imports and outports in the models. Thanks
04-29-2024 07:45 PM
See Retrieve All VeriStand System Definition Channels Without Deploying as a reference to get the list of channels from the System Definition file using C#.
For Python, most likely you can combine GetModelList() and GetSystemNodeChannelList(name). Reference: Legacy API — niveristand-python 3.1.0 documentation