Have you placed a pin in the TopDesign and assigned it to the pin to which LED is connected? Note that the API is 'pin_name'_Write(1/0).
If you could attach the project, we can check and see what could be the issue.
Yes, I assigned a different pin and it works now. Thanks.