View Single Post
  #2   Spotlight this post!  
Unread 14-02-2009, 15:43
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: Programing buttons in labview

The button behavior in the Get and GetRaw vis is identical. The only difference between Get and GetRaw is that the axis values are scaled to [-1,1] for the Get.

Judging from your description, it sounds like you may be having trouble with the clusters. Both Get.vi and GetRaw.vi output the axes and button values in clusters. The buttons indicator is a cluster (think container) of a number of independent buttons. If you drop a Get (or GetRaw) vi onto your block diagram, then you should be able to get at a single button's value by right clicking on the Button terminal and selecting Cluster, Class & Variant Palette and then selecting the first function (i.e. Unbundle by Name).

Wire the Unbundle by Name to the Buttons output of the Get.vi. By default you should see Button 1 in the Unbundle by Name but you can change that to any button you like (or stretch the Unbundle by Name to have multiple button outputs).

Don't forget to wire the device reference to the Get.vi or GetRaw.vi

Does this help?
Reply With Quote