LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Communication Problem

Solved!
Go to solution

Hi,

I am facing difficulty in VISA serial communication. We have diagnostic code running in a K70P256M150SF3RM type processor. The USB 3300 transciever helps to convert the ULPI line to USB mode. We are successfully communicated with the processor through  hyperterminal (115200k baud rate). But while trying to communicate with LabVIEW we are not able to get any data from procssor. All parameters of VISA configure i have made like what i for hyperterminal.

 Please help me to resolve the issue.

Thanks & Regards,

Sree

0 Kudos
Message 1 of 13
(5,339 Views)

You'll need to provide more information than that for help.  Perhaps even attach your VI.

 

Do you get any errors within LabVIEW?

 

What does the data look like that is going back and forth between the PC and the device in hyperterminal?

 

Are you sure you have all the settings correct?  Is it possible you are not handling termination characters correctly?

0 Kudos
Message 2 of 13
(5,334 Views)

Hi,

Thanks alot for your response.

For dubuging purpose i used the same sample vi given in the examples. It is having a visa configure, visa open, visa write, time delay, visa read and visa close. Nothing else. In visa configure we used correct baud rate 115200 and correct termination character. Labview giving the time out error of visa read, means no able to communicate with device.

In hyper terminal it is communiacating successfully. The command going from hyper terminal is

$<command><Enter>

Response will be data or atleast it will send Invalid command from device.

In hyperterminal, there is three places for adding the command and send function for each. But device not accepting that one. We have to add directly in the command window and send, then only device accepting the command.

Thanks & regards,

Sree

0 Kudos
Message 3 of 13
(5,292 Views)
But what are you sending as termination character(s) in the LabVIEW example? The basic example only sets the termination for a read. You have to manually enter what you need for a write. Use \n or \r or both like hyperterminal does.
0 Kudos
Message 4 of 13
(5,278 Views)

I have tried End of line/Line feed string constant concatenated with command, then also the issue not solved.

0 Kudos
Message 5 of 13
(5,264 Views)

We are connecting device with PC through USB and with the help of some driver we accessing as Virtual COM pom port from USB modem. So whether we have to use any USB type VISA functions instead of normal VISA serial functions?

 

0 Kudos
Message 6 of 13
(5,253 Views)
No, you use the standard VISA functions though I don't understand your comment about a modem.

Please try the the \r\n in the string control.

Attach an image from hyperterminal, MAX, and the VI's front panel. You're sure you are using the Basic example?
0 Kudos
Message 7 of 13
(5,249 Views)

Hi here attached the error, hyper terminal and MAX pictures..

 

Download All
0 Kudos
Message 8 of 13
(5,217 Views)

Here atached the code and front panel..

Download All
0 Kudos
Message 9 of 13
(5,214 Views)

Well, since you can't even get it to work with hyperterminal, you have some connection issues.  I'm also noticing you have some issues in your device manager.  You get those fixed first.  Then troubleshoot your connection issues.  After that, your LabVIEW code should work.  But this is NOT a LabVIEW problem.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 13
(5,200 Views)