LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Fmt?


How can i add "setb" in beginning of Switch-variable? Program ask switch to control.. e.g. "1,0" and it should change in "setb 1,0"
I don't know how to use that Fmt-command..

0 Kudos
Message 1 of 2
(4,380 Views)
This should work:


static char buffer[10];
static char switchname[5]="1,2";


Fmt (buffer, "%s<setb %s", switchname);



Hope this helps!

Message Edited by Andre_Saller on 07-20-2006 03:31 AM

Message Edited by Andre_Saller on 07-20-2006 03:32 AM

Message Edited by Andre_Saller on 07-20-2006 03:33 AM

Message Edited by Andre_Saller on 07-20-2006 03:34 AM

Message Edited by Andre_Saller on 07-20-2006 03:35 AM

Message 2 of 2
(4,349 Views)