05-06-2013 09:38 AM
I have an issue with the VI-defined Memory. I need to have a sub-VI for each output in my system, each sub-VI has a VI-defined memory (256X8) and its reference is driven to its indicator. Another sub-VI must read the content of each memory sub-VIusing the memory reference and must calculate a formula using that data. Each memory is asociated with a different output variable, so if I have two output variables I must have two VI-defined memories and they must store different data. My problem is as following:
When I define a memory inside a sub-VI and try to read or write on it, no errors are encountered. But when I just use its reference as an input (as a control) to read or write data, several errors are found. Erros like "Empty value is not supported" and "FPGA FIFO Node not wired with constant FPGA FIFO Name."
Attached figures show the two sub-Vis I need to connect.
05-06-2013 09:52 AM
But when I just use its reference as an input (as a control) to read or write data, several errors are found. Erros like "Empty value is not supported" and "FPGA FIFO Node not wired with constant FPGA FIFO Name."
Just to be clear, are you saying that if you drop the VI that outputs the Memory Reference and then try to pass that reference into another VI that has a Memory Reference as input you get those errors?
05-06-2013 10:00 AM
Yes. It worked before, but I think everything started when I downloaded the new updates. I'm not quite sure.
05-06-2013 11:26 AM
I guess I found a solution. Look at the first VI. The VI-defined memory reference indicator is inside a loop, where a reference cannot be driven to the indicator. If I wire this indicator where the memory is defined (outside the loop), the system does take the right reference. Thank you very much!!!