09-22-2016 01:55 PM
Hello all,
Is there a way to pass a 1D array from a VI to another without using subVI?
Solved! Go to Solution.
09-22-2016 02:15 PM
09-22-2016 02:17 PM
@Mmehrabin wrote:Hello all,
Is there a way to pass a 1D array from a VI to another without using subVI?
This question, without code to clue us, makes no sense! The simple answer is "Sure, just use a wire", but then where do you get "a VI" and "another VI" without having (sub)-VIs? Maybe you mean something else by "sub-VI". Maybe you mean "without using a wire".
Sorry, I don't understand the question.
Bob Schor
09-22-2016 02:49 PM
I'm with Bob. What?
My initial guess would VI Server? Cuz in this scenario, you have potentially two "Main VIs" and no SubVI. Still though, question needs to be worded better. And code usually helps.
09-22-2016 02:51 PM
@Mmehrabin wrote:Hello all,
Is there a way to pass a 1D array from a VI to another without using subVI?
Bob has a good point, your question is not a valid question, and I am guessing because you lack the knowledge to know what to ask.
Start here Introduction to LabVIEW and follow through the "12 step program" (LOL) first.
There are plenty of tutorialls and videos on teh NI site to help you learn teh basics
09-22-2016 03:08 PM
Thank you for your fast answers. Let me explain more about the code. I have an FPGA code that sends some values by FIFO DMA. I receive them in a host VI and put them in an array. In this VI there is a while loop to receive all values from FPGA so I can not put it into another vi as a subVI. So I want to send the received array to the third host VI by value passing.
09-22-2016 03:09 PM
09-22-2016 03:28 PM
@Mmehrabin wrote:Thank you for your fast answers. Let me explain more about the code. I have an FPGA code that sends some values by FIFO DMA. I receive them in a host VI and put them in an array. In this VI there is a while loop to receive all values from FPGA so I can not put it into another vi as a subVI. So I want to send the received array to the third host VI by value passing.
This sounds like a prime example for a Producer/Consumer.
09-22-2016 08:35 PM
I need to store some data from FPGA. Can I write them in a file on FPGA or I should transfer them to the Host VI then store them in a file?
09-22-2016 08:40 PM
@Mmehrabin wrote:I need to store some data from FPGA. Can I write them in a file on FPGA or I should transfer them to the Host VI then store them in a file?
The FPGA has no access to a disk. You have to pass the data to the host (preferably with a DMA FIFO) and then the host can log the data to a file.