LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Some doubts of LabWindows-CVI

Hi everybody,
sorry for my english. I'd like to know if somebody knows an
example of panel child, also an example of the Scan function and
if exists some function that of a number extracts the part integer and
the part decimal by separated.
Thank very much for yours answers.
0 Kudos
Message 1 of 3
(2,979 Views)
A child panel acts like a top-level panel, except that you cannot move it outside the boundaries of its parent. To create it, simply pass the handle of the parent panel as the first parameter in LoadPanel function. A good example for it is shipped with CVI: you'll find it in \samples\userint\panels.prj.

As for the Scan function, the online documentation is plenty of good examples. You can read 'Formatting and I/O Programming Examples' found in Help >> Cvi Libraries menu, item 'Formatting and I/O'.

The modf function in the ANSI C library is what you need to partition a number into its integer and fractional part.

Hope this helps
Roberto


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?
0 Kudos
Message 2 of 3
(2,979 Views)
Hi Neolaxus (cool name by the way),

Here is an example of a child panel inside a parent panel in CVI:

http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/341192d4aeb035e486256ac40078a4e8?OpenDocument

Hope this helps,
Azucena
0 Kudos
Message 3 of 3
(2,979 Views)