LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"1 MHz" for source name on time loop does not work on LabVIEW Real-Time 9.0

Solved!
Go to solution

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?

clickKHz.PNG

clickMHz.PNG

StringKHz.PNG

StringMHz.PNG

0 Kudos
Message 1 of 5
(4,586 Views)

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?

Message Edited by Norbert B on 05-03-2010 09:58 AM
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 5
(4,569 Views)

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.

0 Kudos
Message 3 of 5
(4,563 Views)
Solution
Accepted by topic author dominikh

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

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 5
(4,530 Views)

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.

0 Kudos
Message 5 of 5
(4,522 Views)