11-23-2011 11:12 PM
Thanks Devin.
Our loop was empty becuase, I have started with only a crank signal first. I want to prove the usage of Veristand to people around here. After that, I woudl anyways procced for the entire engine model.
The problem here is I have used PXI for data acquisition earlier, and hence all this procedure a bit deviating from the traditional way I use NI- hardware-software combo.
Will try the method suggested by you.
Kudos for you and Stephen for your timely and resourceful responses.
Will post back with any scussess or further queries.
Vijay.
11-30-2011 05:30 AM
Dear Devin,
I am facing problem in building and adding the custom device. I have compiled the .lvbitx file as advised. However, the custom device created finally using the NI Veristand FPGA Wizard contains different types of files as compared to the default examples.
I have added the created project folder into the custom device folder in C:\Documents and Settings\All Users\Documents\National Instruments\NI VeriStand 2011\Custom Devices\
However, now the custom device does not appear when I right click in custom device icon in system explorer in Veristand. Is this the right way to add the custom device?
If I do not have to create the xml file, is my custom device completed? or do I have to follow some more procedure to build the custom device.
I have added a screen shot of the files generated by steps mentioned. Please tell me if I am going wrong somewhere or I have to follow any further procedure.
Thanks and Regards,
Vijay
11-30-2011 04:20 PM
Vijay,
The FPGA project and bitfile are not the actual custom device, they are just used by the custom device. These files should not be located in the "Custom Devices" folder.
Download the .zip file attached at the bottom of the custom device page and follow the instructions in the "readme.txt" to install the custom device. You will then be able to add the custom device to the System Explorer by right-clicking "Custom Devices" and selecting National Instruments >> Engine Simulation. When you add the custom device, you will be prompted for your bitfile. You can either specify the path to the .lvbitx file you created, or if yoiu have already added your bitfile to the Chassis >> Hardware >> FPGA section, you should be able to select it from a list.
12-03-2011 12:44 AM
Dear Devin,
I am not being able to add the bit file in this GUI prompt. It says invalid bit file.
I have compiled the bit file using Xilinx 10.1 tools. And it’s made for 7831R.
(Could any of this be one of the reasons?)
Another reason I thought it could be is, I haven’t built the code for the entire library (only for Crank Signal is built)
Also I am not able to choose the first option (NI Veristand FPGA)
Could you suggest me what could be the issue?
Thanks,
Vijay
12-03-2011 02:07 AM
Hi Devin,
Could you please post the lvfpga project also for reference. The one you are using to build the bit file.
I am not certain about what should I do in the communication loops.
Thanks,
Vijay
12-05-2011 05:09 AM
Dear Devin,
I tried to build the bit file for the entire custom device also. And I am getting an error stating invalid data types connected to subVI, during compilation. I have checked all data type connections that I made, and they seem to be alright.
I am attaching my Labview project as a zip file. And also the error snapshot.
Also could you tell me whether, the bit file once generated, is to be directly called. As mentioned above we could not add the bit file generated to the project, when we built it only for the crank signal.
Can you please once try adding the bit file in custom device project?
Thanks and Regards,
Akshay Goel
(from Vijay’s Team)
12-05-2011 02:49 PM
Akshay,
Your project has a single VI under the FPGA target named "Custom Personality FPGA.vi" which is located inside the "LabVIEW FPGA Engine 2" directory. That directory is not included with your zip file, so the file is marked as missing. Your zip file does include a "Custom Personality FPGA.vi", but this VI is inside the "LabVIEW FPGA Engine" directory... so I don't know if this is the right file for me to be looking at considering your project does not reference this file.
12-05-2011 03:56 PM
We will soon be improving our documentation and code with a few changes:
For right now, I have attached a zip file you can use for an example. This has two folders in it:
Have a look at the projects and see the difference.
If you only need engine simulation and nothing else... use #1 by adding the custom device to the system definition file and selecting the bitfile directly.
If you need engine simulation and need other things in that bitfile as well... use #2 by adding the bitfile to the system definition
12-08-2011 04:09 AM
Hi Stephen,
Thanks for sharing the project. We were able to run it at our end.(using method#1 above, where we are using the exisiting FPGA code). However, I would like to now add additional digital and analog I/O's to the project( of the same FPGA card).
I understand that I've to use the method#2 described by you,however it would be helpful if you could share details about how to modify the XML file. Is there anything additional to building the new FPGA bitfile and XML file to realize this functionality.
Thanks again for your help.
Regards,
Vijay & Akshay.
12-08-2011 03:06 PM
Hi Vijay,
Adding additional IO to your FPGA bitfile will involve using the NI VeriStand RIO Library posted here: NI VeriStand FPGA-Based I/O Interface Tools. Read through the "Framework Template" and "NI VeriStand RIO Library" sections of that document to understand how to use the tools to develop your FPGA personality. For most IO (built-in R Series IO and C-Series modules) you just need to drop down a VI from the API and wire up your IO. For the XML, just open up the VI you dropped, look at the block diagram, and copy-past the comments into your xml (.fpgaconfig) file at the appropriate place (make sure the order of your packets in the XML matches the order of the packets in your VI). For more information on the tags used in the XML, also take a look at this help document: Creating a Custom FPGA Configuration File.
Note that this FPGA customization is not directly related to the Engine Simulation custom device, so if you have additional questions, you're better off posting them on the NI VeriStand Discussion Forums.
Regards,
Devin