LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem interpretation of data from serial data.... help please!

Hi Unclebump,

Thanks alot for the files you sent me.

I have made some changes in my code attached (6.1 version again). Today, i will try to have the interface between the PC (LabVIEW) and the microcontroller. The commands are simply again;

After i press the run button in LabVIEW;
s for the DC to start running,
r to get the data out of microcontroller
b to run the DC in reverse direction

The problem is; i write the commands in the string windows on the front panel in the code display mode, although i save the code, the next time i open the front panel, my commands are gone. Do i have to write the commands every time?

I have attached the microcontroller's data sheet. Chapter 11 is all about the serial communication. But since i am the one who programs the microcontroller, i think i can send any specified command (like s, r, b in my case) to the microcontroller?

I'll look at your codes in detail today. I'll get back, if i have questions.

Thanks alot again,

Lizzy
0 Kudos
Message 51 of 57
(1,887 Views)
Unclebump hi again,

Here is my new code that i have made the changes in.

Lizzy
0 Kudos
Message 52 of 57
(1,887 Views)
Right click on the front panel controls, Select data operations, Make current value default. Save the vi. This should save the command strings.
Message 53 of 57
(1,881 Views)
Have you seen this file?? It came from the freescale semiconductor website.
Message 54 of 57
(1,871 Views)
Looking at page 242-244 of the pdf file that you sent. Is this the info that you need to send over the serial port?? I started a vi that has 30 different commands to talk with the microcontroller. This should give you an idea.
Message 55 of 57
(1,868 Views)
Hi, It worked. Thanks alot.
0 Kudos
Message 56 of 57
(1,822 Views)
Thank you very much for all the files you sent me.

The folder coming from the Freescale website is a useful one but i cannot open the LabVIEW files (all the LabVIEW files in the relevant folder are in Version 7.0 -I have 6.1 ).

I am working to achieve talking to the microcontroller with the VI code that i wrote.

Thanks again.
0 Kudos
Message 57 of 57
(1,818 Views)