Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

vb6 flash led

Hi
I am using VB6 ansd measurement studio.
I want to flash a led indicator (easy in labview with the property) but the property is missing in vb6....

Thanks a lot
0 Kudos
Message 1 of 3
(7,446 Views)
Hi kikou,

If you place a Timer on your form, you can toggle the LED in the Timer callback. For example, if the name of your Timer is Timer1, and the name of your LED is CWButton1, your Timer callback will look something like this:            

    Private Sub Timer1_Timer()        
        CWButton1.Value = Not CWButton1.Value    
    End Sub

The LED will toggle at the rate of the Timer interval you set for your Timer. For example, if you set the Timer interval to 1000, the LED will toggle every second.


Message Edited by Manooch_H on 07-24-2008 06:22 PM
Manooch H.
National Instruments
0 Kudos
Message 2 of 3
(7,429 Views)
 

Hi,

I think the Flash/VB article on
http://www.adobe.com/devnet/flash/articles/flash_vb.pdf may be helpful in this discussion.

This popular white paper is written by some engineering folks from our organization Mindfire Solutions (
http://www.mindfiresolutions.com).

I hope you find it useful!

Cheers,
Byapti



0 Kudos
Message 3 of 3
(7,176 Views)