LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

feedback node strange behavior

Solved!
Go to solution

k181block.JPG

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.

0 Kudos
Message 1 of 3
(2,290 Views)

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.

Message 2 of 3
(2,282 Views)
Solution
Accepted by topic author LarsUlrich

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.

Message 3 of 3
(2,274 Views)