<?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: BUG: Register Event Callback in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/607610#M282913</link>
    <description>Or basically any event that has a ? behind it.&lt;BR /&gt;
&lt;BR /&gt;
They all crash.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Wiebe.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Wed, 07 Nov 2007 12:10:03 GMT</pubDate>
    <dc:creator>Wiebe@CARYA</dc:creator>
    <dc:date>2007-11-07T12:10:03Z</dc:date>
    <item>
      <title>BUG: Register Event Callback</title>
      <link>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/579521#M271489</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
The Register Event Callback doesn't seem to work anymore, when a native&lt;BR /&gt;
LabVIEW control is wired, no matter what event is choosen.&lt;BR /&gt;
&lt;BR /&gt;
I know that the Register Event Callback isn't ment to do this, but it is&lt;BR /&gt;
very conveinient in some cases.&lt;BR /&gt;
&lt;BR /&gt;
Also, you can wire everything like expected, but when you run the code,&lt;BR /&gt;
LabVIEW crashes when the event is triggered.&lt;BR /&gt;
&lt;BR /&gt;
Tested this in LabVIEW 8.2.1.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Wiebe.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Sep 2007 12:40:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/579521#M271489</guid>
      <dc:creator>Wiebe@CARYA</dc:creator>
      <dc:date>2007-09-13T12:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: Register Event Callback</title>
      <link>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/585059#M273835</link>
      <description>&lt;DIV&gt;Can you provide us with an example that reproduces this behavior? What version of LabVIEW do you have?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Juan Galindo&lt;/DIV&gt;
&lt;DIV&gt;Applications Engineering&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Sep 2007 19:10:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/585059#M273835</guid>
      <dc:creator>Juan G</dc:creator>
      <dc:date>2007-09-24T19:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: Register Event Callback</title>
      <link>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/586251#M274346</link>
      <description>Posting examples is a bit time consuming for me (since I can't attach VI's&lt;BR /&gt;
anymore in Outlook, and LV8.2.1 is on another PC), but I'll see what I can&lt;BR /&gt;
do later on.&lt;BR /&gt;
&lt;BR /&gt;
I'm using LabVIEW 8.2.1 (did mention that in the original thread). it used&lt;BR /&gt;
to work in 7.1.&lt;BR /&gt;
&lt;BR /&gt;
Reproducing it is very simple:&lt;BR /&gt;
&lt;BR /&gt;
Put a Register Event Callback node on the diagram (in the ActiveX palette).&lt;BR /&gt;
Wire a control reference to it.&lt;BR /&gt;
Select an event.&lt;BR /&gt;
Right click the Register Event Callback node, and select "Create Callback&lt;BR /&gt;
VI".&lt;BR /&gt;
Run the VI, and LabVIEW will crash when the event triggers.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Why this was usefull might need some clearification. Let's say you make a&lt;BR /&gt;
key filter. So, if you press "q", the computer beeps (or does something&lt;BR /&gt;
usefull). With the Register Event Callback node, you can attach this&lt;BR /&gt;
behaviour to any number of controls. The greatest benifit over an event&lt;BR /&gt;
structure in a reentrant sub vi that handles the filtering (besides it's&lt;BR /&gt;
simplicity), is that the callback vi stops when the main VI stops. With any&lt;BR /&gt;
other construction, you need to go though great length to stop the filtering&lt;BR /&gt;
vi. Hope that is clear.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Wiebe.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Sep 2007 15:40:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/586251#M274346</guid>
      <dc:creator>Wiebe@CARYA</dc:creator>
      <dc:date>2007-09-26T15:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: Register Event Callback</title>
      <link>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/606281#M282358</link>
      <description>Juan, were you able to reproduce this from Wiebe's steps?&amp;nbsp; Please post back with the results of your test and CAR number if you could reproduce.&lt;BR /&gt;&lt;BR /&gt;thanks-&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Nov 2007 16:14:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/606281#M282358</guid>
      <dc:creator>Travis_M.</dc:creator>
      <dc:date>2007-11-05T16:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: Register Event Callback</title>
      <link>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/606757#M282540</link>
      <description>&lt;P class="MsoNormal" style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face="Calibri" color="#000000"&gt;Hello &lt;SPAN class="noindex"&gt;Wiebe,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="noindex"&gt;I created some VIs to reproduce the behavior you described but LabVIEW 8.2.1 did not crash. The VIs I have created ran correctly. Here is the following code I have created using Register Event Callback nodes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;National Instruments recommends using the Event Structure for handling LabVIEW user interface events. However, you can use a VI as a callback VI to handle events from front panel controls when the controls generate the registered events. The callback VI should run properly when an event occurs. &lt;BR /&gt;&lt;BR /&gt;Please let me know if you have problems loading the Vis attached.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Juan Galindo&lt;BR /&gt;Applications Engineering&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Nov 2007 06:01:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/606757#M282540</guid>
      <dc:creator>Juan G</dc:creator>
      <dc:date>2007-11-06T06:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: Register Event Callback</title>
      <link>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/607596#M282907</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for looking into this. You've got me puzzled for a while. For a few&lt;BR /&gt;
minutes, I couldn't reproduce it myself.&lt;BR /&gt;
&lt;BR /&gt;
The crash happens for the event I needed: Key Down?.&lt;BR /&gt;
&lt;BR /&gt;
I know I can use the event structure, but the event structure has a few&lt;BR /&gt;
downside. Like I explained earlier.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Wiebe.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2007 11:40:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/607596#M282907</guid>
      <dc:creator>Wiebe@CARYA</dc:creator>
      <dc:date>2007-11-07T11:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: Register Event Callback</title>
      <link>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/607610#M282913</link>
      <description>Or basically any event that has a ? behind it.&lt;BR /&gt;
&lt;BR /&gt;
They all crash.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Wiebe.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2007 12:10:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/607610#M282913</guid>
      <dc:creator>Wiebe@CARYA</dc:creator>
      <dc:date>2007-11-07T12:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: Register Event Callback</title>
      <link>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/608787#M283365</link>
      <description>&lt;DIV&gt;Hello Wiebe,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I tried a couple of events with question mark (?) and they did not crash. Please run the following vi and tells me if it runs correctly in your PC. &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Regards, &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Juan Galindo&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Nov 2007 00:46:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/608787#M283365</guid>
      <dc:creator>Juan G</dc:creator>
      <dc:date>2007-11-09T00:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: Register Event Callback</title>
      <link>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/610373#M283930</link>
      <description>The code crashes when the event is triggered. In "Event Callback VI.vi", the&lt;BR /&gt;
event can never be triggered, because the vi stops immediately.&lt;BR /&gt;
&lt;BR /&gt;
Put a Wait of 800000 ms in the diagram, so the Vi doesn't stop ( a while&lt;BR /&gt;
loop is fine too). Then tigger the event by selecting it, and pressing a&lt;BR /&gt;
key.&lt;BR /&gt;
&lt;BR /&gt;
Hope that does the trick.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Wiebe.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Nov 2007 10:10:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/610373#M283930</guid>
      <dc:creator>Wiebe@CARYA</dc:creator>
      <dc:date>2007-11-13T10:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: Register Event Callback</title>
      <link>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/611372#M284279</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I was able to reproduce the issue for the Mouse Down? and Key Down? events.&amp;nbsp; This was reported to R&amp;amp;D (# 4FD9MKK4) for further investigation.&amp;nbsp; Thanks for the feedback!&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Nov 2007 16:58:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/BUG-Register-Event-Callback/m-p/611372#M284279</guid>
      <dc:creator>JamesR</dc:creator>
      <dc:date>2007-11-14T16:58:28Z</dc:date>
    </item>
  </channel>
</rss>

