From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ComToFile function

Hi Experts,

 

Does anyone have experience to use ComToFile function? It looks the function to write COM data to any file, but there is less information only in help, espaecially "File Handle". I would refer any example or more detail information. I apreciate for your help.

 

Thanks,

Tetsuya

0 Kudos
Message 1 of 3
(4,364 Views)

The file handle is simply an integer handle that refers to a pathname.  Get this handle by calling OpenFile.  In that function, you can set your pathname.

 

The rest of the Com library is pretty straightforward.  Take a look at its sister function ComRdTerm.  There's a sample project listed in the help: ~\rs232\serial.cws

Message 2 of 3
(4,357 Views)

Thank you very much.

 

The function is related with FileI/O function. I will check them.

 

thanks,

0 Kudos
Message 3 of 3
(4,337 Views)