LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using sb rio GPGA for gyroscope

No problem, Andreas Smiley Happy

 

- Please can you attach your project?  And I will show you what I mean.


Regards,

Peter D

0 Kudos
Message 11 of 22
(1,660 Views)

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

0 Kudos
Message 12 of 22
(1,659 Views)

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 .

 

Download All
0 Kudos
Message 13 of 22
(1,652 Views)

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:

 

CreateZip.png


Regards,

Peter D

0 Kudos
Message 14 of 22
(1,649 Views)

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

 

0 Kudos
Message 15 of 22
(1,645 Views)

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

Download All
0 Kudos
Message 16 of 22
(1,630 Views)

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

0 Kudos
Message 17 of 22
(1,623 Views)

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:

 

FPGA Loop Timing.png

 

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.


Regards,

Peter D

0 Kudos
Message 18 of 22
(1,618 Views)

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

0 Kudos
Message 19 of 22
(1,605 Views)

Glad to hear it, Andreas!

 

All the best with the rest of your application.


Regards,

Peter D

0 Kudos
Message 20 of 22
(1,601 Views)