07-29-2008 01:51 AM
07-29-2008 06:25 AM
hello Roxylat,
Thank you for your post on our forum. Are you programming a compact RIO system? (or a R series card with CRIO expansion). Are you using a project to develop your FPGA VI and host VI (this is the easiest way). I did find some links for getting started with compact RIO. There are some great tutorials for getting started with this kind of application;
hands on 1; http://zone.ni.com/devzone/cda/tut/p/id/3111
hands on 2; http://zone.ni.com/devzone/cda/tut/p/id/3112
In some cases the FPGA wizard (LV FPGA 8.5 and later) can be handy to program some basic functionality on to your FPGA gate. This wizard will generate your FPGA code and host vi. A demonstration can be found under; http://www.ni.com/swf/demos/us/labview/fpga_wizard/
Because not all the FPGA capabilities are included in the wizard, it's not always usefull. It is alway a great tool to use, to get a idea how the host VI and FPGA vi work together. So I can recommend to use the wizard also only for trying.
I hope these suggestions provid you with the necessary information, if not; please add some more information and your VI's (for review) to your post.
Good luck with your development,
Best regards,
Martijn
NI Netherlands
07-29-2008 10:07 PM
07-29-2008 10:07 PM
07-29-2008 10:07 PM
07-29-2008 10:07 PM
07-29-2008 10:07 PM
07-29-2008 10:07 PM
07-30-2008 01:12 AM
sorry about the previous post
Actually we are using NI 9233.FPGA wizard dosen't support that device.Can u suggest me how can i modify my FPGA regarding this flow of my program and my host based on NI 9233 getting started(Find Example>> Hardware input & output >> compact RIO>> module specific >> Analog input >> NI-9233 getting started.vi proj.)
there is an Voltage input from an accelerometer(3axis) and it will pass the Volt to NI-9233
-Inside the processor , what we want is to compare the acceleration at each axis
(i) if it is less than 20 g , it will just run the program
(ii) greater than 20 g , it will record the data
(iii) greater than 50 g , it will show alarm ,exract time line, signal out
i looking forward ur reply
regards
roxy
07-30-2008 05:04 AM
Hello Roxy,
The NI 9233 is indeed not supported in the wizard. With this in mind the example is indeed a goot starting point. First we have to make this code work on your hardware. The following tutorial can help you with that. From here you can work further adjusting the code.
First of all; if you add a control or a indicator in the FPGA VI, you will be able to read or write this control / indicator in the host VI. Just expand the read write control (above label 2), and change the items in the expanded part in what you want to read or write. With this in mind, it shouldn.t be a problem to add some controls or indicators in your host VI.
You are able to implement the three mentioned states in the host VI (after label 10). Maybe it would be a idea to define these three states and passing these states to a case structure. an imagine that this would look like te attachment. I hope this wil hlp you further.
Best regards,
Martijn