Number of serial port configuration ini file!

Hello guys,.

I am creating an ini config file to save the selected serial port of VISA.

I will adapt if the ini file doesn't exist then look to pc serial ports and choose one of them. If the file is read the value to use when I use data acquisition.

In the example attached. I have a structure of event (such as my application), where I have a stocking to open the 'options '. If you open the main vi and pass the error, open the Subvi options and choose comport, if you click on 'ok' it save the ini file, if you click on "Cancel" it closes and show in the indicator of the value of the comport the .ini file. The Subvi works well.

The problem is when I try to read the value of include an application start. I put the code but that's fake.

I used "simple saving and loading control values" TST ( https://decibel.ni.com/content/docs/DOC-15349 ) and it works well for the control of the Sub - VI.

Why I got error and I can not read ini value?... section and the key is correct. I can't find the problem.

Concerning

Fred.

OpenG INI example explained on the-openg-vis-that-i-couldn't-live-without

Tags: NI Software

Similar Questions

  • Determine the number of serial port

    I need to test my Board on 3 PC randomly. Whenever I connect the jury that happens the number of serial port as "com 18. Now, the number of Compote I use is 40. Although I am not any other USB connection. Although I update, I always get data only if I set the port number as 40. is anyway to determine the port number. Also someone can tell me why this is happening?


  • Error of TNA: 47077 TNA configuration .ini file is not found

    Hi all

    I just installed 11.1.1.7 on my 64-bit windows OBIEE. And tries to install OLIVIER 7.9.6.4 on top of that. When installing, I get an error:

    Error of TNA: 47077 file Config.ini TNA has not been found. Make sure that your environment is configured correctly.

    Pleasw help me guys... I'm new to this facility OBIA.

    It's a BUG

    See this BI Applications on EE BI 11.1.1.7.0 7.9.6.4 installation (Doc ID 1561846.1)

    Please to the bottom of the attachment Technote1561846.1_InstallSecurity.zip and apply the solution.

  • Communication serial port problems

    Hello.  I'm trying to control a pressure controller MKS Instruments 651 via RS - 232 c.  Right now, I just try to establish a basic communication with the device on the serial port.  I can connect to the device with hyperterminal of windows using the following parameters:

    Bits per second: 9600

    Data bits: 8

    Parity: None

    Stop bits: 1

    Flow control: no

    Once I log in, I'm in file--> properties, settings tab and click the button settings ASCII.  I need to check the following boxes (not ticked by default) for communication any occurs:

    Send line ends with line breaks

    The echo locally typed characters

    Add line breaks to incoming line ends

    Force incoming data to 7-bit ASCII

    Once I got it, I can communicate with my device via hyperterminal.  What I want to do now is to use LabVIEW to control the unit, so I need to be able to send and receive data through the connection RS-232 using LabVIEW.  I have been using the basic series write and read vi, but I get no response from my camera.  Looking at the block diagram for the basic reading/writing, I saw that allow termination Char has been wired to false, so I changed to a control and set it to true.  I also changed the termination to a control tank and assign 0xD for the CR.  I can't always get a response from the device.

    I guess I'm still not put in all for the serial port configuration correctly.  Can anyone give me some suggestions on what else to change to match my hyperterminal settings?  Thank you!


  • Property node (arg 1) visa set up a Serial Port (Instr) .vi-> Untitled 1. VI

    Hello

    I'm trying to connect an instrument stahl ER-300 with labview. The Stahl is connected to my laptop via a serial port/USB converter.

    When I run the program, I get this error property node (arg 1) visa set up a Serial Port (Instr) .vi-> Untitled 1. VI

    the driver of the converter is set up and my phone is read as a COM4 and I Don t understand why I get this error.

    The program is attached.

    I need your help

    The error indicates that an input parameter is not valid to configure serial port VI... have you checked that you had wired up to this node correctly?

    Down VI serial port configuration and...

    It is not wired! Thread resource name VISA through the VI.

  • Paths of reading via the Config Ini file

    I was curious to know how one send or read from a configuration (.ini) file paths in LabVIEW. Any help is appreciated especially examples

    It's actually pretty simple...

  • The VI "VISA set up the Serial Port" will only work at 9600 baud

    I wrote a Serial Port RS232 RW.vi monitor of ' "which works for most. The problem is that it will not meet the alternative port configuration settings... For example: the default RS232 serial port configuration is:

    (COM1, 9600 baud, 8 data bits, 1 stop bit, no without parity)

    As a test, I use a Null Modem cable to connect to my LabView Com1 port to another PC running RealTerm Serial Port Monitor... Using my "RW.vi RS232' newly designed with the port settings of (COM1, 9600 baud, 8 data bits, 1 stop bit, no without parity), I can send and cannot receive data back throughout the day no problem...

    However, if I configure the port "RW.vi RS232" all other configurations, such as (COM1, 2400 baud, 7 data, 1 stop bit, odd parity bits)... He will not take the expected risks and continues to operate @ 9600 baud rate etc.

    Then, I changed the settings default "RS232 RW.vi" (2400,7,1, Odd)

    He still refuses to derogate (COM1, 9600,8,1, no...)

    I also went in the Device Manager of Win XP on the system of LabView and configured manually Com1 2400,7,1, Odd

    and yet,... work at the "RS232 RW.vi" @ 9600,8,1, none

    Everyone can test my VI in the car and see if they have the same problem of not being able to see the new changes in the Port configuration settings... other than (COM1, 9600,8,1, no...)...?

    FYI... Unfortunately my LabView runs on Version 6.0, you may need to up-conversion of the attached vi

    Instead of simply appreciate the comments, you need to implement.

    Having closed VISA inside the loop is definitely the problem.  And Crossrulz is 100% correct about the problem being that the serial port gets zero to default baud rate after the closure of the port.  Here's the proof.

    Note that while may have set the port settings manually in the Device Manager, these parameters are reviewed by the pilot VISA.  If you look in the measurement and Automation Explorer under devices and Interfaces > serial and Parallel, you'll see the default settings using the VISA driver.  If you change this setting, your program will work as desired.  But this is not the appropriate fix.  The correct solution is to get the VISA close out of the while loop.

    The port settings are established in this order.

    1. by Windows device drivers.

    2. by the VISA driver as set in MAX.  Since you are using VISA, these settings will be automatically replace #1.

    3. by the port settings, you set programmatically in your LabVIEW program.

  • Option named pipe to add the missing Serial Port to Linux host

    Hi all

    I try to add a serial port as a channel named for a kernel debugging

    the installer, but this option is missing (see screenshot1). There are

    However the options to add the serial port in the file/socket.

    The host is 64-bit Fedora 10 2.6.27.24 - 170.2.68.fc10.x86_64 running.

    Workstation is 6.5.2 build-156735. I found that the named pipe option is missing, regardless of the type of the guest OS.

    I had posted this last week.

    http://communities.VMware.com/message/1267552

    and he said since as soon as I put in the following options in the marked .vmx file, a serial port option came (see screenshot2).

    Serial0.present = 'TRUE '.

    Serial0.filetype = 'pipe '.

    Serial0.filename = "/ tmp/com_1".

    I realized that I have a VM as the serial port server and others as a customer. So adding the option-

    Serial0.pipe.endpoint = 'server '.

    However, this option is breaking the vm configs (cannot start VM until I have delete this line).

    Please see the attached screenshot3 6.5.2 on Windows and you will see that there is a different and complete serial port setting to the research. You can easily set a virtual machine as a client/server side of the connection series on Windows.

    I would really appreciate if someone could give me some pointers as to why this difference between Linux and Windows, and how to get the type parameters for the serial ports under Linux Windows?

    My main goal for the purchase of workstation was to do kernel debugging using the serial ports, and now I'm totally paralyzed because of this. Pointers and suggestions are greatly welcome.

    Thank you very much

    HS

    no need to apologize

    Hey - if you work with functions like this - use the vmx directly - file so you can be sure that you get what you order

    ___________________________________

    VMX-settings- VMware-liveCD - VM-infirmary

  • How to transfer files from PC to PC via a serial port using labview

    I need to transfer files (.txt, .doc, .xls) from PC to PC via a serial port using LabVIEW. Is it possible to transfer files, if so how to transfer?

    Yes, it is possible to transfer files with the serial port using LabVIEW.  The files are just collections of bytes and the serial port is good enough in the expedition of the bytes from one PC to another.  You must connect the ports series with a null modem cable.

    First, take a look at the example of serial communication.   In LabVIEW, go to the Help menu and select «Find examples...» ».  From there, you can search for "serial" or navigate to hardware input and output > series.  Select «Write series base» and Read.vi  Try this example to gain confidence on the serial communication methods.

    Then it's time to learn how to read and write files.  For this, the examples might be somewhat confusing as they deal with files that are presumed to have data of a specific type in them.  I would recommend just familiarize yourself with the functions in the file e/s palette.  Specifically, familiarize yourself with the following functions.

    1. Open/create/replace file - on the side of your destination, you will need to create the copy of the file you are trying to transfer
    2. Close the file - when you're done reading or writing to a file, you must close it.  It cleans the memory used and finalizes write operations that are still floating in the write buffer.
    3. Read a binary file - is the best way to play a file when you don't really like what type of file it.  In your case, you just want to get these read bytes and sent so they can be written down instead of destination.
    4. Write to a binary file - next to the destination, is what will store the bytes in the file that you created with the number 1.
    5. Size of the file get (under the range of the advanced features of file) - you need to know how big the file is, so you know when you are finished.

    OK, so once you are able to create files byte write and read bytes from existing files, you can move forward.

    I suggest the basic method is to have the user specify a source file on the source PC, and a folder on the destination computer.  Then find the size of the source file using the number 5.  Divide this number of size by the number of bytes that you want to transfer to the times.  The series pads are usually around 32 k (if I remember correctly) in order not to exceed that.  Now start to send data by reading a number of bytes and this string output wiring to the feature of writing VISAS.  On the side of destination, you will want to monitor the serial port for bytes and read when they arrive.  This string of yarn to the writing of the function of binary file to add them to your destination file.

    This is the basic outline of how to do it.  He needs to not to overload him write and read buffers on the serial ports.  Initially, you can use delays on the side sending to make sure that the side reading has enough time to digest.  To make things faster, you can bring in a control of flow.

    If all that sounds a little intimidating, there are there Alliance member companies (such as the automation of PrimeTest) who can write this code for you and even provides a turnkey for you solution.

    Happy wiring,

    Dan press

    Certified LabVIEW Architect

    PrimeTest Automation

  • Serial Port problems - carriage return and use as an executable file

    Hello

    I developed an application to send a few simple commands on the serial port and read the corresponding answers of a device that I am in communication with.  I have been using logical Port to watch the line TX of the serial port.

    By using the Visa configure Serial Port I set the stop character property allow true and used the hexadecimal value D trying to make the termination a carriage return characters.  When I sent the order, I'll send the cmd followed by Enter.  No matter if this property is set to true or the hexadecimal value is set to D for carriage return or line break is, the serial port would always send a line break.

    Then I got crafty and the string constant under normal display to hexadecimal display.  The ONLY way I could send a carriage return was manually putting 0x0D after ordering.  So my question is, why the Visa set up the Serial Port is not working correctly, and is there a better way to send a carriage return?

    My next issue is facing the construction of executable files.  I'm using LabVIEW 8.2 and wrote this program for another employee to use on his laptop computer.  I did install runtime Labview 8.2 and led to the executable that I generated.  I did-> the executable by clicking Tools build the executable.  The problem I noticed was that the executable would open and will work perfectly, but it would not send any data the serial port.  I then ran the executable on my laptop (which contains the full version of LabVIEW 8.2) and the serial port has worked well.  I guess my question is... Are there plug-ins that must be installed to use the serial port with the Labview runtime engine?  Or y at - it a step that I failed to do?

    Thank you

    Gary Still

    Not immerse in the first issue. The Knight will probably be galloping until shortly.

    For your second question, after building the executable, you must build the installer and includes support for the VISA. VISA is required for serial communication, and it does not accept American Express.

    It may be useful

    -AK2DM

  • Dell order | Configure the utility crashing & empty INI files

    "I'm using the" Dell order | Set up' utility 3.0 (formerly called the "Dell Client Configuration Toolkit") to set the setting in the BIOS for all our Dell business machines.
    We have a mixture of models of desktop & laptop.

    The utility is of course most of the working models, but will not properly work on some models.
    I am trying to use the "-o" option to create an "output file" with the current BIOS settings.

    1. when I try to run the utility with the "o" option on an Optiplex 745 or 755, the ini file produced is white with only the header and machine model number.
    None of the parameters are saved in the ini file product.

    2. when I try to run the utility with the "o" option on a Precision Workstation T5400, the utility just blocks a second after it is loaded. He never even finished running in order to produce any type of output of ini file.

    All models, including those with questions mentioned above, have the latest available BIOS version installed.

    Could you please help me to get this utility runs successfully on these three models with questions?
    I need to be able to configure them correctly in mass.

    Thank you.

    The command utility set up does not support OptiPlex 745 and 755 in accordance with the manual in the installation directory. This is the main reason, I always use the old CCTK since we have several 745 and 755 in production.

  • Part number for the serial port in option HP Z420

    I am looking for the serial port in option for the HP Workstation Z420, but in a datasheet, it is only mentioned as an optional serial port kit.

    What is the number on the right side of the product? The same for the workstation Z400 was PA716A, but it was not compatible with the new workstation model...

    I used the same part number, I used to model Z400 and it seems to work well.
    HP code is PA716A.

  • Tecra A8: external keyboard connected to the serial port: the necessary specific configurations?

    Hello
    I want to share a monitor and an external keyboard with Tecra A8 and a desktop computer. To do this, I bought a switch 2-port Linksys where I plugged the external monitor and a keyboard. With the monitor without problem because there is a specific port for this. However my Tecra has only 3 USB ports and a serial port 6-pin where I connected (with a 6-pin Mini DIN adapter) on the keyboard. When I turn on the screen it's ok, but the keyboard (I also tried a mouse) does not work. Do I need a specific configuration on the serial port to accept the external keyboard? If so, what commands do I need on the XP operating system?
    Thank you
    Luis

    RGB (monitor) port used to connect the external monitor.
    If you want to connect the external keyboard, you have to use the USB ports.
    Additional legacy USB emulation must be enabled for the keyboard.
    These settings you can change in the Toshiba HWSetup under control panel.

    If you connect multiple devices to the switch USB (hub) Please be sure that the USB hub using external power.
    A low power USB could be a reason for the external USB device failure.

  • To configure a serial port using Max

    Hello

    I inherited the code that configures the serial port using the old serial code that does not allow the user to specify the term tank and turn on the tank of the term. Any ideas on how this is done with the old serial code? I also tried to use MAX to set the term tank and allow it, I am able to communicate with my device series with Max and I saved the changes when I was. So when I run Labview code, my serial code fails because the term tank is wrong and it is also not enabled.

    Everything that happens with the definition the term tank and allows ideas?

    What you do to the MAX to the extent where the configuration of the serial port have no impact on the LabVIEW program. (EDIT: which means that you can change the configuration in the LabVIEW code.)

    If you load the old code in a version of LabVIEW using VISAS for all the stuff of series then the screw would have been automatically replaced by shell screw that NEITHER created for the old code. Inside, they use just VISA. More than probably the old code use via digital port numbers. For example, in the library of \vi.lib\Instr\serial.llb of , you will see these shell screw Serial Port' writing' for example, calls the 'Open Serial Driver' VI which simply returns a VISA session. It then uses the Write VISA. So you can define characters of termination by obtaining the VISA of "Serial Driver Open" resource.

    Of course, the best solution is to rewrite the code using VISA directly. It will be much cleaner.

  • Visa to configure the serial port

    I'm trying .vi VISA set up a Serial Port (Instr) allows you to configure my serial port.

    Although the property of node baud rate is enabled, it does not appear in the block diagram. Please see attached.

    Would appreciate any help, thank you

    Figured out. Thank you

Maybe you are looking for