Hi,
I am a newbie in serial communication. I want to receive data from the PC to the ECIO, but I dont know how to do it.
The only thing that I know is that I need to use an interrupt for sure, so not to keep the ECIO searching the serial port.
Any help please, and sorry if my question is babyish.
Thanks again for your help.
using serial with ECIO
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: using serial with ECIO
Hello,
First off are you using USB or a Serial COM port?
If you are using USB then you can create a virtual COM port using the USB serial component in Flowcode.
There is a video demonstrating this available from here.
http://www.matrixmultimedia.com/lc_videos.php?vid=8
First off are you using USB or a Serial COM port?
If you are using USB then you can create a virtual COM port using the USB serial component in Flowcode.
There is a video demonstrating this available from here.
http://www.matrixmultimedia.com/lc_videos.php?vid=8
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: using serial with ECIO
Hi,
Thanks
I am trying to do the video demonstration program, but instead of using a keypad, I am using a switch.
And it is complying ok. Now the problem is that when that the ECIO is programmed, and the driver is installed,
the PC is giving an error: " The device cannot start (code 10)".
Is the problem with the generated driver??
Thanks again
Thanks
I am trying to do the video demonstration program, but instead of using a keypad, I am using a switch.
And it is complying ok. Now the problem is that when that the ECIO is programmed, and the driver is installed,
the PC is giving an error: " The device cannot start (code 10)".
Is the problem with the generated driver??
Thanks again
tomcat14
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: using serial with ECIO
Hello,
Which OS are you using? Is it a 64-bit one? If so you may need an updated driver for use with v3 of Flowcode.
Also are you using the latest version of Flowcode v3 eg v3.6 as this contains the latest version of the v3 USB components.
Other then this if you post up your flowcode FCF file and the C code file that is generated then I wil have a look and see if I can spot what is going wrong for you.
As a final solution you could try changing the PID in the USB component properties and regenerating the driver. I found that once a device has been detected as a VID/PID the computer may recognise the device incorrectly if a previous USB configuration was used that had the same USB configuration values.
Which OS are you using? Is it a 64-bit one? If so you may need an updated driver for use with v3 of Flowcode.
Also are you using the latest version of Flowcode v3 eg v3.6 as this contains the latest version of the v3 USB components.
Other then this if you post up your flowcode FCF file and the C code file that is generated then I wil have a look and see if I can spot what is going wrong for you.
As a final solution you could try changing the PID in the USB component properties and regenerating the driver. I found that once a device has been detected as a VID/PID the computer may recognise the device incorrectly if a previous USB configuration was used that had the same USB configuration values.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: using serial with ECIO
Hi Benj,
Well I re-opened the flowcode window, re-generated the driver and installed it, and it worked fine.
Thanks
Well I re-opened the flowcode window, re-generated the driver and installed it, and it worked fine.
Thanks
tomcat14
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: using serial with ECIO
Brilliant thanks for letting me know.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel