LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using FPGA vi from Host VI

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

NI Hardware: PXI-7853R, PCI-5122, PCI-6733, PXI-1036, PCI-MIO-16E-4, PCI-6110
Computer Hardware: Xeon Quad Core - 2.33 Ghz, 8 GB RAM
Software: Labview 2009, Labview FPGA 2009, Vista 64-bit, MAX 4.6, DAQmx 9.0, NI-SCOPE 3.5
Download All
0 Kudos
Message 1 of 3
(2,672 Views)

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. 

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 2 of 3
(2,659 Views)
... or, add a "Run" after the "Reset".
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 3 of 3
(2,638 Views)