LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA and Simulink DLL communication

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.

0 Kudos
Message 1 of 4
(2,994 Views)

Hi Tenil,

 

There is a webcast for SIT here -> http://zone.ni.com/wv/app/doc/p/id/wv-352 

 

 

Christian

0 Kudos
Message 2 of 4
(2,983 Views)

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.

 

 

0 Kudos
Message 3 of 4
(2,965 Views)

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

0 Kudos
Message 4 of 4
(2,932 Views)