LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serail communication problem with a PWM device

I have a device for pulse width modulation (PWM) with serail communication. It works fine with hyperterminal. In hyperterminal, I have to enter %  duty cycle like say 50. When I type the 50,
it doesn't show the number, but once I hit the enter button; 50 % duty cycle is applied to device and device automatically sends back the % duty cyle, in my case 50. I am having trouble in
operating this device with Labview. I tried diffenet examples available in Labview help like basic serial write and read.vi. This example doesn't give any errors but, the the PWM device
doesn't work. I have tried loop back test with pins 2 and 3 shorted on serial cable and that works fine. So I don't understand why I am not able to communicate with device using labview. 
 
Any suggestions on what I am missing. Reply would be greatly appreciated.
0 Kudos
Message 1 of 2
(2,086 Views)
I got the answer from NI engineer through phone support. The problem was I was missing end of line characters.  I have to type 50\r\n on string to write instead of just 50.
0 Kudos
Message 2 of 2
(2,080 Views)