LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Take variable quantity data from serial port using 8051

Let me tell you that there is a total of 3600 millisecond delay by using 11.0592 MHz Crystal in the 8051 side for the purpose of displaying data in LCD and for ADC. I don't think 12sec delay is required for reading from serial port because in '0' read before delay I can see the datas available at read string but neither gauges and indicators nor the log is working. Could you please post the waveform chart property node.vi because I am unable to open the new.vi
0 Kudos
Message 21 of 26
(1,288 Views)

visa serial read wrote:
Let me tell you that there is a total of 3600 millisecond delay byusing 11.0592 MHz Crystal in the 8051 side for the purpose ofdisplaying data in LCD and for ADC. I don't think 12sec delay isrequired for reading from serial port because in '0' read before delayI can see the datas available at read string but neither gauges andindicators nor the log is working. Could you please post the waveformchart property node.vi because I am unable to open the new.vi
have you removed property node for serial port? if not remove it and replace with number of bytes in the data frame. if you removed it,
please post the string that u see
and the data frame that u send  from micro controller.

 

Message 22 of 26
(1,276 Views)

I can see the following string:

 

v

255

h

255

c

255

w

255

l

255

r

255

 

Please note that the datas are for examples. Could you please post waveform chart property node.vi so that I can open new.vi and how many bytes shall I put instead of property node in this case?

 

 

0 Kudos
Message 23 of 26
(1,265 Views)

In your code you have given spaces between letters and digits. Including those spaces there are 35 bytes in your string. 

Remove those functions indicated in the attachment, if value corresponding to v is 25 and the string should be in the format  

v 025 h 255 c 255 w 255 l 255 r 255

such that total no of bytes is always 35.

in the post written by you, you wrote that it is appearing as v

                                                                                          255

                                                                                          h

                                                                                          255..

it is not clear whether u are getting space between digits and characters.

If at all there are no spaces the total character count(35) has to be changed accordingly and

the string format in you code must also be changed so that there is no space between v and %d and h......

try these modifications.  

0 Kudos
Message 24 of 26
(1,255 Views)

Dear Naqqash,

                    

   your front panel is looking so good how did you get those controls and indicators? 

0 Kudos
Message 25 of 26
(1,225 Views)

You can download them here.

 

http://decibel.ni.com/content/groups/ui

Naqqash
Message 26 of 26
(1,211 Views)