LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communicating with Serial Port

Solved!
Go to solution

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....

0 Kudos
Message 1 of 9
(4,000 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 9
(3,996 Views)

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.....

 

0 Kudos
Message 3 of 9
(3,982 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 4 of 9
(3,976 Views)

Thanks again....

 

Canu pls give me sample code..i cudnt get frm ur explanation....

 

 

0 Kudos
Message 5 of 9
(3,974 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 6 of 9
(3,971 Views)

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...

0 Kudos
Message 7 of 9
(3,968 Views)
Solution
Accepted by topic author user_1

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 8 of 9
(3,965 Views)

Ya...Thats it...

 

Thank u so much for the guidance..I cud find atlast....

 

Thanks again

0 Kudos
Message 9 of 9
(3,940 Views)