|
|
Hello,
I am a beginner in C #, I would like to know if there is a way and how to establish a conexion between a Winform interface and a measuring device in order to remotely control from a pc using a communication protocol (ModBus, RS232 etc)
Thank you
|
|
|
|
|
Please read the preamble at the top of the page, and use the correct forum for your question.
From your question I would say that the answer will depend on the measuring device, so you need to consult the documentation.
|
|
|
|
|
I'm not sure what THIS makes me but I'll go ahead and empty my clipboard (code copied from here GS - one of many[^] ). What I do when I have questions like yours is use Google. Sometimes there's nothing and I get flummoxed. Other times there's something which inspires me to continue working and not just pack it in for the day and get some exercise.
using System;
using System.IO.Ports;
using System.Windows.Forms;
namespace SerialPortExample
{
class SerialPortProgram
{
private SerialPort port = new SerialPort("COM1",
9600, Parity.None, 8, StopBits.One);
[STAThread]
static void Main(string[] args)
{
new SerialPortProgram();
}
private SerialPortProgram()
{
Console.WriteLine("Incoming Data:");
port.DataReceived += new
SerialDataReceivedEventHandler(port_DataReceived);
port.Open();
Application.Run();
}
private void port_DataReceived(object sender,
SerialDataReceivedEventArgs e)
{
Console.WriteLine(port.ReadExisting());
}
}
}
|
|
|
|
|
Message Removed
modified 15-Jan-19 1:40am.
|
|
|
|
|
VoidTools[^] makes a file search program. It is limited to files and/or folders. It won't search inside a file for text.
Adding it here for future searchers.
Jack of all trades, master of none, though often times better than master of one.
|
|
|
|
|
Everything is a great tool I use a lot. I use the PortableApps version on my USB drives and have a copy of it running on my harddrive as well.
|
|
|
|
|
Message Removed
modified 31-Oct-18 4:53am.
|
|
|
|
|
DaVinci Resolve 15 | Blackmagic Design
Revolutionary tools for editing, visual effects, motion graphics, color correction and audio post production, all in a single application!
Link at bottom.
|
|
|
|
|
Need help with an algebra formula? Try this:
https://www.mathway.com/Algebra[^]
All you do is type in your formula, then it asks which variable you want to solve for. Brilliant!
As an example, type in the following formula and solve for 'a':
a/(a+b) = c/d
The website will give you the answer. Unfortunately, if you are curious and want to see the steps you have to pay $20/month which is too steep for me...still, a really nice resource for those with weak or rusty math skills who just need to get a job done.
"Go forth into the source" - Neal Morse
|
|
|
|
|
GitHub - oormicreations/ClipboardPlus: Enhanced clipboard viewer with multiple clips[^]
ClipBoard Plus is a free and open sourced windows application for viewing and managing a clipboard with multiple clips.
Download link
Releases · oormicreations/ClipboardPlus · GitHub[^]
Features:
Stores multiple clips as you copy.
Stores up to 5 text clips.
Clicking on any of the preview clip loads it on to the clipboard.
Clear specific clips or clear all.
Save specific clips or save all as text file.
Remembers window position.
Can be minimized to the tray.
Minimal UI.
Hides copied passwords automatically.
Supported on MS Windows 7 to 10.
IDE MS VS 2015, C++, MFC
A FOSS Project by Oormi Creations
|
|
|
|
|
Personally, I use ClipX ClipX[^] Has all your features and a few more. It is very handy and has a hotkey feature with Shift-Ctrl-V and you can select what to paste. I set mine for 25 items in the paste history and it runs on start up.
To err is human to really mess up you need a computer
|
|
|
|
|
|
Online C/C++ Formatter[^]
Feed it badly indented code from QA and it makes it readable. It doesn't support 1TB (Yay!) or Whitesmiths (Booooooo!) but it does get the indentation right and is consistent in where it puts the brackets.
Sent from my Amstrad PC 1640
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Nice,
Looks like it's using the ACE library[^] to beautify the source code.
Best Wishes,
-David Delaune
|
|
|
|
|
|
I use Sourcetree for my personal projects, but as they become more involved that may be about to change.
I want to merge a number of solutions into a master branch but I dont see any option to browse the tree in Sourcetree.
I see lots of questions asking of its whereabouts online and complaints from when it went missing, but nothing to say that it was ever found again!
Any of you know how to browse the tree in SourceTree?
Ger
|
|
|
|
|
Ger Hayden wrote: but as they become more involved
Just curious as to what that means. Do you mean more complicated and feature rich? Or something else?
|
|
|
|
|
Both, unfortunately. More features have added more complexity.
Ger
|
|
|
|
|
Perhaps it might be possible to break them into more discrete and smaller pieces of work that can be independently managed. Certainly in my case that it often true.
|
|
|
|
|
Message Removed
modified 19-May-21 14:27pm.
|
|
|
|
|
Message Removed
modified 19-May-21 14:27pm.
|
|
|
|
|
Message Removed
modified 19-May-21 14:27pm.
|
|
|
|
|
Message Removed
modified 25-May-18 0:09am.
|
|
|
|
|
Message Removed
modified 25-May-18 0:09am.
|
|
|
|