05-26-2025 09:34 AM
I am currently trying to script a set of classes I use on FPGA.
I'm essentially trying to programmatically do what a user would perform via the "Configure Memory Type" entry in this menu,
Part of this is trying to change the type of a BRAM reference contained within a class. When I look at the FPGA scripting VIs found under [LabVIEW 20xx]\vi.lib\rvi\ClientSDK\Core\Script I see a version for opening and modifying a "PRojectItem" BRAM and a "VIScoped" BRAM. But what I have is a FP element essentially within the LVClass Private data.
Is there any way to directly access this and change the configuration or do I need to go via a BD-node, configure it, get the terminal and create control from it to cut and replace the original with?
These are the options available, none of which work with any combination of class object, control reference or anything I can think of to wire into it. I was hoping I could directly access the BRAM properties for a FP control so that I could easily script my operations. I have had to deviate via "Create control" froma terminal and subsequently "Replace" via scripting before, but I have a sliver of hope I don't have to do that here.....
05-26-2025 12:35 PM
I've since simply gone the route of creating a BD object, using the terminal to create a control, saving it as a *.ctl and using "replace".
I've forgotten how much of scripting is running around in circles to get things done which seem obvious in the IDE.
Scripting is punishing when you're not doing it regularly..... learning the nooks and crannies each time I need it....
05-30-2025 05:44 PM
Hi Intaris,
Your memory name control, which is of Class "GenClassTagRef", has a private variant property "User Data" that allows you to get/set its specific configuration.
For an FPGA container name control, this variant has an attribute "ContainerInterface", which is an XML string describing the data type, the method set, the access modes, the latency, ... of the memory.
Regards,
Raphaël.