From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Make One Stop Button on Two Programs VI

Solved!
Go to solution

Hi all.

 

I'm making a simulation program on two FPGA LabVIEW. I use Desktop Execution Node on the host to unite the two FPGAs. I use the first FPGA as a signal generator that sends signals to FPGA 2, and the second FPGA I use as a series of executors. I run the program on Host and set the running conditions of the program on FPGA 2. But, if I Stop FPGA 2, the circuit will be error because it must be stopped via Host.

 

I want to ask, how do I unite Stop Button on FPGA 2 with Host? So that when the Stop Button on the FPGA 2 is pressed, it will stop the program as it should when the Stop Button on the Host is pressed.

 

thanks.

0 Kudos
Message 1 of 3
(1,814 Views)
Solution
Accepted by topic author fathurrkoesn

How do you normally/want to stop the program(s)?


@fathurrkoesn wrote:

I run the program on Host and set the running conditions of the program on FPGA 2. But, if I Stop FPGA 2, the circuit will be error because it must be stopped via Host.


It sounds like your normal Host.vi (which I guess is not the one in the screenshot - that's the test VI?) would normally pass some signal to FPGA(1), which would then communicate this to FPGA2, which would then stop.

 

In that case, just do the same - communicate the Stop signal (message, tag, whatever) to FPGA(1), and then let the simulation propagate that to FPGA2.

 

You can use some other method to stop the While loop in your simulation VI - either a Delay node with a specific delay if you know approximately the number of iterations to stop, or perhaps the error wire from the DENs?

 

I'm not sure what you mean with this bit:


@fathurrkoesn wrote:

[I] set the running conditions of the program on FPGA 2


so perhaps I'm misunderstanding the post... do you mean you change the behaviour during DEN simulation by altering FP values on FPGA2's main VI? If so, how do you normally (i.e. not in simulation) adjust these values? You could also do that in simulation (if it isn't overly complicated signal patterns that you've already tested work properly).


GCentral
Message 2 of 3
(1,767 Views)

Thank you for your reply, cbutcher!

0 Kudos
Message 3 of 3
(1,711 Views)