11 years, 9 months ago.

RPC_Serial for Freescale KL25Z

I tried to run RPC_serial program on the KL25Z board and got these errors.

I need to interface with the Labview and do A\D reading.

Please help

Question relating to:

2 Answers

11 years, 8 months ago.

I need the same: Read 2 analogs, send to labview over serial or bluetooth. Who can help us? Regards

11 years, 8 months ago.

  1. include <stdio.h>

Serial Upc(USBTX, USBRX);

AnalogIn Dat(PTB0);

int main() {

Upc.baud(38400); set the baud rate.

while(1) {

float adc1 = Dat.read();

Upc.printf("%f\n",Dat.read());

wait(.05); } }

You have to install NI-VISA drivers to your PC and then you can capture the data within the Labview. Also you have to download mbed librariy.zip (http://mbed.org/cookbook/Interfacing-with-LabVIEW)

I have attached my working Labview program .

/media/uploads/Kesara/mbed-read_hello_world_.vi and the captured data for this. /media/uploads/Kesara/data1.xlsx

I hope it will work for you as well.