i2dx Posted August 16, 2007 Report Share Posted August 16, 2007 Hi folks, is there any way to set the blink delay of a specific control with a property node? The only way I found to set the blink delay is to change the value in the LV options dialog. But this means also, that the value is applied to ALL blinking controls and, if I compile an exe, I have to put that key into the exe's INI-File ... thanks! CB Quote Link to comment
orko Posted August 16, 2007 Report Share Posted August 16, 2007 QUOTE(i2dx @ Aug 15 2007, 12:22 AM) is there any way to set the blink delay of a specific control with a property node?The only way I found to set the blink delay is to change the value in the LV options dialog. But this means also, that the value is applied to ALL blinking controls and, if I compile an exe, I have to put that key into the exe's INI-File ... I haven't found a way. As far as I know the blink properties are still global and apply to all controls. The only way I've worked around this in the past is to "roll my own" blink subVIs when I want the controls to behave differently from the global options... but that has obvious caveats, so I would like to see what others have done (Xcontrols with additional blink properties perhaps?). Quote Link to comment
LAVA 1.0 Content Posted August 16, 2007 Report Share Posted August 16, 2007 QUOTE(orko @ Aug 15 2007, 11:41 AM) I would like to see what others have done (Xcontrols with additional blink properties perhaps?). I TRIED to create an XControl once, but learned that the blinking is only active when the XControl is running. A possible place to look for inspiration might be Stephen's Scrolling LED XControl. Quote Link to comment
Yair Posted August 18, 2007 Report Share Posted August 18, 2007 You can do it with a seperate process. Here's a quick example I posted to the NI forums once which could use some improvements (like proper naming and icons). You need to have an implementation for each class of control you intend to use. Quote Link to comment
i2dx Posted August 18, 2007 Author Report Share Posted August 18, 2007 thanks a lot but to be honest: QUOTE(yen @ Aug 17 2007, 03:35 PM) You need to have an implementation for each class of control you intend to use. I am lazy, and I am curently running out of time and and and ... so ... I think 1000 ms are just a fine blinking rate at the moment Quote Link to comment
Yair Posted August 19, 2007 Report Share Posted August 19, 2007 Well, you can use it only for some controls and do that the rest with the standard blinking property. Creating an implementation for each class is relatively easy (two VIs, if I remember correctly) and it already supports String, Boolean and Numeric, which would probably cover most basic controls. The main issue with it is that it was only a quick demo (the VIT is called Template.vit, for instance ). Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.