Creating .ini file
How can i create .ini file.Iam having a VI and I would like to configure by calling from .ini file.pls tell me how can i create?
Hi
There are a set of configuration file VIs on the function palette under "File I/O".
For an example, on the menu bar go to Help >> Find Examples ... and search for "configuration".
Good luck
Neil
Similar Messages
-
Why vi dll creates ini file on its own?
Hello,
I have built my LabVIEW project as shared library (dll).
My system looks like this: main exe file loads dll, and this dll loads VI dll.
With LabVIEW 2011 it was ok, but when I switched to 2013 my VI dll started to write into main exe ini file.
When dll is loaded those lines appears in main exe ini file:
[LVRT]
RTTarget.ApplicationPath=C:\Users\user\Documents\LabVIEW Data\Remote Development\startup.rtexe
RTTarget.VIPath=C:\Users\user\Documents\LabVIEW Data\Remote Development
Does someone know what causes this and how to turn it off?I got the same thing when I built an exe. I have a custom INI file, it has the following entries:
[Oscilloscope 2013]
server.app.propertiesEnabled=True
server.tcp.serviceName="My Computer/VI Server"
server.vi.propertiesEnabled=True
WebServer.TcpAccess="c+*"
WebServer.ViAccess="+*"
DebugServerEnabled=False
DebugServerWaitOnLaunch=True
FPFont="Segoe UI" 15
appFont="Segoe UI" 15
dialogFont="Segoe UI" 15
systemFont="Segoe UI" 15
BDFont="Segoe UI" 15
The only dll it calls is lvanlys.dll. After running the EXE the following are appending to the INI file
RTTarget.ApplicationPath=C:\Users\XXX\Documents\LabVIEW Data\Remote Development\startup.rtexe
RTTarget.VIPath=C:\Users\XXX\Documents\LabVIEW Data\Remote Development
Regards,
mcduff -
How to create and edit a .ini file using java
Hi All...
Pls help me in creating and editing an .ini file using java...
thanks in advance
Regards,
sathyaLet's assume the ini file is a mapping type storage (key=value) so lets use Properties object. (works with java 1.4 & up)
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;
public class Test {
private static Properties props;
public static void main(String[] args) throws IOException {
File file = new File("test.ini");//This is out ini file
props = new Properties();//Create the properties object
read(file);//Read the ini file
//Once we've populated the Properties object. set/add a property using the setProperty() method.
props.setProperty("testing", "value");
write(file);//Write to ini file
public static void read(File file) throws IOException {
FileInputStream fis = new FileInputStream(file);//Create a FileInputStream
props.load(fis);//load the ini to the Properties file
fis.close();//close
public static void write(File file) throws IOException {
FileOutputStream fos = new FileOutputStream(file);//Create a FileOutputStream
props.store(fos, "");//write the Properties object values to our ini file
fos.close();//close
} -
I am new to adobe output server. Am getting " [700]** Message Msg700 not in .ini file **, [397]** Message Msg397 not in .ini file **, [125]** Message Msg125 not in .ini file ** " while creating pdf file. Please help on this issue.
Is this a new form, or one that was working before ? Has something changed on the system ?
Those errors dont really mean anything, so need to understand more around what is happening - a snippet from the log file just prior to the errors to see what is going on ? -
How to create a comment in config.ini file
Does anyone know how to create a comment line in the Essbase config.ini file (server config file, not client, if they are different)?I know that for ESSCMD it is :Calcs it is /*but not sure of syntax for commenting config files. Thanks in advance!
The comment character for the essbase.cfg file (I assume that is what you are talking about) is a semi-colon (;)Regards,Jade-----------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]
-
What options can be in a labview created .exe's .ini file?
Every executable created by labview has a .ini file associated with it. What options can I enter into this file?. I was told that entering a section with the name of the executable and HideMainWindow=True would stop 2 entries being made in the system tray. I either didn't understand or it doesn't work. I am wondering where can I find a documented list of entries that can be made in the .ini file?
Thanks in advance. Any help would be appreciated.
BobFor the keys to work they need to be in a section that has the same name as the executable. For instance, the program MyApp.exe might have a MyApp.ini file containing something like:
[MyApp]
hideRootWindow=true
Mike...
PS: it also helps of you have the name of the key right...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
How to create table from .ini file
Hi,
The file *.ini generates a Multicolumn Listbox where is indicated a number (variable) of tables with them characteristics (row and column) as in the picture below.
I need to find the way to create automatically, on word file, the tables as indicated in the *.ini file. Do you think that it could be possible? That you know, exist a Macro to do this?
Best regards
Attachments:
Multicolunms .png 8 KBAs Taki said above, to do this you need to use the Report Generation Toolkit. This will allow you to generate tables in a word document. Look for the examples in the LabVIEW Help for a rough idea of how to use the toolkit and if you have any specific questions after that then feel free to post them here.
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets -
I just recently purchased a Tecra M7, but the system does not come with recovery media, just a Recovery partition and a Recovery Disk creator.
However, when I try to run the Recovery Disc Creator, it replies with "Error loading INI file: C:\Program Files\Sonic\RecordNow!\RDC_info.ini".
I opened this file to try to determine the error, but the contents simply refer to a file named CDDVD.ini. I have looked all over the Hard Drive, even mounted the Recovery Partition, but could not find this file.
Searching on Google, I found that this file regularly goes missing, and that without it, the recovery media cannot be created. One person reported Tech Support emailing him the file, another was emailed by another user.
In both cases, the user was immediately able to make the disks. In any case, it seems to be a standard file, referring to "Add_info.ini" (Application and Drivers Disks) and "Rec_info.ini" (OS Recovery Disk), fairly consistent and unchanging through all systems that use this method to build disks.
Please, could someone email me theirs or post it here so we can all see?
If/when I receive this file, once I determine it works I will post it here.
DanielI have talked to Tech Support, and the Tecra M7 w/ XP Tablet Edition does not have Recovery Disks available yet. I was told to check back in a couple of weeks.
-
When creating SCCM boot.wim what modifies the winpeshl.ini file?
I need to add a command to run before tsbootshell.exe in the winpeshl.ini. Other than cracking the boot wim and manually modifiying winpeshl.ini how can it get Configmgr to do this automaticlly? The post for putting it in the unattend does not work for me
because tsbootshell.exe has already run at that point so the only place i can make this modification is in winpeshl.ini.
Thanks,
UlyI am in a similar situation and wanted to add a sleep.exe command to winpeshl.ini as mentioned in this thread:
http://social.technet.microsoft.com/Forums/en-US/configmgrosd/thread/a60feb9b-d968-4a2c-9449-773c61bcdf58/. The exact steps I used are listed there.
I discovered that you can create a customized winpeshl.ini file in this location and it will be automatically be integrated into the final boot image when you use SCCM to update or create new boot images. I think you're trying to do exactly what I was trying
to do and this should do the trick.
[Program Files]\Microsoft Configuration Manager\OSD\bin\i386\winpeshl.ini -
How to create the ini file for java programms
hi all,
I have one problem that is ...
In my project I am using the JDBC connection ...
in this I am connecting different connections (means differenet usernames and passwords)...
for this evrey time I have to change the username and password in the
hardcode ...
I think that some ini file are there in java ...
So if anyone knows about use of ini files in java please
send me..
thanks........In java they are called properties files.
Look at java.util.Properties which provides methods for reading, writing, etc. -
How do I hide Windows .ini files in a dock folder?
Background: On my MacBook Pro, I divided my hard drive into 3 partitions - one for Mac OS X, one for Windows 7, and one for common storage that I use to transfer my files between OS's.
With this setup, I set my Dropbox folder on the "common storage" partition, and created a Dropbox dock folder for easy access. This isn't really a major problem, but it simply annoys me. Since Windows also has access to the Dropbox folder, it creates a desktop.ini file that shows up whenever I use the Dropbox dock shortcut. I tried editing it through Finder, but it's already hidden. It only shows up in the dock folder.
Is there a way to hide this .ini file?What do you mean deleted from the user's list? Do you mean removed permissions? If so, right click the folder and select get info. Scroll down to sharing and permissions. Click the lock and put in your password. Then click the + and add the user back.
Otherwise, more details... -
Hello Experts,
I follow the flightbooking tutorial to create a Material application to get material list. I can start the agentry server but when I connect to SAP server and get data, I face below issue
Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER
I check the parameters name in SAP Agentry Config panel, all are correct. Why cannt it get the data. Do I have to add anything in javaBE.ini? Please help me. Thank you very much.
My javaBE
[HOST]
server=be1.vdc.csc.com
APPNAME=ZCH_MATERIALLIST
[CLIENT_NUM]
CLIENT=800
[SYSTEM_NUM]
SYSNUM=01
[LOGON_METHOD]
; USER_AUTH if standard UID/Password authentication is used
; USER_AUTH_GLOBAL if pooled connections using single UID/Password is used
; USER_AUTH_GROUP if UID/Password authentication with SAP Message Server
; (load balancing) is used
LOGON_METHOD=USER_AUTH
[GLOBAL_LOGON]
; referenced when LOGON_METHOD=USER_AUTH_GLOBAL
; uses a pool of connections to the SAP backend all utilizing a single
; UID/password
UID=
UPASSWORD=
SHAREDCONNECTION=0
GET_PERSONNEL_INFO=
[SERVICE_LOGON]
ENABLED=true
UID=hngu3
UPASSWORD=xxxxxxx
UPASSWORDENCODED=false
[GROUP_LOGON]
; referenced when LOGON_METHOD=USER_AUTH_GROUP
; individual user authentication using an SAP Message Server which distributes
; client connections among a "group" of SAP application servers based on load
; balancing criteria
; host name or IP address of SAP Message Server
MESSAGE_SERVER=
GROUP_NAME=
SYSTEM_ID=
CLIENT=
[LANGUAGE]
LANG=EN
[LOGGING]
Level=4
[REQUIRED_BAPI_WRAPPER]
com.syclo.sap.bapi.LoginCheckBAPI=/SYCLO/CORE_SUSR_LOGIN_CHECK
com.syclo.sap.bapi.RemoteUserCreateBAPI=/SYCLO/CORE_MDW_SESSION1_CRT
com.syclo.sap.bapi.RemoteParameterGetBAPI=/SYCLO/CORE_MDW_PARAMETER_GET
com.syclo.sap.bapi.SystemInfoBAPI=/SYCLO/CORE_SYSTINFO_GET
com.syclo.sap.bapi.ChangePasswordBAPI=/SYCLO/CORE_SUSR_CHANGE_PASSWD
com.syclo.sap.bapi.CTConfirmationBAPI=/SYCLO/CORE_OUTB_MSG_STAT_UPD
com.syclo.sap.bapi.DTBAPI=/SYCLO/CORE_DT_GET
com.syclo.sap.bapi.GetEmployeeDataBAPI=/SYCLO/HR_EMPLOYEE_DATA_GET
com.syclo.sap.bapi.GetUserDetailBAPI=/SYCLO/CORE_USER_GET_DETAIL
com.syclo.sap.bapi.GetUserProfileDataBAPI=/SYCLO/CORE_USER_PROFILE_GET
com.syclo.sap.bapi.PushStatusUpdateBAPI=/SYCLO/CORE_PUSH_STAT_UPD
com.syclo.sap.bapi.RemoteObjectCreateBAPI=/SYCLO/CORE_MDW_USR_OBJ_CRT
com.syclo.sap.bapi.RemoteObjectDeleteBAPI=/SYCLO/CORE_MDW_USR_OBJ_DEL
com.syclo.sap.bapi.RemoteObjectGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteObjectUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.RemoteReferenceCreateBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_CRT
com.syclo.sap.bapi.RemoteReferenceDeleteBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_DEL
com.syclo.sap.bapi.RemoteReferenceGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteReferenceUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.RemoteSessionDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.TransactionCommitBAPI=WFD_TRANSACTION_COMMIT
com.syclo.sap.bapi.SignatureCaptureBAPI=/SYCLO/CS_DOBDSDOCUMENT_CRTHi Tahir, please help me check the log below
Agentry Runtime Worker Thread###throwExceptionToClient::begin |
Agentry Runtime Worker Thread###throwExceptionToClient::com.syclo.sap.material.steplet.MaterialSteplet::throwExceptionToClient::397::MaterialSteplet - Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER |
Agentry Runtime Worker Thread###Exception: 17:15:35 06/17/2014 : 20 (Agentry3), Java Business Logic Error (com.syclo.agentry.BusinessLogicException: MaterialSteplet - Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER), |
Agentry Runtime Worker Thread###loggedOut::begin |
Agentry Runtime Worker Thread###HNGU3: SESSION END |
Agentry Runtime Worker Thread###BAPI::begin |
Agentry Runtime Worker Thread###create::nulled repository::created new repository |
Agentry Runtime Worker Thread###create::/SYCLO/CORE_MDW_SESSION1_DEL Connection ID: com.sap.mw.jco.JCO$Client@2656ed99 |
Agentry Runtime Worker Thread###create::Function /SYCLO/CORE_MDW_SESSION1_DEL created | -
.INI files vs .TXT files for changing default values in a .EXE?
Hi,
I have a two-part question related to updating the default values of controls in an executable:
I am creating a LabVIEW executable for installation on two different production-floor computers. I need to be able to change the default values of the front panel controls (as I would do with the “make this value default” command during development). From reading prior posts, I understand that I could use the “Write Configuration Settings File.vi” and “Read Configuration Settings File.vi” to generate a .INI file that would be read by the .EXE and would establish the desired values of the controls. However when I took a look at the block diagrams for those configuration .VIs, they don’t appear (to me) to be any easier to use than just reading values from a spreadsheet file. IE: Instead of using these configuration files and a .INI file, could I not instead just read values from a .TXT file that contains the desired values? I’ve never used a .INI file before, or had to worry about “keys” and “sections,” so from my (perhaps naïve) perspective, the .INI method seems less easy to use. Is there any advantage to the .INI format?
Regardless of whether I use the .INI file or a .TXT file, I have this additional problem: One of the things that changes when I install my .EXE file on a new computer is the COM port numbers used by two serial devices. (On my development computer, the two serial devices use COM5 and COM6, whereas on the two production-flood computers, the COM ports will almost certainly be different). I suppose I could use the Device Manager on the production-floor computers to change the COM ports to be the same as those on my development computer, but I’d prefer to be able to (again) change the default value of the COM ports in my .EXE. However, I’m not sure how to do that. The configuration VIs, have options for reading / writing Booleans, strings, paths, and numeric, but not, (so far as I can tell) for a VISA class.
Any thoughts / suggestions are welcome. Thanks.
Solved!
Go to Solution.Dan_the_Clam wrote:
Thanks for your reply, Yamaeda,
Great that I can use a string to open a VISA session - I had no idea. I'll try that.
And - ah - you are right about the .INI files. I just did an experiment in which I re-ordered the sections and randomly changed which letters were capitalized in the key values, and the "read configuration settings.VI" still read the file correctly. Thanks for that.
Unfortunately, in my existing code, the controls on the block-diagram aren't all co-located together; they are scattered throughout the block diagram - some of them in case structures and loops. I suppose that means I'll have to move them all to the left side of the block diagram, route them to these "Write Key.VIs" and then wire them up into the cases and loops with fairly long wires. It's just a hassle, and is going to make my block diagram more complicated. Well, I suppose that's how one learns...
Thanks again.
dan
Assuming you have a state machine and an Init state it's a fair use of Local Variables to update controls from the ini-file. The same goes for saving the values.
/Y
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV -
Cretaion of UTL.File in Oracle 10G and directory entry in Ora.ini file
Hi,
Kindly advise me if:
(!) we can create a directory and log file in this directory on some other server instead of creating it in the file system of the server where the Oracle 10G database is residing?
Created directory in Oracle using create or replace directory command.
My package will be creating a log file using UTL.File in the above directory.
I want to create this directory on some other server to save my log file/s. Is this possible?
(2) Also, let me know in Oracle 10G, do we need to add the directory entry (mention above in #1) in the Ora.ini file on the Oracle 10G server?Hi,
1) utl_dir are different from directory object
2) you cannot create directory on remote server and there is no need to write directory entry on oracle init file (not ini..)
Acr -
How to create PDF file from MX7600 scanner in Windows 8.1
I just changed to a new desktop PC that is running Windows 8.1. I downloaded the drivers from the Canon website for Windows 8.1, and I can not find the function to create a PDF file of the scanned document, like I could in Windows 7. How can I created a PDF file in the new driver software?
Solved!
Go to Solution.Hi alove5230,
Ini addition to the drivers, you will need to download the MP Navigator software for the printer to create PDF files. Please click here to go to the Drivers and Software page for the PIXMA MX7600. Once on the initial download page for your printer, please do the following:
1. Verify that the operating system detected in the "OPERATING SYSTEM" drop-down menu is correct, and if it is not, please click the drop-down menu to select your operating system.
2. Next, please click on the red arrow next to the "SOFTWARE" section and click on the MP NAVIGATOR file. When you do, a red DOWNLOAD button will appear. Please click on the checkbox below the DOWNLOAD button, then click the red DOWNLOAD button to begin the download. The time for the download process may vary depending on the speed of your Internet connection and the size of the file being downloaded.
Once the file is downloaded, please double-click on it to install the program on your computer.
Hope this helps!
This didn't answer your question or issue? Please call or email us at one of the methods on the Contact Us page for further assistance.
Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.
Maybe you are looking for
-
Way to extend Satellite Pro R850 memory
I was just wondering, since i have a lot of stuff in my laptop; is there a way, like a card, to extend my laptop's memory? As i noticed a big slot inside my laptop on the lower left side, so is there something for a memory extension i can put in ther
-
A very good friend of mine dropped her iphone into water and now it is not working.Her husband recently passed away and text messages from him and from well wishers after his decease are feared lost. Is there any way to retrieve them? I suggested con
-
Can I watch Blu-ray discs on my Satellite C75-A-13W?
Hi Can I watch BR discs on Satellite C75-A-13W? According Users manuals document I should be able to use BR discs on this machine. Bye Darkwing Message was edited: posting has been translated
-
Hi all: How can i run the program "RSR_GEN_DIRECT_ALL_QUERIES" in planning fuction? hope for your help. thanks.
-
i am trying to unlock the iphone 4, aftermanual backup on the computer, i am trying to restore the backup, a message is showing up " itunes could not restore the iphone ' .....iphone ' because not enough free space is available on the iphone" but the