LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Fullnes of C language support in LabWindows

Greetings!
 
I'm gettting frustrated at the moment about the limited C available in the LabWindows/CVI environment.  The help files and accompanying books all assume a "working knowledge" of C, and hence contain no language reference guides, but the side panel library search functions are useful, and to some extent take the place of the reference.
 
However, a number of omissions have been made from the standard C language.   Also, some are missing from the side panel, but still available for use in the programming.  Hence 1) is there any guide as to which functions have been left out of the CVI environment, and perhaps how to reintroduce them?
 
My current example is conversion of integers to strings.  There are a multitude of various functions in C, but none seem available within LabWindows, and the typical "automatic" conversion doesn't work either.  So 2) in LabWindows/CVI, what is the correct conversion technique?
__________________________________________
The world is full of exciting challenges,
brilliantly disguised as insoluble problems.
0 Kudos
Message 1 of 5
(3,549 Views)

Not quite sure what you mean. You can certainly do:

sprintf (string, "%d", integer);

Is that what you meant? I haven't found anything in the ANSI C standard that CVI cannot do. (But I'm sure there are some limitations.)

JR

0 Kudos
Message 2 of 5
(3,544 Views)
Sort of... I was looking for the toascii or even itoa functions.
 
I somehow missed the sprintf, so thanks for that one (wood for trees problem, I'm afraid), but given the nice and simple StrToInt etc., one would expect the complementary functions to be available.
__________________________________________
The world is full of exciting challenges,
brilliantly disguised as insoluble problems.
0 Kudos
Message 3 of 5
(3,540 Views)
Ah... those are not standard ANSI C functions, I'm afraid. Library->ANSI C from the menu bar will give you the list of standard C functions available. Many of them have 'native' CVI equivalents (like CopyString(), in place of strcpy() ) and there are extensions in the programmer's toolbox, which you have already discovered. Then there is always the SDK, for the Windows kernal function calls. I find the whole environment a pretty comprehensive suite, actually. Certainly I have never not been able to program a solution because of a lack of basic building blocks.
 
JR
0 Kudos
Message 4 of 5
(3,536 Views)
Fair enough...

Thanks!
__________________________________________
The world is full of exciting challenges,
brilliantly disguised as insoluble problems.
0 Kudos
Message 5 of 5
(3,532 Views)