03-25-2009 02:45 PM - last edited on 07-02-2024 03:24 PM by Content Cleaner
Hi,
I'm having a programming progblem I'd appreciate some help with. I'm trying to control an FPGA vi from a Host vi as I've seen in an example, but some weird things are happening and I can't figure out why. The FPGA vi runs ok when I click on its front panel - it produces exactly the output that I want. When I try to frun the FPGA vi from a Host vi however, if I run the host vi, nothign happens, yet if I run the fpga vi first, and then run the host vi, then the host vi seems to run, but it doesn't use the values for the controls that I put into the host vi, but the values that I typed into the FPGA vi.. its like it completely ignores the host vi values.
Maybe there's a problem with the initialization or the default values of one of the two vi's..? or I don't know.
I've attached my vi's and project folder.
For background, I'm trying to use this program to generate pulses of a specified length and duration, as given in the example at https://forums.ni.com/t5/Example-Code/Digital-Delay-Generator-Reference-Example-for-LabVIEW-FPGA-and...
I would appreciate any help
Thanks,
-Sidney
03-25-2009 05:13 PM
Try changing the "Reset" method to "Run".
Reset—Aborts and resets the FPGA VI on the FPGA target to the default state of the VI. This method sets the FPGA VI controls and indicators to their default states, sets uninitialized shift registers to their default values, clears FIFOs, and sets global variables to their default values. If an error occurred before this method runs, the Invoke Method function passes the error in value to error out. The method runs normally even if an error occurred before the Invoke Method function runs. If an error occurs while this method runs, it runs normally and sets its own error status in error out. This method does not reset memory.
03-26-2009 04:23 AM