12-01-2014 12:40 AM
Hello, Dear all
There is a project currently, we need to read 2 messages about the consecutive Polling signals by Mega2560 with LabView as attachment. Please indicate us how to add Serial 1 and Serial 2 in the Program.
Thank you in advance and looking forward to your prompt reply.
Best regards,
12-01-2014 06:12 PM
Serial communication via Serial 1 and Serial 2 are not supported by LIFA. You would need to create custom functions that execute that code, but it must fit into the command/response architecture on which LIFA is based. I.e. it must be able to send a command and receive the response from Serial 1 or 2 relatively quickly (you would not be able to constantly poll the port).
12-01-2014 08:29 PM
Hello, Dear Nathan_B:
Thank you for your kind and prompt reply. However, There is something need to figure out, so you mean that I have to write the way of communication Serial 1 or Serial 2 in the LIFA_Base? Do you have any example to share with me.
Thank you in advance and looking forward to your prompt reply.
12-01-2014 10:09 PM
You have to create a custom function. I would recommend starting by duplicating an existing function in the LIFA firmware and in LabVIEW (with a new command number). Make sure that works first. Then, you can add your own custom code to that function instead of the code that you duplicated.