07-08-2015 05:31 AM
Hi,
for some reason I can't lit on board LED. I try to use a block from myRIO -> Default FPGA Personality -> LED. From block properties I choose LED0. Then I create a boolean constant and set it to TRUE. After that I wire to LED0 port. When I run the application the LED doesn't lit. Previously mentioned block is inside a timed loop, which is running for sure.
-Jussi-Pekka
Solved! Go to Solution.
07-09-2015 08:34 PM
What tells you that it's running for sure? The LED is generally pretty easy to turn on
07-10-2015 02:40 AM
Hi,
I have boolean indicator in the front panel which says that if I'm in the state where the LED block is. So I think that the loop is then running if the indicator lits.
07-10-2015 03:48 AM - edited 07-10-2015 03:49 AM
Hi Jussi-Pekka,
Have you tried using the getting started wizard, is the LEDs and the myRIO functioning properly using this?
See for example this video on how to get started: http://www.ni.com/myrio/setup/getting-started/
As mentioned above, controlling the LEDs should be quite easi and it can be done e.g. as suggested in the attached picture.
Could you share your code to get a better picture of what you are trying to accomplish?
/Anton
07-10-2015 04:11 AM
Hi Anton,
could it be that I have wrong block in my diagram? Here is attached my design.
-JussiJii
07-10-2015 06:15 AM
No, the block you use does the same thing, it should be OK.
I am however not sure about the rest of your code, have you tried doing what I suggested using the getting started?
In the example you sent you first open a reference to an FPGA targe, you then pass the reference into the loop and simultaneously you pass it around the loop and close the reference. Cuold you instead of the picture post the VI, or even better the whole project, so that I can have a better understanding of what you try to accieve?
/Anton
07-10-2015 06:44 AM
In the test run the device works just OK. I don't understand what I'm missing. I will give code from vi when I'm back to office. So it will be on monday.
07-10-2015 06:46 AM
Thanks for help so far.
07-10-2015 07:02 AM
Okay, that sounds good, lets return on Monday. I am sure we will be able to sort it out if I just can see the code.
Have a great weekend!
/Anton
07-13-2015 02:15 AM
Hi again,
here is the whole project if you want to take a look.
What it should do is, that when I change position of the switch in State Machine FPGA.vi the state in the State Machine RT.vi should turn to "Select LED" state, which then should lit the led on myRIO board.