Noise DC value of the ini file values

Hello

I am trying to build a generator of signals (sine, triangle, sawtooth, square random noise, DC). I managed to get the job of waveform using the signal generator of NOR built based on VI. but I want to add the DC case that I managed to do. but I want the values (magnitude and frequency) to be in an ini file. My idea is manual sets the values in the file, once I run the vi and select the case of DC noise, it should read the file values and the data output and once I have stop, it records the values of dc before returning.

So, I'm stuck trying to figure how to do this. I hope that I was clear enough. I don't have a code to view since I haven't started yet coding on this part. Help, please.

Clearly enough explained.

Take a look at the screw configuration file, found in e/s from file > Config File live. There also many examples n the community, as well as in the Finder of the example, illustrating the use of these. A good starting point is the sample Configuration settings file write example Finder, and reading Configuration settings file.

Your .ini file will look something like this, once created:

[DC noise settings]

Amplitude = 1.234567

Frequency = 8.901234

This is equivalent to:

[Name of section]

Key 1 = value

Button 2 = value

When asked to read a specific key in a certain section, VI only through the file for the named section, and then search for they key the name you provided it. Remember, you will need to know what type of data is when you read back.

You can use VI writing to modify specific keys in specific sections as soon as you close the file.

This is one of a multitude of methods, you can use to do this, but are probably the simplest.

Tags: NI Software

Similar Questions

  • read and sort the values present in the .ini file

    Hi all

    I have an .ini file in which a set of modules with that execution order is mentioned. I want to get all these values sorted in a table, so that I can proceed with the execution of each one in the order given. The list of the module in the .ini file looks like this:

    .

    Here, the numbers represent the order of execution of the module.

    I should get output as a table with the following values:

    1 MNO

    DEF 2

    3 STU

    4 PQR

    5 GHEE

    6 VWZ

    ABC 7

    8 JKL

    I don't know about the configuration data and reading key live but as the list of modules is huge I don't know how to write efficient code for this. Any suggestions are welcome.

    Thank you.

    The excerpt below should be very close to what you want.

  • Best practices for the .ini file, reading

    Hello LabViewers

    I have a pretty big application that uses a lot of communication material of various devices. I created an executable file, because the software runs on multiple sites. Some settings are currently hardcoded, others I put in a file .ini, such as the focus of the camera. The thought process was that this kind of parameters may vary from one place to another and can be defined by a user in the .ini file.

    I would now like to extend the application of the possibility of using two different versions of the device hardware key (an atomic Force Microscope). I think it makes sense to do so using two versions of the .ini file. I intend to create two different .ini files and a trained user there could still adjust settings, such as the focus of the camera, if necessary. The other settings, it can not touch. I also EMI to force the user to select an .ini to start the executable file using a dialog box file, unlike now where the ini (only) file is automatically read in. If no .ini file is specified, then the application would stop. This use of the .ini file has a meaning?

    My real question now solves on how to manage playback in the sector of .ini file. My estimate is that between 20-30 settings will be stored in the .ini file, I see two possibilities, but I don't know what the best choice or if im missing a third

    (1) (current solution) I created a vi in reading where I write all the .ini values to the global variables of the project. All other read only VI the value of global variables (no other writing) ommit competitive situations

    (2) I have pass the path to the .ini file in the subVIs and read the values in the .ini file if necessary. I can open them read-only.

    What is the best practice? What is more scalable? Advantages/disadvantages?

    Thank you very much

    1. I recommend just using a configuration file.  You have just a key to say what type of device is actually used.  This will make things easier on the user, because they will not have to keep selecting the right file.

    2. I use the globals.  There is no need to constantly open, get values and close a file when it is the same everywhere.  And since it's just a moment read at first, globals are perfect for this.

  • using the .ini file created by EXE

    First of all I would like to say that I have a thorough knowledge of the .ini files and the need for them.  My question is related specifically to the .ini file that is created with the executable.  I searched the forum but have not found any instance of my question specifically.  After installation, the .exe and .ini are placed in my working directory in Program Files, which I expected.  The .ini file that is created is attached.

    Now, I would like to point to a different .ini that stores control settings.  I did it in the App generator under Advanced > Use Custom Config File.  That's fine and dandy, but the network, web, settings etc that have been created in the original .ini does not get included in my new .ini.  If my option is to use an .ini file separated with my control as well as created by the .exe parameters.  This seems redundant.

    My question is: does nothing my executable with the .ini file that is created when it starts to run?  I'd be OK NOT to have attached items if I wanted to point to a custom .ini file?  Why create an .ini with these specific settings file if the .exe does nothing with them?

    The only article I found is this one

    http://digital.NI.com/public.nsf/allkb/5467F7D7895835C186256FAF00600A21?OpenDocument

    but it does not explain what the .exe is done with it, if anything.  I guess you have a total control over the .ini and there is nothing "automatic / backstage" going on here.

    Thanks in advance for your help.

    Why remind you the application builder to a custom INI file if you are going to have to read the chips inside manually anyway?  The reason to use a custom within the app Builder INI file is so that you can include specific parameters of execution (VI, access list server, port etc.) which are different from the settings using the LabVIEW development environment.

    You need not key in the INI file for your run-time application (as evidenced by the fact that if you delete the INI file, your exe will still works, creating a new INI file with default values).  If you leave the defaults, the application adds in the first leg in any case.

    You can store your own data in the same INI file used by the executable file; just put the keys in a different section.  LabVIEW Config File format INI files screws slightly differently (for example adding spaces around the = sign), but I didn't know it causes problems.

  • default setting of the entry in the ini file?

    What, in v2011, is the default setting in the ini file AllowMultipleInstances value? I know this isn't a field normally included in the generated ini file when an exe is built, I wonder what the value is default? I've added in the ini file, set to False on a machine, I try to solve problems which has a launch program so slow that operators often go back and try and start again, which results in two instances, only that works properly.

    Test with any simple program, it seems that the default value is false, as usual.

    Maybe your executable is so heavy during the loading time is not "recognizable" a later instance for a long time?

    In this case, you can write a slight stub program that will be launched by the user instead of the main.

    The heel should run at hand via a file cmd or SystemExec; It would give fast feedback to the user; It should stay for enough time to leave the main appear, then stop itself.

  • Why can't I just copy a profile to another system in the directory profiles and modified the ini file

    My main system crashed. I have a copy of the profile. When I move a copy of the profile in the profiles folder and edit the ini file to use the new name, I get a message that there is an instance of thunderbird running and I need to shut it down. I don't see any instance of thunderbird anywhere in the Task Manager. It happens just for me the fact that I am also in firefox may be the cause of the problem to a running instance. I'm under V31.7.0

    I tried to simply move the mail directory in the existing profile. The thing is that I don't see the old messages. I can see all of the subfolders of the Inbox on the left but not messages in the right pain. I can see new messages, but it's all in the Inbox and not filtered to the subfolder.

    I tried to activate the function of multiple profile but that doesn't seem to work.

    MY BAD
    It seems that I had something that was bad in the profile. I got the profile from a backup and now Thunderbird works fine.

    Sorry that I missed the problem earlier.

  • Place the ini file in a specific location when the application generating

    Hello

    I have a little problem.  I have an ini file that I use to store some settings.  Lets call this app.ini file.  When I build the Application.exe, it puts this file in the data directory.  I was hoping that it would be at a higher level and be located in the same directory as Application.exe is (otherwise it will not read the file correctly.)  Looked at the settings of the Source file in the list of categories in the Properties window for the construction and all the 'Identical to the appellant' Destination, but he did not where I wanted.  I would really like this file to a directory higher when I do my build so that my application to read correctly.  Any suggestions?

    I use this executable then when I do my Installer and the problem just spreads here also, not good.

    One way to solve the problem:

    (1) in the build Properties window, select Destinations and create a new destination. Select the same directory where the exe file will be stored as 'Path of Destination'

    (2) assign this destination in the .ini file.

    Let me know if it works

    Marco

  • How to write data from the INI file for the control of the ring

    Hai,

    I need to write the data read from the INI file to a control of the RING. Doing this operation using variants I get the error.

    I will be happy if someone help me. I have attached the file special INI and VI.


  • can you tell me what to type in the search to bring up all the ini files?

    original title: question on files

    If someone could tell me what to type in the search to bring up all the ini files, it would be great.

    sandwichsam wrote:

    If someone could tell me what to type in the search to bring up all the ini files, it would be great.

    Have you tried searching for "*.ini?

    Bruce Chambers

    Help us help you:
    http://www.CatB.org/~ESR/FAQs/smart-questions.html

    http://support.Microsoft.com/default.aspx/KB/555375

    They who can give up liberty to obtain a little temporary safety deserve neither liberty nor safety. ~ Benjamin Franklin

    A lot of people could die rather that thinking; in fact, most do. ~ Bertrand Russell

    The philosopher never killed the priests, while the priest killed a large number of philosophers.
    ~ Denis Diderot

  • value/label pairs in control of the ring of the .ini file

    Hello

    Could someone tell me please to functions that will allow me to write the values to the control ring set in an ini file? I am able to read my ini file, but I don't know how to update the values of control ring with the sections. A little help please.

    Thank you!

    Help is here using InsertListitem, ReplaceListitem... should be what you're looking for

  • problem updating the ini file ini file

    I get the ip address of the user's input and to replace the old IP in the .ini to the last ip address file but the problem is when a user enter the IP and I write it in my ini file it does not at once, but if I do it twise in calling the same function of my command button twise then my ini file is updated , it is the strage iniwrite function returnes success although on first attempt. I checked with breakpoint, but when I do it twise, then it is done, please guide me in detail, I am really amayzed by this strange behavior...

    I already gave you the exact order of the functions in my previous message!

    Ini file tool generates an object in memory that allows you to store and locate the values. This object can be filled in reading a file on the disk; Similarly, it can be saved to a file on disk. This is the very first operation and the last to perform if you want a picture to date of your values on the disk. There are three layers to consider:

    1. The file on the disk

    2. The IniText object in memory

    3. The variables specific to your program

    With this in mind, the right order to update the file on the disk so that it reflects the value that your variables have in memory is:

    Ini_New create the object in memory

    Ini_ReadFromFile fill it with the contents of the disc

    Ini_get('sendmail_from') read of the idebugprogramnode2 memory in your program variables

    Here tou can update the values of program

    Ini_Put update the object of memory with the contents of your variables

    Ini_WriteToFile save everything on the disc

    Memory Ini_Dispose clear

    As you save on disk before you call the Ini_Put functions, the disk image is not updated

  • Open the ini file

    Hello

    I have a little problem years hope anyone can help me.

    I would like to open a *.ini file if I press the button, but the file does not open. can someone help me please?

    int CVICALLBACK LoadFile(int panel, int control, int event, void *callbackData, int eventData1, int eventData2)
    {
    switch (event)
    {
    case EVENT_COMMIT:
    OpenFile ('c:\\home\\My Documents\\studium\\File.ini",VAL_READ_WRITE,VAL_OPEN_AS_IS,VAL_ASCII);
    break;
    }
    return 0;
    }

    I'm not sure, what do you expect of the OpenFile() function to do?

    OpenFile() opens the file in a programmatic manner: This means that it provides a value (what you need to store it in a variable) which allows to read or write data from/to the file bycalling file such as ReadFile() and WriteFile() manipulation functions. It will NOT open the file in your favorite editor!

    to open the file in the sense of the word Windows User Interface, use the OpenDocumentInDefaultViewer() function.

  • Write the string to the ini file problem

    I was tring to write a string in an ini file, which should be:

    [Basic information]
    File Name=C:\\11111.doc

    but the result is:

    [Basic information]
    File Name="C:\\11111.doc.

    whence the double quote come?

    got it, thanks

  • Inside the INI file section

    Hello

    I was wondering if it is possible to read an ini file that contains several sections, for example:

    SECTION [1]

    [SECTION 1-1]

    Val = 1

    [SECTION 2]

    [SECTION 2-1]

    Val = 2

    [SECTION 2-2]

    Val = 3

    Is it possible to use Ini_GetInt (); for Val = 2...

    As it seems the GET according to the section a string so I don't know how to do...

    In other places like C++, I use SECTION1. SECTION1-1 does anyone have an idea?

    In CVI ini files don't allow paragraphs, so a structure like yours could not be read.

    As an alternative, you can consider switching to XML format, which is more flexible and allows the nesting of sections.

    Another solution would be to format the section titles in the format [Section1 - Subsection1] labels of items in format with the style "paragraph - ItemName '. In the first case, your result file

    [SECTION1]
    Item = "Test"Subsections = 1
    
    [SECTION1-SUBSECTION1]
    Val = 1
    
    [SECTION2]
    Item = "Test"Subsections = 2
    
    [SECTION2-SUBSECTION1]
    Val = 2
    
    [SECTION2-SUBSECTION2]
    Val = 3
    

    In the latter case, you will have:

    [SECTION1]
    Item = "Test"Subsections = 1
    SS1 - Val = 1
    
    [SECTION2]
    Item = "Test"Subsections = 2
    SS1 - Val = 2
    SS2 - Val = 3
    

    I have used both and personally find the latest of them more intuitive reading and programming.

  • The value of AllowMultipleInstances in the .ini on Build file

    I modified my exe application .ini file manually to add the AllowMultipleInstances = true directive, and it works fine. However, whenever I have reconstitute the applciation, I notice the .ini file is overwritten, and I have to manually add the directive. Is there a way to specify the directive in the build process to avoid the manual step?

    I'm under 8.20 LV.

    Thank you

    -Ted

    Hi Ted,

    The oldest version I have on hand to refer to is 8.5, but I think you should be able to specify a custom configuration file (ini) in the Advanced section of the property window of the Application (Build specification).  You will need to create one keep a version of the ini you want to shoot in the build - in your case, you simply need to add the modified file that you have in your project.  Note that this will override the ini which is usually automatically generated, so you need to update if you change the name of the exe file or something of this nature.

    Kind regards

Maybe you are looking for

  • How to remove the malware popup o

    When I try to use Google to search I get a message that I was selected for a price (from http:// adsrocket.net), I can't close the page or go to the page I was looking for. How can I eliminate this problem?

  • K:\ is not accessible. The parameter is incorrect.

    K is a HP Personal Media Drive OS: Vista Ultimate and 64-bit SP2 installed Processor: Intel Core 2 Quad Q6700 2.66 GHz RAM: 4 GB RAID 0 The drive appears in my computer and explore, but I cannot access it.  I only noticed because I only use it for ba

  • Problems after update 10.4.1.b.0.101

    Upgrade to version above this morning and since then my microphone speaker, headphones, music everything has stopped working... Has anyone faced this problem? How can I restore? Solution? I use Xperia zr and upgrade has completed without any problem

  • Issue of recovery event

    I noticed that the health of sensor on IPS showing 'critical '. And I clicked for details, he showed that the recovery of the event is not recovered and critical now. I don't know what that means. Can someone tell me what are the causes that informat

  • I got a new serial number / license of Adobe support. How to apply to a Lightroom 5.5 installed that I currently have?

    I got a new serial number / license of Adobe support. How to apply to a Lightroom 5.5 installed that I currently have? I can't to develop, since the temporary license has expired.