03-07-2018 12:50 AM - edited 03-07-2018 12:52 AM
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.
03-07-2018 01:25 AM - edited 03-07-2018 01:26 AM
03-07-2018 06:26 AM
My guess is you are missing a termination character or something in your message so the instrument is stuck looking for the end of the message.
What instrument are you using? Can you share you code?
03-07-2018 07:26 AM
The problem is with the wiring in your block diagram. Fix that and it will be fine.
03-07-2018 09:24 AM
Sounds like you have a bug in your program.
Without seeing your code that's all the help we can give you.
03-07-2018 09:41 AM
03-07-2018 10:29 AM
Yes, we cannot debug sentences to fix your race condition.
Without knowing anything about your code architecture, we are all stabbing in the dark.
One thing that has not been mentioned is a scenario where your control terminals are before (or in parallel) to an event structure that gets triggered by e.g. a value change of same. The terminal gets read at the beginning of the new iteration and way before a value change triggers the event structure. Now the new values is only read from the control at the next iteration.
Please attach a simplified version of you VI and we will be able to help you.