12-01-2009 03:58 AM
Hello,
We are implementing Hardware in the Loop simulation for a controller.
I have an FPGA VI (PXI 7833) measuring PWM at DIO-0 channel. This VI gives a Raw value 0-65536 for 0-1 duty cycle. I would like to read this value to a Simulink DLL using Simulation Interface Toolkit-SIT. The DLL would then generate voltage and current values (all are converted to 0-65535 range within Simulink DLL) which I would pass on to FPGA AO channels.
I am new to dealing with FPGA and SIT. I have already tried examples mapping FPGA IO variables to DLL IO's. DLL outputs are written to FPGA but something wrong with reading PWM into the DLL.
Any help would be appreciated. Thanks!
Tenil.
12-01-2009
08:33 AM
- last edited on
11-11-2024
03:16 PM
by
Content Cleaner
Hi Tenil,
There is a webcast for SIT here -> http://zone.ni.com/wv/app/doc/p/id/wv-352
Christian
12-01-2009 01:21 PM
Hi Christian,
Thank you very much for the link.
I proceeded as mentioned in the webcast. I used a custom bit file and mapped DLL IO's with FPGA IO's. Now I can measure PWM from a signal generator and generate the required IO's from the DLL. However, FPGA output ports does'nt seem to read DLL outputs.
I am attaching the VI used to generate the bitfile.
Best Regards,
Tenil.
12-03-2009 04:41 AM
Back at the office now I heard it on the grapevine that you allready opened a Service Request and one of my colleagues will visit you.
So when everything is running you might want to post the solution here in case of other users haveing the same questions in the forums.
Thanks,
Christian