LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW FPGA scripting : Missing use case?

I am currently trying to script a set of classes I use on FPGA.

 

Intaris_2-1748269985083.png

 

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.

 

Intaris_0-1748269512907.png

 

 

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?

 

Intaris_1-1748269866364.png

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.....

 

 

0 Kudos
Message 1 of 3
(105 Views)

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....

0 Kudos
Message 2 of 3
(73 Views)

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.

0 Kudos
Message 3 of 3
(9 Views)