Click here to Skip to main content
15,893,588 members
Articles / Programming Languages / C#

Simple Signal Generator

Rate me:
Please Sign up or sign in to vote.
4.98/5 (58 votes)
28 Oct 2008CPOL5 min read 296.3K   18.1K   134  
Useful software equivalent for a real, simple signal generator device
/*
 * Created by SharpDevelop.
 * User: Tefik Becirovic
 * Date: 15.09.2008
 * Time: 19:42
 * 
 */

using System;
using System.Drawing;
using System.Windows.Forms;

namespace TB.Instruments
{
	/// <summary>
	/// MainForm for SlidingScale.Test.
	/// </summary>
	public partial class MainForm : Form
	{

		/// <summary>
		/// MainForm constructor.
		/// </summary>
		public MainForm()
		{
			InitializeComponent();
			TrackBarsScroll(null,null);
		}

		/// <summary>
		/// Update Label and SlidingScale on change track bars.
		/// </summary>
		void TrackBarsScroll(object sender, EventArgs e)
		{
			slidingScale1.Value = trackBar1.Value+trackBar2.Value/10.0;
			label1.Text = slidingScale1.Value.ToString();
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
Systems Engineer
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions