<?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: Error 1 at Generate User Event in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2169880#M698331</link>
    <description>&lt;P&gt;The '&amp;lt;StateCtrl&amp;gt;: user event'. I have not implemented the others yet. I want to get this one working first as I consider it to be the most important one.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Sep 2012 21:37:13 GMT</pubDate>
    <dc:creator>Chuck60148</dc:creator>
    <dc:date>2012-09-27T21:37:13Z</dc:date>
    <item>
      <title>Error 1 at Generate User Event</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2169658#M698282</link>
      <description>&lt;P&gt;I am trying to develop an application to turn 3 air valves on and off with time in between activations using a process that runs in the background. I am attempting to use user events to communicate to the background process which sequence of actuations to run at a given time. The problem I have run into is that I get error 1 from the generate user event function in the main program loop. I have read through all of the Nuggets, help files, and discussion posts I can find and I think that I understand how user events work and how to implement them. Or I thought I did. I can't find the issue in this program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the project folder (zipped). The main program is called Black Hole Control, and the process loop that would run in the background is called sequence.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chuck&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 18:44:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2169658#M698282</guid>
      <dc:creator>Chuck60148</dc:creator>
      <dc:date>2012-09-27T18:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1 at Generate User Event</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2169706#M698295</link>
      <description>&lt;P&gt;It looks like you are generating a user event before you create the event.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, nice architecture.&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 19:13:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2169706#M698295</guid>
      <dc:creator>vt92</dc:creator>
      <dc:date>2012-09-27T19:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1 at Generate User Event</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2169710#M698297</link>
      <description>&lt;P&gt;&lt;IMG src="https://ni.lithium.com/ni/attachments/ni/170/698297/1/fixit.PNG" border="0" alt="" title="" align="middle" /&gt;&lt;/P&gt;
&lt;P&gt;I made a slight change to your sequence and the error seemed to go away.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 19:16:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2169710#M698297</guid>
      <dc:creator>vt92</dc:creator>
      <dc:date>2012-09-27T19:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1 at Generate User Event</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2169848#M698325</link>
      <description>&lt;P&gt;Can't believe I missed that. I must need a break from this. Now that the error is gone, what would prevent the event structure from picking up the generated event? I can watch the data flow through the generate event function (it's a little annoying not being able to verify that an actual event is generated), but the event structure never seems to notice.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 21:10:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2169848#M698325</guid>
      <dc:creator>Chuck60148</dc:creator>
      <dc:date>2012-09-27T21:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1 at Generate User Event</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2169860#M698327</link>
      <description>&lt;P&gt;Which event? &amp;nbsp;The code you posted only appears to handle one of the three events you created.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 21:18:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2169860#M698327</guid>
      <dc:creator>Matthew_Kelton</dc:creator>
      <dc:date>2012-09-27T21:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1 at Generate User Event</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2169880#M698331</link>
      <description>&lt;P&gt;The '&amp;lt;StateCtrl&amp;gt;: user event'. I have not implemented the others yet. I want to get this one working first as I consider it to be the most important one.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 21:37:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2169880#M698331</guid>
      <dc:creator>Chuck60148</dc:creator>
      <dc:date>2012-09-27T21:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1 at Generate User Event</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2169882#M698332</link>
      <description>&lt;P&gt;The code you posted has Timer Status setup for a user event. &amp;nbsp;Have you changed this?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 21:40:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2169882#M698332</guid>
      <dc:creator>Matthew_Kelton</dc:creator>
      <dc:date>2012-09-27T21:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1 at Generate User Event</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2170322#M698421</link>
      <description>&lt;P&gt;Yes. I decided that using a reference to the LED indicators would link the indicators more closely to the timers. The StateCtrl &amp;amp; ProgramStop user events are still used. Also, I have not yet coded a generate event function for either of the other 2 user events, I am trying to get the StateCtrl event working first since it is the most important event.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2012 12:21:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2170322#M698421</guid>
      <dc:creator>Chuck60148</dc:creator>
      <dc:date>2012-09-28T12:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1 at Generate User Event</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2170330#M698425</link>
      <description>&lt;P&gt;Can you post the updated code so someone can see if they can reproduce the behavior you're seeing?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2012 12:26:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2170330#M698425</guid>
      <dc:creator>Matthew_Kelton</dc:creator>
      <dc:date>2012-09-28T12:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1 at Generate User Event</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2170582#M698478</link>
      <description>&lt;P&gt;Here is the latest version of the code...&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2012 15:18:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2170582#M698478</guid>
      <dc:creator>Chuck60148</dc:creator>
      <dc:date>2012-09-28T15:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1 at Generate User Event</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2170630#M698487</link>
      <description>&lt;P&gt;I don't see where you are handling the event in your code. &amp;nbsp;You have code that generates the events, but the event structure hasn't had the cases setup for those user events yet.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2012 15:47:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2170630#M698487</guid>
      <dc:creator>Matthew_Kelton</dc:creator>
      <dc:date>2012-09-28T15:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1 at Generate User Event</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2170640#M698489</link>
      <description>&lt;P&gt;Look at the vi called 'Sequence'. I am trying to generate the event in one VI (Black Hole Control) and handle it in another (Sequence).&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2012 15:54:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2170640#M698489</guid>
      <dc:creator>Chuck60148</dc:creator>
      <dc:date>2012-09-28T15:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1 at Generate User Event</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2170746#M698521</link>
      <description>&lt;P&gt;So, I see where you kick off the Sequence VI to run, but you never pass the Event refnum to the VI (Process: Begin).&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2012 17:10:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2170746#M698521</guid>
      <dc:creator>Matthew_Kelton</dc:creator>
      <dc:date>2012-09-28T17:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1 at Generate User Event</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2172754#M698956</link>
      <description>&lt;P&gt;OK, I added a reference item to the valves object and stored the event reference there in the Black Hole Control VI (Image 1a), then I added a register state to the Sequence VI to register the reference with the event structure (Image 2a). I still get no response from the event structure when I generate a user event. The only thing I can think of now is that there may be a timing issue. Could that be the case?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2012 18:41:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-1-at-Generate-User-Event/m-p/2172754#M698956</guid>
      <dc:creator>Chuck60148</dc:creator>
      <dc:date>2012-10-01T18:41:20Z</dc:date>
    </item>
  </channel>
</rss>

