‎05-03-2010 09:12 AM
A Timed Loopis executing like expected if time source is manually choosen in its configuration dialog for "1 kHz" (first figure) and "1 MHz" (second figure). If the Time Source Name is set via the string input to "1 kHz", the loop is executed, too (third figure). But if the input string is "1 MHz", the loop is not executed (last figure). The two string are created via "create Constant" on the input of the loop to exclude typos. Is it possible to set the Time Source of a timed loop via the string input to the Mhz hard real time clock?
Solved! Go to Solution.
‎05-03-2010 09:56 AM - edited ‎05-03-2010 09:58 AM
I assume that you receive an error in the error out terminal. What is the code?
Norbert
Edit: And i understand it that picture 3 (1kHz connected as "external source") works too where as only figure 4 throws an error. Is that correct?
‎05-03-2010 10:09 AM
Norbert B wrote:And i understand it that picture 3 (1kHz connected as "external source") works too where as only figure 4 throws an error. Is that correct?
This is correct.
‎05-04-2010 03:35 AM
Ok, i was a bit confused by the difference of the error behavior......
Now, the issue is quite clear. The help for the timed loop states the following in regard to the Timing Source Input:
Specifies the name of the timing source to use for controlling the structure. The timing source must be created on the block diagram using the Create Timing Source VI or selected from the Configure Timed Loop dialog box.
So i think that you have somewhere in your code a Create Timing Source.VI where you pass "1 kHz" as name. But you have not done that for your "1 MHz" clock....
hope this helps,
Norbert
‎05-04-2010 04:11 AM
Norbert B wrote:Ok, i was a bit confused by the difference of the error behavior......
Now, the issue is quite clear. The help for the timed loop states the following in regard to the Timing Source Input:
Specifies the name of the timing source to use for controlling the structure. The timing source must be created on the block diagram using the Create Timing Source VI or selected from the Configure Timed Loop dialog box.
I should RTF 😉
Thank you
So i think that you have somewhere in your code a Create Timing Source.VI where you pass "1 kHz" as name. But you have not done that for your "1 MHz" clock....
LabVIEW basely creates the "1 kHz" timing source implicit in other timed loops, which are configured like the one in first post first figure.