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.
-
2What format does the receiving device require? What have you tried?Adam– Adam2012-08-17 00:13:18 +00:00Commented Aug 17, 2012 at 0:13
-
@voltagex it asks for a gcode which is an array of string giving instructions to the printer.Arthur Mamou-Mani– Arthur Mamou-Mani2012-08-20 22:08:41 +00:00Commented Aug 20, 2012 at 22:08
Add a comment
|
1 Answer
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.