LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Extracting numbers from a char array

Solved!
Go to solution

Hello,

I am using LabWindows/CVI to read data from a serial port.  I read the values with ComRdTerm, and they are stored in a char array, the 

array looks like this "1024 576 123 756". I need to extract the numbers from this array.

0 Kudos
Message 1 of 3
(2,762 Views)
Solution
Accepted by topic author adrian_necula

ANSI C sscanf () and Formatting and I/O Library Scan () functions are the instrument you can use to extract your numbers. A good C manual will explain you the first command and its options, while for the second there exists a good descrption in the online help.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 3
(2,754 Views)

Thank you, it worked

0 Kudos
Message 3 of 3
(2,739 Views)