I currently have a set-up where I send a character down an RS-232 cable using a simple VISA interface and my hardware interprets the command and runs whatever I have programmed into it. One command is causing me particular problems;
case 'D':
IACmotor_pos = x;
move_IACmotor();
break;
Obviously, when a 'D' is sent down down the line, the case statement is run.
The problem I am having is that I want to send the variable 'x' too. Can this be done?