08-11-2016 12:51 PM
Problem: Timed loop with 1khz Absolute time source does not work when connected to constants or controls, but does work when constants are entered directly into the timed loop input nodes.
I am trying to run a cycle where my daq assistant will output to a digital channel to engage and disengage a clutch at specific times. The cycle times need to be adjustable. When I set the timing loop input nodes directly (via the dialog box you get when you double click the input nodes), it works. But if I connect a constant or a control (which I need) to the input nodes, the loop stops working.
I attached a vi showing my problem.
What did I do wrong?
08-12-2016 03:26 AM
Is this code for an RT target? If not, i recommend not to use Timed Structures for this use-case.
However, you have made two mistakes:
1) All Timed Loops have the same priority. This is a NO-GO
2) You configured the loops for absolute time. If you are using relative time (1kHz(R)) as clock source, it works
Also note that you should not implement unstoppable loops unless you are targetting an FPGA. For RT, in certain cases, it is also OK, but not recommended. For Windows, it is again a NO-GO.
Norbert
08-12-2016 04:50 AM - edited 08-12-2016 04:52 AM
While I agree with Norbert, I would have said it differently:
Bob Schor