i'm developping a system with straingauss and i'm currently having some issues with the software part.
I try to read the value from a GSV-2AS with Microsoft VisualStudio IDE.
GSVactivate works fine by after the GSVread() fonction is not working for me and return 0.
I'm using the snippets bellow:
#include "Megsv.h" // MeGSV header
#pragma comment (lib, "MEGSV.lib") // MeGSV libraries
#define ComNr 5
#define BuffSize 1000
double ad = 0;
if (GSVactivate(ComNr, BuffSize) != GSV_OK) // Works fine
printf("\n[!] initialisation failed.\n");
if (GSVread(ComNr, &ad) == GSV_TRUE) // GSVread() return 0 and ad is not updated
//printf(" %1.3f\n", ad);
double val = 0;
val = read();
I've no linking or dependancies issues.
Am i missing something ?
Thank you very much for your help by advance !!!