LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i communicate with host and FPGA?

hi all
 
       I having a problem my host and FPGA . They are not working together. Can u suggest me which part do i need to change ? what is the
 
connection between host and FPGA ?My program is based on NI 9233 getting started in example file and also FPGA .
0 Kudos
Message 1 of 16
(3,945 Views)

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

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 2 of 16
(3,930 Views)
hi 
 
 
0 Kudos
Message 3 of 16
(3,910 Views)
hi 
 
 
0 Kudos
Message 4 of 16
(3,910 Views)
hi 
 
  
0 Kudos
Message 5 of 16
(3,910 Views)
hi 
 
   
0 Kudos
Message 6 of 16
(3,910 Views)
hi 
 
    
0 Kudos
Message 7 of 16
(3,910 Views)
hi 
 
     
0 Kudos
Message 8 of 16
(3,910 Views)

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

0 Kudos
Message 9 of 16
(3,889 Views)

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

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 10 of 16
(3,879 Views)