02-17-2009 07:38 PM
Hi,
Hi I have an application that i have to communicate with serial port...
Its working perfectly if am giving all the com settings as constants(pls hav a look @ codea).
But i want to read the port number and baud reate from text file.When i changed the coding,in the serial
setting i was not even able to find the port number and baud rate.it was displaying as buffer size.I think the way i connected the port number and baudrate to the clusture may be wrong(pls refer codeb).How do i fix this problem?
Thanks in Advance....
Solved! Go to Solution.
02-17-2009 07:55 PM
The problem I think is that you don't have a cluster tied to the center terminal of the bundler so most of the values don't have a name. Wire the cluster from above to the center terminal on the lower bundler. BTW, it doesn't matter what values are in the cluster you wire up because they will be overwritten.
Mike...
02-17-2009 09:11 PM
Hi,
Thank you so much for the reply.I am sending u a clearer picture.
The code wth me is ok for constant setting....
Is it the problem with representation of the number after reading from the text file?
Thanks again.....
02-17-2009 09:16 PM
No, as I said before the problem is that you don't have a cluster wired to the center terminal of the lower bundler. It is this cluster that defines the cluster's datatype (including the names of the items in the cluster).
Mike...
02-17-2009 09:29 PM
Thanks again....
Canu pls give me sample code..i cudnt get frm ur explanation....
02-17-2009 09:35 PM
Refering to your picture, run a wire from the wire right above the label Serial Settings to the middle terminal of the bundler directly below it. After this you should see all the proper values in the unbundle by name.
Mike...
02-17-2009 09:50 PM
I cant bundle frm the upper cluster..there i gave constants...(that code i have to replace by codeb)
I actually have to read from text file as the codeb...
Thats why i made a cluster by bundling the values frm text files and constants...
02-17-2009 09:55 PM
Again, the point of wiring to the center terminal is not to define the values contained in the cluster -- just the cluster's logical structure. The data that appears in the cluster coming from the budler will reflect the data you are reading from the file. Try it.
Mike...
02-17-2009 11:10 PM
Ya...Thats it...
Thank u so much for the guidance..I cud find atlast....
Thanks again