0

Once I have identified a serial port to communicate with on Windows 7 (using the Win32_SerialPort WMI method, how do you recommend sending a string array to it using c#? Many thanks in advance.

2
  • 2
    What format does the receiving device require? What have you tried? Commented Aug 17, 2012 at 0:13
  • @voltagex it asks for a gcode which is an array of string giving instructions to the printer. Commented Aug 20, 2012 at 22:08

1 Answer 1

2

You can use the SerialPort class, as described here on MSDN: http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx

A prototype available is Write(string), which you can use in a loop for your requirements.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.