LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

EVENT STRUCTURE INDICATORS

Hi RavensFan,

Thanks for your last response. I may not be able to approximate how long the lag takes but it is critical in my aplication. I have tried using clusters but it did not solve my problems. So I decided to give it a diffferent approach.

I introduced a boolean buttom (initiate move). When a value is keyed to the Final destination X it is written to the Final destination Y. But it is only when the initiate button is pressed that the value is effected on the indicators and this works prety well for me.. At the moment my biggest problem is that the RESET button is also dependent on the initate move button, I dont want this to be the case.. I want the RESET button to be independent of INITATE MOVE, when pressed should bring the indicators to 0 without pressing INTIATE MOVE button. How can implement this?  I have tried this alone but it is not just working.

Download All
0 Kudos
Message 11 of 14
(849 Views)

One problem you have is the part of your outer FPGA loop with the reset button is useless.  It only executes once, and pretty much right after the FPGA starts running, and at that point the Reset boolean wouldn't have been set.

 

Put in another boolean that is strictly a reset boolean.  Actually, you alreaday have it now, but put it inside the inner while loop which actually does run continually.  When you want to reset, write a true to it in your host code.  In your FPGA, it puts a zero into the outputs and the shift registers.  And have the FPGA code set the Reset boolean back to false to basically reset the button back like it would if you were using latch action buttons in a regular VI.

0 Kudos
Message 12 of 14
(834 Views)

Hi RavensFan,

I have implemented a 6-step state machine aichitecture in my FPGA code, and when I run the code from the FPGA side, the code runs pretty well. I want to control the FPGA code from the HOST end but I am facing a challenge. When I press the run button in the HOST vi. it automatically goes to stop after less that a second. I mean it cant just run. I have tried everything possible to make it work but there is no success. Any suggestions or clues please. Thank you. 

 

Kind Regards,

Opuk

 

 

 

 

 

0 Kudos
Message 13 of 14
(795 Views)

Hi RavensFan,

I got the solution to my problem. Just found out I was stupid hahahaha. I missed out a while loop somewhere. It is now working.

0 Kudos
Message 14 of 14
(786 Views)