CodePudding user response:
Write the code beforeInt * down=new int [1024].//store integers between 0 and 16383
Char strbuf [4].//
Cstrings tempstr CMDSTR;
for(int i=0; i<1024; I++) {
Memcpy (strbuf, & amp; The down [I], 4);
Tempstr. The Format (" % s "2, strbuf);
CMDSTR=CMDSTR + tempstr;//the connection string
}
Char * CMD=(LPCTSTR) CMDSTR (char *);
ViPrintf (vi, CMD);//send commands to the VISA
This short code in the down import is a square wave signal data performed successfully, but I am wrong for linear frequency modulation signal, VIprintf return "format string format identifier is invalid", how to return a responsibility? O teach
CodePudding user response:
VS IDE, in don't understand the symbol viPrintf point on the right mouse button, choose to define,