<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Changing module properties at runtime in DASYLab</title>
    <link>https://ni.lithium.com/t5/DASYLab/Changing-module-properties-at-runtime/m-p/318096#M151</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN class="noindex"&gt;&lt;/SPAN&gt;&lt;SPAN&gt;There are several ways to accomplish this.&lt;BR /&gt;
  &lt;BR /&gt;
First, replace the values in the Bar Graph Scaling From / To with
Global Variables. You can easily tell if a Global Variable is allowed
by right-clicking in a dialog box parameter field. If the Global
Variable menu item is displayed, choose it. You can then choose a
Global Variable to enter into the field. Since this puts a placeholder,
such as ${VAR_1} into the field, you can simply type it, as well. &lt;BR /&gt;
  &lt;BR /&gt;
Once you have this configured, then you have many ways to update the Global Variables. &lt;BR /&gt;
  &lt;BR /&gt;
For example, you can provide user control by creating a Slider module
with two outputs, connected to a Variable Set module with two inputs.
When you move the slider, the specified variables will update. &lt;BR /&gt;
  &lt;BR /&gt;
Or, as you have suggested, use the Action module to monitor a Digital
Input. On Rising Edge, set each variable to the desired values, and on
Falling Edge, set them to the other set of values. Note that you'll
need an Action channel for each variable for each event, a total of 4
channels. You may want to also configure two Experiment Start channels,
to ensure that the initial settings are correct at program start. &lt;BR /&gt;
  &lt;BR /&gt;
Good luck,&lt;BR /&gt;
  &lt;BR /&gt;
--cj&lt;BR /&gt;
&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/2316"&gt;@Anonymous&lt;/a&gt; wrote:&lt;BR /&gt;Hi Everyone,&lt;BR /&gt; &lt;BR /&gt; I'm running DASYLab 7, and I'm a beginner.  In the simplest terms, here&lt;BR /&gt; is what I need to do:&lt;BR /&gt; &lt;BR /&gt; I have a bar graph module with specific settings for the lower limit&lt;BR /&gt; and upper limit properties.  While the program is running, I need to&lt;BR /&gt; find a way to change the lower and upper limits on the bar graph when&lt;BR /&gt; the signal from a digital input goes to zero (for example).&lt;BR /&gt; &lt;BR /&gt; Basically, I want to dynamically change the scaling of the bar graph&lt;BR /&gt; while the program is running.  Is this possible with some sort of&lt;BR /&gt; action module?  Although I'm new to DasyLab, I know VB and C++ in case&lt;BR /&gt; this solution might require some programming.&lt;BR /&gt; &lt;BR /&gt; Thanks in advance,&lt;BR /&gt; Andy&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="noindex"&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 31 Jan 2006 16:54:00 GMT</pubDate>
    <dc:creator>CJ_Butler__DASYLab_Pro</dc:creator>
    <dc:date>2006-01-31T16:54:00Z</dc:date>
    <item>
      <title>Changing module properties at runtime</title>
      <link>https://ni.lithium.com/t5/DASYLab/Changing-module-properties-at-runtime/m-p/318027#M150</link>
      <description>Hi Everyone,&lt;BR /&gt;
&lt;BR /&gt;
I'm running DASYLab 7, and I'm a beginner.  In the simplest terms, here&lt;BR /&gt;
is what I need to do:&lt;BR /&gt;
&lt;BR /&gt;
I have a bar graph module with specific settings for the lower limit&lt;BR /&gt;
and upper limit properties.  While the program is running, I need to&lt;BR /&gt;
find a way to change the lower and upper limits on the bar graph when&lt;BR /&gt;
the signal from a digital input goes to zero (for example).&lt;BR /&gt;
&lt;BR /&gt;
Basically, I want to dynamically change the scaling of the bar graph&lt;BR /&gt;
while the program is running.  Is this possible with some sort of&lt;BR /&gt;
action module?  Although I'm new to DasyLab, I know VB and C++ in case&lt;BR /&gt;
this solution might require some programming.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance,&lt;BR /&gt;
Andy&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Jan 2006 15:40:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/DASYLab/Changing-module-properties-at-runtime/m-p/318027#M150</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-01-31T15:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Changing module properties at runtime</title>
      <link>https://ni.lithium.com/t5/DASYLab/Changing-module-properties-at-runtime/m-p/318096#M151</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN class="noindex"&gt;&lt;/SPAN&gt;&lt;SPAN&gt;There are several ways to accomplish this.&lt;BR /&gt;
  &lt;BR /&gt;
First, replace the values in the Bar Graph Scaling From / To with
Global Variables. You can easily tell if a Global Variable is allowed
by right-clicking in a dialog box parameter field. If the Global
Variable menu item is displayed, choose it. You can then choose a
Global Variable to enter into the field. Since this puts a placeholder,
such as ${VAR_1} into the field, you can simply type it, as well. &lt;BR /&gt;
  &lt;BR /&gt;
Once you have this configured, then you have many ways to update the Global Variables. &lt;BR /&gt;
  &lt;BR /&gt;
For example, you can provide user control by creating a Slider module
with two outputs, connected to a Variable Set module with two inputs.
When you move the slider, the specified variables will update. &lt;BR /&gt;
  &lt;BR /&gt;
Or, as you have suggested, use the Action module to monitor a Digital
Input. On Rising Edge, set each variable to the desired values, and on
Falling Edge, set them to the other set of values. Note that you'll
need an Action channel for each variable for each event, a total of 4
channels. You may want to also configure two Experiment Start channels,
to ensure that the initial settings are correct at program start. &lt;BR /&gt;
  &lt;BR /&gt;
Good luck,&lt;BR /&gt;
  &lt;BR /&gt;
--cj&lt;BR /&gt;
&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/2316"&gt;@Anonymous&lt;/a&gt; wrote:&lt;BR /&gt;Hi Everyone,&lt;BR /&gt; &lt;BR /&gt; I'm running DASYLab 7, and I'm a beginner.  In the simplest terms, here&lt;BR /&gt; is what I need to do:&lt;BR /&gt; &lt;BR /&gt; I have a bar graph module with specific settings for the lower limit&lt;BR /&gt; and upper limit properties.  While the program is running, I need to&lt;BR /&gt; find a way to change the lower and upper limits on the bar graph when&lt;BR /&gt; the signal from a digital input goes to zero (for example).&lt;BR /&gt; &lt;BR /&gt; Basically, I want to dynamically change the scaling of the bar graph&lt;BR /&gt; while the program is running.  Is this possible with some sort of&lt;BR /&gt; action module?  Although I'm new to DasyLab, I know VB and C++ in case&lt;BR /&gt; this solution might require some programming.&lt;BR /&gt; &lt;BR /&gt; Thanks in advance,&lt;BR /&gt; Andy&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="noindex"&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 31 Jan 2006 16:54:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/DASYLab/Changing-module-properties-at-runtime/m-p/318096#M151</guid>
      <dc:creator>CJ_Butler__DASYLab_Pro</dc:creator>
      <dc:date>2006-01-31T16:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Changing module properties at runtime</title>
      <link>https://ni.lithium.com/t5/DASYLab/Changing-module-properties-at-runtime/m-p/318633#M152</link>
      <description>Thanks, CJ.  This is good stuff.&lt;BR /&gt;
&lt;BR /&gt;
-Andy&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
CJ Butler -- DASYLab Pro wrote:&lt;BR /&gt;
&amp;gt; There are several ways to accomplish this.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; First, replace the values in the Bar Graph Scaling From / To with&lt;BR /&gt;
&amp;gt; Global Variables. You can easily tell if a Global Variable is allowed&lt;BR /&gt;
&amp;gt; by right-clicking in a dialog box parameter field. If the Global&lt;BR /&gt;
&amp;gt; Variable menu item is displayed, choose it. You can then choose a&lt;BR /&gt;
&amp;gt; Global Variable to enter into the field. Since this puts a placeholder,&lt;BR /&gt;
&amp;gt; such as ${VAR_1} into the field, you can simply type it, as well.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Once you have this configured, then you have many ways to update the Global Variables.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; For example, you can provide user control by creating a Slider module&lt;BR /&gt;
&amp;gt; with two outputs, connected to a Variable Set module with two inputs.&lt;BR /&gt;
&amp;gt; When you move the slider, the specified variables will update.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Or, as you have suggested, use the Action module to monitor a Digital&lt;BR /&gt;
&amp;gt; Input. On Rising Edge, set each variable to the desired values, and on&lt;BR /&gt;
&amp;gt; Falling Edge, set them to the other set of values. Note that you'll&lt;BR /&gt;
&amp;gt; need an Action channel for each variable for each event, a total of 4&lt;BR /&gt;
&amp;gt; channels. You may want to also configure two Experiment Start channels,&lt;BR /&gt;
&amp;gt; to ensure that the initial settings are correct at program start.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Good luck,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --cj&lt;BR /&gt;
&amp;gt; Anonymous wrote:Hi Everyone,   I'm running DASYLab 7, and I'm a beginner.  In the simplest terms, here is what I need to do:   I have a bar graph module with specific settings for the lower limit and upper limit properties.  While the program is running, I need to find a way to change the lower and upper limits on the bar graph when the signal from a digital input goes to zero (for example).   Basically, I want to dynamically change the scaling of the bar graph while the program is running.  Is this possible with some sort of action module?  Although I'm new to DasyLab, I know VB and C++ in case this solution might require some programming.   Thanks in advance, Andy&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Feb 2006 15:10:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/DASYLab/Changing-module-properties-at-runtime/m-p/318633#M152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-02-01T15:10:40Z</dc:date>
    </item>
  </channel>
</rss>

