06-27-2011 09:50 AM
So I just recently discovered the feedback nodes and I am trying to use them to control my instrumet, so that if I change a setting, the feedback nodes sees the difference and preforms a visa write. There are 5 parameters to control, 1 to select a range from a list and 4 switches (Hi Res, Zero, Filter, Damping).
The issue is that everything works, but the instrument itself is always a step behind the front panel. I.e., I flip the Hi Res switch and nothing happens, then I flip another switch, say the damping switch, and then the Hi Res responds. I then flip another switch, and then the damping resonds. The switch controls the correct parameter, but it is always behind by one action.
Solved! Go to Solution.
06-27-2011 10:13 AM
That is a lot of code for a simpel task.
Why not use an Event structure with "Value change" event for each control ?
That will react much faster, without runing 100% cpu load.
06-27-2011 10:21 AM
Could you be missing a termination character on the command you are writing? That it takes awhile for a timeout to occur, or the next command to be written, before the device detects that it should execute the previous command is has received?
DKFire's suggestion of using an event structure for this is a good on.