09-08-2022 05:05 PM
Hello,
I'm working on VS 2020 and LV 2020. I want to command VS via LV API.
I have the VS project that has more than one SDF.
1. How can I make active one of these SDF?
2. It is possible force VS to doesn't show the message when I undeploy the SDF?
Best regards,
Fabio
Solved! Go to Solution.
09-13-2022 10:55 AM
Hi Fabio,
We have not introduced the ability to script .nivsprj Project files; that is the file which holds the Active SD flag in it. There is a hope that in late 2023 we can finally get this + an ability to script .nivsscr Screen files added to a future version of the product. This has been a background TODO for the VeriStand R&D team for quite awhile.
Until that point, you can workaround this shortcoming by programmatically managing your SD files and deploy them within your own automation code.
05-02-2023 08:02 AM
Hi Fabio,
You can manipulate the project XML file directly to achieve this.
Each SDF is saved under "/SourceFile/Project/NameScopingEnvoy/SourceFileReference" elements.
Out of all those SDF elements, the active one is called out at "/SourceFile/Project/NameScopingEnvoy/EmbeddedDefinitionReference/SdfFilePath/@SdfPath"
Hope this helps.
Ravi