Search results for query: *

  1. E

    return array from called function

    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...
  2. E

    return array from called function

    @jmcilhinney and @Skydiver thanks for your reply. I didn't get any of your points as I am very new to c#. could you please explain me again?
  3. E

    return array from called function

    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...
  4. E

    0x13 function code in easyModbus driver file

    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...
  5. E

    Resolved Perform task on timely basis

    @jmcilhinney Thanks dear. It is working
  6. E

    Resolved Perform task on timely basis

    @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...
  7. E

    Resolved Perform task on timely basis

    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...
  8. E

    Question No serial port in Toolbox

    @jmcilhinney this option is available in toolbox. I am watching a tutorial in this it is present. see the image
  9. E

    Question No serial port in Toolbox

    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
  10. E

    Question Design-Time Exception Prevents Form Being Designed

    OK @jmcilhinney let me check this. Thanks
  11. E

    Question String value to Hex value

    @jmcilhinney where you have break this out as a new thread?
  12. E

    Question Design-Time Exception Prevents Form Being Designed

    Why i am getting this error it was running fine but now it is giving this error
  13. E

    Question String value to Hex value

    it looks too complicate @jmcilhinney
  14. E

    Question String value to Hex value

    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...
  15. E

    Question String value to Hex value

    Thanks @JohnH and @jmcilhinney for your reply, it worked. would you tell me how to append text. should I use string builder or any other way?
  16. E

    Question String value to Hex value

    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"...
Back
Top Bottom