can I use this kind of routine for receiving serial data?
private void serialPort1_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
dataIN = serialPort1.ReadExisting();
this.Invoke(new EventHandler(showData));
}
private void...
Hi everyone.
I am trying to read data from serial port and want to do some processing.
I have defined a function which should return the received data
testing_array = ReadHoldingRegisters(byte.Parse(txtSlaveAddr.Text), int.Parse(txtStartAddr.Text), int.Parse(txtLength.Text));
following is the...
Hi everyone.
I am developing C# based application which sends and receive data through Modbus RTU protocols.
for this I am using easyModbus file which is available on website.
https://sourceforge.net/projects/easymodbustcp/reviews
I want to know if this driver file support 0x13 function code...
@jmcilhinney I tried Timer and it is working fine. Thanks for you reply.
I have some questions regarding timer.
1- Can we use same timer for multiple tasks or we have to use different timers for different tasks?
2- If I want to set timer values from any text box through GUI , can we do that...
Hello everyone.
I want communication between C# Application and external device using Modbus Protocol. For that I use easymodbus library.
Code is working fine. When "Read Data" button is pressed then it reads the data from device.
I want to do that task on timely basis without pressing the...
Hi guys.
I have a question. I want to use serial port but in the toolbox serial port is not showing. can you tell me how to add serial port in it?
Thanks
I use string builder for displaying data. Following code is running as I want.
Kindly tell if this approach is fine or not.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using...
Hi all.
I want to do a simple task. take input from user and display its hex value in output field.
for example user input this string "210H1873DF12345"
The Hex value will be "32 31 30 48 31 38 37 33 44 46 31 32 33 34 35".
Following are the images of my interface and values stored in "data"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.