Quote Originally Posted by mikeyakame View Post
Diverge,

Use return values from Rivatuner. It should give them. I take it you are calling it with something like. In C I would do something like:

int main(int argc, char **argv) {
...
int rt_ret = 0;
sprintf(buf, "rivatuner.exe /ri%d,%s,%s\n", BUS_NUM, BUS_ADDR, REG_OFFSET");
rt_ret = system("buf");
switch(rt_ret) {
case 0: printf("Volterra VR detected\n");
goto next;
case 1: printf("Volterra VR not detected\n");
goto exit_fail;
}

next:
read_i2c_vr_reg(argv[0]);
...

exit_fail:
printf("You are unable to use this application because your hardware isn't supported\n");
return 1;
...
}

I just woke up so I'm still half asleep but something like that should work in theory. Unwinder would no doubt have return values
It's possible RT returns values, but it doesn't return them to the command line. If it did, i'd be able to get them using the following:

Code:
            System.Diagnostics.Process proc = new System.Diagnostics.Process(); //create my process
            proc.EnableRaisingEvents = false;
            //String sMyPath = Environment.CurrentDirectory;
            proc.StartInfo.FileName = "devcon.exe";                                //name of file to run
            proc.StartInfo.Arguments = " ";
            proc.StartInfo.RedirectStandardOutput = true;                       //setup redirection
            proc.StartInfo.UseShellExecute = false;                             //redirect from shell to
            proc.StartInfo.CreateNoWindow = true;                               //hide shell
            proc.Start();
            String cmd_out = proc.StandardOutput.ReadToEnd();
            MessageBox.Show(cmd_out);
Problem is I'm not an experienced programmer, so I have no clue how to do this with applications that don't display values on the command line.

The above example is a piece of code I used to make a GUI for devcon, which is a microsoft command line utility that lets you manipulate devices in your computer - basically device manager, but via command line. Instead of displaying the info at the command line prompt, the code redirects it into a string, and then I can parse it, to read status, find device id's ect. In the above example it just displays it in a messagebox. (i made the GUI to turn off devices in my laptop to extend battery live... it's a lot easier then going to device manager to disable them).

Unfortunately this is the way I have the GUI run rivatuner to set the voltage control registers, and it doesn't redirect anything for me to parse, cause it doesn't display the info in the dos box (command line). it displays it in it's own GUI (rivatuner).

Like I said, I'm n00b at programming. So if you have any visual C# examples that work to return RT value, i'll be glad to try to make it work.