11-29-2005 10:04 AM
11-29-2005 10:16 AM
11-29-2005 02:29 PM
12-12-2005 08:54 AM
Update: With LV 6.1, I included LabVIEW.ini with blink speed 250ms, as a support file in Application Builder. No effect--the built application had blink speed of 1 sec.
So, any help with this will be appreciated.
Thanks,
::Marty
12-12-2005 09:07 AM
You can't just include the LabVIEW.ini file.
The ini file has the same name as the application (for example, foo.exe will have foo.ini). If the ini file isn't found when you first run the EXE, it will be created. Once it's created, you need to put the line about the blinking speed under the [foo] section, which isn't created by default. So, to make this work, you will need to create your ini file (foo.ini), inside it create a [foo] section and inside that place the line about the speed.
12-12-2005 10:12 AM
You can't just include the LabVIEW.ini file.
The ini file has the same name as the application (for example, foo.exe will have foo.ini). If the ini file isn't found when you first run the EXE, it will be created. Once it's created, you need to put the line about the blinking speed under the [foo] section, which isn't created by default. So, to make this work, you will need to create your ini file (foo.ini), inside it create a [foo] section and inside that place the line about the speed.
***
OK, so if I want to build an application called foo.exe that has my desired blink speed, I create foo.ini, add a [foo] section where the blinkSpeed/whatever key has value 250, then include foo.ini as a support file when I build?
I'll try that. I seem to remember trying similar tricks, but I may have omitted the above. In the past I've been able to modify some combination of foo.ini and LabVIEW.ini, post hoc, so that foo.exe behaves properly. But the main thing is that I want an installer to capture all those details. I don't want to do anything post hoc, manually--just want the .exe to install automatically and run correctly, first time every time.
Thanks,
::Marty
12-12-2005 10:16 AM
12-20-2007 06:43 PM
12-21-2007 04:03 AM
You can do this yourself if you do something along the lines of the example posted here. Note that this was just an example, not something meant to be used as released code. If you do modify and use it, be sure to include the VIT in the build.
Another option (if you have 8.x) is to use an XControl.
12-27-2007 05:43 AM
Two years later.
Tst's original suggestion did work.
I agree with LabBard that blink speed should be a property dynamically settable via the LV diagram. It seems like overkill to jump through the hoop of making an XControl to enable an LED to blink at the non-standard rate. Anyway, the blinkSpeed for the XControl would still not be settable dynamically in that case, would it, but could just be set once for the XControl, just like for a main application? Only time I've made an XControl is in Advanced Architectures class, months ago.
Finally, in my opinion, 1 sec is a bad choice for a standard rate, should be less--I like 1/4 sec, but I might be able to live with 1/2 sec or something else.
Thanks for feedback,
--Marty