Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting PC VI to Pocket PC VI

I have a VI that I've made work on a PC and want to transfer it to a Pocket PC. I use RS232 serial to communicate with my device. I can do this with the PC but when I try to do it with the VI I created for the Pocket PC it doesn't communicate.

I think that the problem is in that I cannot specify a termination character on the PDA init function.

The settings on the PC are as follow: 1 stop bit, No Parity bit, 8 bits data, 9600 baud rate, No Flow Control, and termination character 0DH (carriage return).

I've seen posts where people have made the PDA module work for them, could you provide any insight?

--Jose
0 Kudos
Message 1 of 4
(4,183 Views)
Hello Jose,

FIrst I would make sure you can get serial communication on the PDA working outside of your particular example.  Which version of LabVIEW and the PDA module are you using?  Have you tried running the PDA shipping examples, such as the Serial Comm - Pocket PC example?  If so, were you able to successfully communicate using these examples?  Also which version of Pocket PC are you using?  Are you using Port 0 on your PDA?  Are you getting a particular error message when you run your application on the PDA?

Thanks again!


Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 4
(4,172 Views)
I have used the sample VI's provided and I'm able to do a loop-back.

I'm using LabView 8.0 and PDA module 8.0 with an HP 5150 Pocket PC.

--Jose
0 Kudos
Message 3 of 4
(4,168 Views)
Yes I'm using Port 0 on the PDA. When I do this I don't get an error but have no output for the response I'm expecting from my device.

The reason I say I suspect this has to do with enabling the termination character on the serial initialization is because this is the same problem I had when I was running it only on my PC. I wasn't able to see my output until I enabled the Termination Character (OD - Carriage Return).

There's no direct way to do this on the PDA serial init function. I went to the subfunction and saw that it had a VISA Configure Serial Port with the termination character set to false. I enabled the termination character and got a "ERROR CONFIGURING PORT" message.

--Jose
0 Kudos
Message 4 of 4
(4,163 Views)