Open nanqiu123 opened 1 month ago
OH, there is not any help for me?
You must first send the selection command, and then send the execution command.
/**
like thise
sc = (InformationObject)SingleCommand_create(NULL, 10, true, true, 0); printf("Send control select command C_SC_NA_1\n"); CS104_Connection_sendProcessCommandEx(con, CS101_COT_ACTIVATION, 1, sc); InformationObject_destroy(sc);
sc = (InformationObject)SingleCommand_create(NULL, 10, true, false, 0); printf("Send control execute command C_SC_NA_1\n"); CS104_Connection_sendProcessCommandEx(con, CS101_COT_ACTIVATION, 1, sc); InformationObject_destroy(sc);
hi, I using thoese programs to writing data to 104 server, InformationObject sc = (InformationObject)SingleCommand_create(NULL, 10, false, false, 0); printf("Send control command C_SC_NA_1\n"); CS104_Connection_sendProcessCommandEx(con, CS101_COT_ACTIVATION, 1, sc); InformationObject_destroy(sc);
but ,in last two page program,
sc = (InformationObject)SetpointCommandShort_create(NULL, 110, 2.4567, false, 0); printf("Send control command C_SC_NA_1\n"); CS104_Connection_sendProcessCommandEx(con, CS101_COT_ACTIVATION, 1, sc); InformationObject_destroy(sc);I can‘t using the program to write data , the messages to server are listed below。 I find those message are not 32bits string message or float message but scaled num message, so it write fail, I want to know the reason about it please.