Products for USB Sensing and Control
It is currently Thu Jun 20, 2013 3:16 am

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: combining attachevents
PostPosted: Mon Jul 12, 2010 4:10 pm 
Offline
Phidgetly

Joined: Tue Jul 06, 2010 7:04 am
Posts: 43
I am wondering if you can combine phidget texdtlcd, phidget iterfacekit and phidget temperature sensor attach events into 1 sub

Private Sub Attach_all(ByVal sender As Object, ByVal e As Phidgets.Events.AttachEventArgs) Handles phidgetLCD.Attach, phidgetifk.attach, phidgettemp.attach
phidgetLCD.waitForAttachment()
phidgetLCD.rows(0).DisplayString = ""
phidgetLCD.rows(1).DisplayString = ""
phidgetLCD.rows(0).DisplayString = "Please Wait"
lcd_backlight_checkbox.Enabled = True
lcd_contrast_trackbar.Enabled = True
lcd_contrast_trackbar.SetRange(0, 255)
lcd_contrast_trackbar.Value = 130
phidgetLCD.Backlight = True
lcd_backlight_checkbox.Checked = phidgetLCD.Backlight
'etc
' etc
end sub

As I need to combine them as I am using phidget textlcd , phidget interfacekit and phidget temperature sensor 4 input and combining them will give me a function that I require


Top
 Profile Send private message  
 
PostPosted: Tue Jul 13, 2010 8:42 am 
Offline
Lead Developer
User avatar

Joined: Mon Jun 20, 2005 8:46 am
Posts: 2359
Location: Canada
Don't call waitForAttachment in an attach event - you'll deadlock your program.

-Patrick


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group