Overview
This project demonstrates how you can run a web service on an RT target in an executable.
Description
Running a webservice on an RT target is relatively straight forward in the development environment, but doing it in an executable used to be more difficult.
The new web services introduced in LabVIEW 2013 have made the process of deploying web services in executables very straight forward for RT targets.
Requirements
Steps to Implement or Execute Code
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange. **
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
after deploying the application with web services, i try to connect to the target with the development environment. the RT application is able to download and run but when i start the web service, the code is downloaded but i get the message "Error LabVIEW: (Hex 0xFFFEFA27) LabVIEW Web Services: A Web service already exists with the input name."
how do you overcome this?
Hey srm,
The web service should start automatically after deploying the application. You should just connect using this URL: http://127.0.0.1:8002/TargetService/TargetWebEXE
Change the bolded IP address, and port to match your settings. Go to a web page and paste in the updated URL and you should see a time stamp.
-Bobby
Following up:
Right click the webservice > application web service > unpublish. This should allow you to start you web service from the development environment.
Regards,
Bobby
Thanks Bobby,
did you replicate this? I got an error message "failed to unpublish" when i tried it.
I still have to unset run at startup, deploy and reboot in order to work/start web services with dev system again.
Stu
Hey Stu,
I did replicate the issue and solved it with the above steps, though I think I may be using different hardware and software versions. I am using LabVIEW 2014. Let me test this again with your software/hardware. What version of LabVIEW and what kind of controller are you using?
-Bobby
LV 2013 SP1. i would believe that it may have been fixed in LV2014. if so, don't worry about it and i will continue to work around in 2013.
Thanks again.
I got the same message "Error LabVIEW: (Hex 0xFFFEFA27) LabVIEW Web Services: A Web service already exists with the input name." in LabVIEW 2014 SP1 and 2015. It seems that Bobby's workaround is the only way to start up the debug mode.
Thanks all,
Ting