1- When I play with my daq card, I sent it : AI_VRead (1, 1, 1, &DataSensor)and I have a result but when I begin again this test, I have always the same result. Why?
2- When, I would like to store this result to a txt file, I can't read the result because there are some weird ascii code. I have 2 problems with my daq card:
1- pdata = malloc (sizeof(float));
if (pdata == NULL)
MessagePopup ("Malloc Error", "There is
not enough place.");
status = AI_VRead (1, 3, 1, &DataSensor);
*pdata = DataSensor;
2- hFile = fopen (save_file, "w");
fwrite (pdata, sizeof(float), 1, hFile);
fclose (hFile);
free (pdata); //malloc pointer
If you have any answer, may you
send me a mail, please. Thanks very much.
A French guy.