05-24-2012 08:38 AM
The Engine Simulation Custom Device only reads/updates the name of the *lvbitx file from the associated *.fpgaconfig file when Adding it to the system definition for the first time. This is performed by the "Custom Device, Engine Simulation Initialization VI". Any time you change the fpgaconfig file name, the new lvbitx file is not updated to the System Definition file.
Option #1: Delete the Engine Simulation Custom Device from the System Definition and then Add back, requiring any reconfiguring of System Mappings.
Option #2: Edit the System Definition File *.nivssdf, to manually update the “Dependent File Type” and “RTDestination” paths to point to the updated *.lvbitx file names.
Todd - Digalog Systems Inc.
05-24-2012 09:06 AM
Yes.
Any update on debugging the degrees per tic control?
06-13-2012 03:00 PM
HI ,
I am new to VeriStand/FPGA set up. I want to run crank/ cam generation on my FPGA. I removed the fuel injection loop from my VI and compiled it by assigning it to my I/O on my FPGA. Do I need to change the XML file to run this on VeriStand.
I am using default settings as specified for crank/cam
Thanks
06-13-2012 03:54 PM
isabella2,
Have you seen the getting started documentation on NI VeriStand Add-on: Engine Simulation Custom Device?
06-20-2012 05:20 PM
Hi Stephen,
I followed the instructions in the document to change the XML file. I am not able to generate a crank signal. I have the same question as ToddK -
How does the Engine Simulation custom device pass the Engine Speed value into the FPGA code?
How do I define Engine Speed so VS can pass that data to FPGA.
Thank you
06-21-2012 09:30 AM
The custom device writes to a u64 register named "APU.Degrees per Tick" to write the RPM to the FPGA. The RPM value is provided to the custom device as an input channel under the APU item in the navigation tree. Make sure you write a value to this.
To debug an issue with your FPGA code, I suggest the same thing I did to Toddk.
Then you can look at the front panel and see if it is getting the expected values. For example try changing RPM and see if "APU.Degrees per Tick" changes.
06-21-2012 11:33 AM
Stephen,
The hardware that I am using is 7851R FPGA card with a PXI data-acquistion cards. I dont have a real time controller card. I wont be able to use the debug method you suggested.
Is there an example FPGA config file for engine simulation available with all controls/ scale/offset etc?
I have been using this document http://zone.ni.com/reference/en-XX/help/372846C-01/veristandmerge/creating_custom_fpga_configuration... for FPGA config.
Thank you
06-21-2012 11:36 AM
Thats OK, you don't need a real time controller. Just follow the steps as listed without the real time part. This is a much better debugging method than using an FPGA configuration file to loop back the values into NI VeriStand.
To debug an issue with your FPGA code, I suggest the same thing I did to Toddk.
06-22-2012 01:21 PM
Hi Stephen,
I am not able to run the Engine Simulation model in simulation only mode. The steps I followed are
Compile the model (without the DMA packet loop) to generate bit file. In VS project, add Engine Simulation custom device and select bit file. On VS screen connect Engine Speed from APU to Engine Speed Control Dial.
Are there any steps that I am missing?
H/W - 7851R FPGA card with a PXI data-acquistion cards, S/W - VS 2011.
Thank you
06-22-2012 01:45 PM
Isabella2,
OK so you created a bitfile that has just engine simulation inside it and you added the custom device and selected this bitfile. FYI, you didn't have to do this (you can just debug your orginal bitfile and setup)... but we can work from here. Please follow these steps as posted above.
To debug an issue with your FPGA code
Verify that the values on the front panel are what you expect. Try turing the knob on the workspace for engine speed and see if the FPGA front panel updates.