03-26-2012 11:28 AM
03-26-2012 11:39 AM
I think I found it!
If my consideration is right it will do what you described.
I will report if i succeed in a bit!
Regards
Andreas
03-26-2012 02:17 PM
OK spend quite a long time now again, compiled and got a nwe bitfile for the Starter Kit.
I changed the Gyroscope vi and the main Vi, but I seem to get only one reading from the FPGA reference.
I includet the changes in the main VI and the Starterkit FPGA .
03-27-2012 03:07 AM
This looks like you are on the right lines. Check out the previously linked cRIO Developer's Guide for timing the loop within your FPGA code.
- What is in the Gyro VI?
The .lvproj file needs to be sent with all of its supporting files (dependancies) - an easy way to do this is to create a zipped folder using the build specifications:
03-27-2012 05:08 AM
Good morning!
Inside the Gyro vi is the code to get the angular rate of the gyroscope so it is the Gyroscope vi or now the modified version (GyroscopeModified) VI.
I attached the zip file as explained.
Hope to find the solution today.
Thanks fr your help anyway!
Kind Regards
Andreas
03-27-2012 06:17 PM
I tried to get rid of the problems today but got new instead. I included the zip file to this post again.
As you can see in the the Starterkit FPGA VI or in the attached picture, i modified this vi to pass the gyro voltage rate to the main vi.
Inside the main vi the readings can be displayed if I use a indicator. If I want to use an indicator and pass the reading of the fpga to my gyroscome Mofified VI I get an message that the function is not executet. (take a view on the picture attached)
I do not have the foggiest clue what to do now. I was thinking that it might have to to with the loop timings but since I was forced to learn Labview in a small amound of time I am not aware of this kind of problems.
Can you please take a look at my programm and help me?
Regards
Andreas
03-27-2012 07:31 PM
I think I found one big mistake, of course the loop in the main vi can not refresh if the gyroscope vi (sub vi) got a never ending while loop. So the values get never refreshed. Hence I have to redesign my gyroscope vi.
Then it should work.
Can you give me a suggestion, how i should design the looptiming in the Starter Kit FPGA VI if my sensor is only giving signals in 10Hz intervals?
Kind Regards
Andreas
03-28-2012 05:56 AM - edited 03-28-2012 05:56 AM
Hi Andreas,
Sorry I have been pretty busy over the past couple of days. I have not had a chance to look through all of your code but I can quickly answer your question regarding FPGA timing. Please see the following exert from the CompactRIO Developers Guide:
NOTE:
As you are using the FPGA Read/Write Control function on your RT VI it doesn't really matter about the FPGA timing. You can set your RT VI to poll the state of the FPGA control at the rate you require.
04-07-2012 01:03 PM
Just wanted to say, that everythink works fine now and I am thankful that you guided me so well!
NI Help is really awsome!
Regards
Andreas Nagel
04-09-2012 06:56 AM