Click here to Skip to main content
15,901,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am wondering where to start with this project. I do not think a windows forms application is the right answer. I am looking to run a C# program continuously to transfer PLC tag data and populate rows in a SQL database on a 30 second interval.

I have searched for any other situation where someone has done the same thing and have came up with nothing. I am pretty new to this.

Is there a template in visual studio C# that just has coding that would run instead of using windows graphics and so on?

Thanks,
Kurt
Posted

Yes - there are a couple.
There's a Console - which is basically a Command line interface and can just sit there, or (probably better from your point of view) a Service which has no user interface at all.

A service runs in the background (and doesn't require a user to be logged in to run at all) and can just suspend itself for 30 seconds, update the DB, suspend itself again, and so on.

This should help: MSDN: "Walkthrough: Creating a Windows Service Application in the Component Designer"[^]
 
Share this answer
 
Thank you very much,

That will definitely get me started in the right direction. I might be asking a lot more questions as this project evolves.

Thanks,
Kurt
 
Share this answer
 
Comments
Richard Deeming 21-Oct-15 9:28am    
Don't post comments as new solutions. Use the "Have a Question or Comment?" button under the relevant solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900