Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatting Serial Read on PDA

Hello all,
 
I am trying to modify the Serial Comm - Pocket PC.vi (see attached) such that it can be automated.  Automated, in the sense that I don't want to use event structures.  I keep getting an error: "Serial Port Init Error Code: -1073807343" when I run the application.  When I remove the Serial Port Init Cluster, I get another error, "Bytes at Serial Port Error Code: 1073807343."  I can't get it to build either.  I'm attaching my file.  For the majority part of my project, I will be reading data from the serial port.   Can anyone help me? I'm desperate.
Thanks,
Amal Patel
0 Kudos
Message 1 of 2
(4,546 Views)

Hi Amal,

When I need to communicate with the serial port I use the attached VI. Most of the time its sending a command and receive dta back with a known number of bytes. When the number of bytes is unknown just set the expected number of bytes high and ignore the time-out error. To get started this just works fine.

You must add a init in front of this VI (maybe together with a serial buffer and flush)

Message 2 of 2
(4,525 Views)