Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem updating memory initial values

Using LabVIEW 2013 SP1 I'm reading and writing target-scope memory items inside subVIs in my FPGA application. I'm providing initial values through the Initial Values page of the memory properties dialog box.

Memory Properties - Initial Values

When I added the memory items to the project, I chose some arbitrary initial values. I have subsequently changed the values and recompiled the application, but memories seem to be initialized with the values I assigned upon creation.

I've analysed the issue further, changing values in memories (to hopefully force an update) and running the VI in interactive mode. I've got mixed results. It seems that running the VI by pressing the arrow on the FPGA VI works as expected (changed memories do get updated initial values). On the other hand, running the FPGA VI from the RT VI doesn't work (memories remain initialised with original values).

 

Configure Open FPGA VI Reference.png

I haven't managed to find a repeatable pattern yet. It seems to revert to the original values (the initial values I defined upon creating the memory item resources in the project) every other compilation. I have "Separate compiled code from source file" checked on the VI Properties dialog throughout my project (having seen that recommended for source code control). That shouldn't be a problem but could it?

Has anyone run into a similar situation? Any advice is very welcome.

0 Kudos
Message 1 of 1
(4,982 Views)