Storing the VISA adress in a .ini file

Hi,
I'm looking for 'good' way to store the (RS232) VISA adress in a ini-File.
One way to do this, is using the 'flatten to string.vi', and cut away the first 3 characters ('^\00\00\04'), this way I get a readable and easy to change ini-information.
For reading I add the 'header' an convert it back to the VISA data type.
It works, however, I looking for a propper 'VISA-Adress to (ini)String' method, that surely supports the VISA adresses.
Greetings from Germany
Henrik
Greetings from Germany
Henrik
LV since v3.1
“ground” is a convenient fantasy
'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

What I do (LabVIEW 6.0.2) is to build a string indicator (and maybe hide it) and attach the VISA resource to the string indicator (or its variable). It gives you a dot on the input, but it works. You can also go from a string to the VISA resource in the same way.
I have included a VI for testing this. And, yes, I used a sequence - it's just a test VI and things have to be done in order.
Rob
Attachments:
VISA_to_string.vi ‏22 KB

Similar Messages

  • What is impact on SharePoint farm , if we reset the SharePoint Cache from Cache.ini file?

    Hello,
    I am facing issue with usage timer job as described in following link:
    http://www.sharepointgeoff.com/usage-data-import-job-fail-8075-and-execute-method-spusageimportjobdefinition-fail-6398-%E2%80%93-how-to-fix/
    Resolution for my issue in SharePoint 2010 farm is requiring the resetting SharePoint Cache from Cache.ini file.
    Can anyone please let me know whether clearing SharePoint Cache will affect the farm ? What precautions I should take to be at safe side while performing same on production?
    Thanks and Regards,
    Dipti Chhatrapati

    Just recreate your sharepoint timer job files. All these timerjob are actually stored on database but for performance, they are pulled over to SP server and executed from local server.
    No impact unless and until you set the cache.ini value to 0 everytime the folder is clean.
    Yes it is safe to perform this in production.
    Note: Make sure time service is top, cache.ini value to 0 everytime the folder is clean, then delete file, then start the timerjob service. If you dont see the files getting created, you need to troubleshoot on your timerjobs.
    If this helped you resolve your issue, please mark it Answered. You can reach me through http://itfreesupport.com/

  • To detect and write the midi imput into an ini file

    greetings
    for some experimental programming purposes, I need to have an ini file with only one value within, detecting the current pressed key of the midi keyboard connected to the PC trough midi interface.
    So that value should change in real time while the user plays the instrument.
    If possible to do this with Java + there are already some java programs who could do this?

    greetings
    for some experimental programming purposes, I need to have an ini file with only one value within, detecting the current pressed key of the midi keyboard connected to the PC trough midi interface.
    So that value should change in real time while the user plays the instrument.
    If possible to do this with Java + there are already some java programs who could do this?

  • The boot.ini file

    Lost my boot.ini file so I can't boot archlinux now (only Windows XP). Will somebody be so kind and post his C:boot.ini file here so that I cat adopt and use it.
    Thanks.

    yeah it dont work like the you cant create a .ini file in windows for linux as far as i know
    Oh, that does not work that well.
    Here is my boot.ini:
    Code:
    [boot loader]
    timeout=30
    default=multi(0)disk(0)rdisk(0)partition(1)WINDOWS
    [operating systems]
    multi(0)disk(0)rdisk(0)partition(1)WINDOWS="Microsoft Windows XP Professional" /fastdetect
    c:grub.ini="ArchLinux"
    And here is my grub.ini (which I created):
    Code:
    kernel (hd0,1) /vmlinuz26 root=/dev/discs/disc0/part3 ro devfs=nomount
    The grub.ini is from the GRUB boot settings file.
    This does not work, however.
    i use lilo or grub to manage my os choices in booting as does most linux users
    try going here
    http://wiki.archlinux.org/index.php/Grub
    the arch linux lilo how to is down right now which you can find here
    http://wiki.archlinux.org/index.php/Lilo
    but there is a link there that leads you to other lilo how to's
    all archlinux how to's are found here
    http://wiki.archlinux.org/index.php/Category:HowTos
    or if youd like some other boot loader you can check these out
    http://loll.sourceforge.net/linux/links … t_Loaders/
    but i would recommend use lilo or grub 1st once you get the hang of them then if you really want try the others or
    use the link provided by sh_ that one does work ive used it but didnt stay with it (you have to install a linux boot loader 1st to be able to copy it to windows)
    the link provided by phrakture doesnt tell you how or where to get linux.bin but that is how you set up you boot.ini
    linux is all about choices
    enjoy

  • Where can I find tools for manipulati​ng .INI files?

    Doesn't LabVIEW have some VIs somewhere for manipulating .INI files?
    Or is that another add-on toolset where NI nickles and dimes you for it?

    bmihura wrote:
    Doesn't LabVIEW have some VIs somewhere for manipulating .INI files?
    Yes.  Functions>File IO>Configuration File VIs.
    Openg's toolkit has some useful additions (and for << a nickel).
    http://www.openg.org/content/section/4/41/
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."

  • Sysvol Not Replicated Gpt.ini File Have a Differnet Version

    Hi,
    I have 3 domain controllers
    1.Id-dc1 - its the main dc (server2008 R2)
    2.id-dc2 (server2008 R2)
    3.id-dc3 (server2003)
    On Id-dc1(server2008 r2) & id-dc3(server2003) the sysvol folder its good the same folders and its the same version in gpt.ini file.
    On id-dc2 (server 2008 r2) the sysvol folder not the same i have just 6 folders of 14 folders.
    How i can Sync Sysvol folder on this server ?
    Thanks

    Hi,
    The gpt.ini file contains the corresponding GPO's configuration settings, which includes its current version number and the default GPO display name. The version number is updated every time a change to the GPO is made. 
    In this case, there seems to be something wrong with the AD replication. To identify Active Directory replication problems, use the
    repadmin /showreps command.
    What's more, please check the Event viewer to see if there is any error  indicate a problem with Active Directory replication.
    For your information, please refer to the following article to get more help:
    Troubleshooting Active Directory Replication Problems
    http://technet.microsoft.com/en-us/library/bb727057.aspx
    Regards,
    Lany Zhang

  • Postgres_reg.ini file deleted after ininstalling enterpriseDB postgres

    Mac OS X 10.7 (Lion) Server...After uninstalling the enterprisedb version of postgreSQL **after** the postgres installer failed, the postgres-reg.ini file was deleted. I now need a copy of the original /etc/postgres-reg.ini file. I would normally simply copy it from my original installation, however, this is no longer possible with the App Store Installer as I cannot simply reinstall the software. If someone could simply copy the contents of their /etc/postgres-reg.ini file and post it as an answer to this thread...I will make the necessary changes and place the file back in its proper place. Thanks in advance.

    Was this ever resolved?  I just updated to OSX Server 4.1 and it appears to write to this file every 10 seconds.  My file is only 3GB in size, but it gets backed up every hour!
    I deleted all the files in /Library/Server/Wiki/Logs from all Time Machine backups which freed up 160GB on my backup disk.  Looks like I'll have to do this every so often.
    Regards, Patrick

  • WSH and ini files

    Hi gents,
    I want to create the user on the mobile server using wsh.exe tool.
    When I try the below code I get the following result:
    command is :
    c:\wsh -c c:\SETTINGS.INI <mobileusername>/<password>@webtogo.world
    the result is :
    -3023
    WTG-10017: Failed to mount file system on WEBTOGO.WORLD
    What does this mean? When � wrote the below code I can login to the system :
    c:\>sqlplus <mobileusername>/<password>@webtogo.world
    Is there a way to mount the file system on webtogo.world?
    All help will be appreciated...
    Regards,
    Bogac OZGEN

    Hi all,
    I found the error. In my ini file I tried to create the users only y preparing the ini file in the way that is being shown below:
    [USER]
    NAME=JOHN
    PASSWORD=john
    ENCRYPTED=false
    FULLNAME=Sample1 User John
    PRIVILEGE=C
    But before these lines we must indicate the database type so we need to add the following line:
    [DATABASE]
    TYPE=ORACLE
    So our file must be like this:
    #Indicate the database type
    [Database]
    TYPE=ORACLE
    #Create the user
    [USER]
    NAME=User1
    PASSWORD=User1
    ENCRYPTED=False
    FULLNAME=My User 1
    PRIVILEGE=C
    #Create the user group
    [Group]
    NAME=Users Group
    USER=User1
    #Give roles
    [ACL]
    APPLICATION=/MyApp
    ROLE=Default Role
    GROUP=Users Group
    ACCESS=ENABLED
    #Prepare the bind variables
    [SNAPSHOTVAR]
    Name = MyApp
    PLATFORM = WinCE
    VIRTUALPATH=/MyApp
    USER = User1
    VAR=MyVar, 5
    #Give access rights
    [GRANTACCESS]
    APPLICATION=/MyApp
    ACCESS = Enabled
    ROLE=Default Role
    GROUP=Users Group
    When you prepare this file then you can run this script by writing the below command:
    c:\wsh -c c:\MyFile.ini <UserName>/<UserPass>@webtogo.world
    You can see the results from the control center.
    Regards,
    Bogac OZGEN

  • Memory leakage when using Ini-file VIs

    I'm using the Configuration File Vis to read and write data to different .ini files. The files contain both standard keys and clusters written as a segment using the Open G toolkit. Instead of opening the files and keeping them in the memory of the Config VIs I'm just using them to read and write, decode and encode...the references are all closed using the Close Config Data.vi. The problem is that even though immediately close the config data the application keeps grabbing more and more data...every time a configuration file is open, read or written to and the closed everything from 4K to 50K of additional memory has been allocated by the application (this is a stripped down application that only deals with the config files, so
    there are no other sources for the memory leak).
    Has anyone else experienced this? How can you repeatedly open and close config file slike this without it continoulsy allocating more memory?
    Attached is a copy of the VIs, the directory structure must be kept intact if the ini file is to be read correctly.
    I've been stearing so hard on this the whole day that I might just be overlooking something obvious...
    In the full application the VI init and write operations are only done when the user reconfigures the system, which may be a couple of times per month...so the memory leak would not cause a problem right away, but it would not be healthy to leave it there...
    MTO
    Attachments:
    Memory_Leak_Demo.zip ‏1391 KB

    Could you post a 6.1 version?
    LV7 is still about two weeks away for me.
    Does the problem show up in 6.1?
    I ran across an error while writting to a FP output that was not configured that would cause a "drop of memory" to leak every time the VI performed the write. The leak did not show up in the profiler but windows would show te memory foot print growing continually as long as the writes continued. The work around was "don't do that!".
    I bring this up because I found and reported this just prior to LV7 release and the featur may still be present in LV7. I also believe that Jean-Pierre used a "write and check" metod to detail with the unknown data types of of complex data structures.
    If you just read does it leak?
    If you just use simple data types do
    es it leak?
    Is the ini file growing?
    I really appreciate the effort you have been putting into the Dev-Exchange Mads! I wish i could do to more to help.
    Keep us posted.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Placing ini file in specific location when building the application

    Hello,
       I have a small problem.  I have an ini file that I use to store certain parameters.  Lets call this file app.ini.  When I build the Application.exe, it puts that file into the data directory.  I was hoping that it would be one level higher and be located in the same directory as Application.exe is (otherwise it won't read the file correctly.)  I looked at the Source File Settings in the Category list in the properties window for the build and set the Destination to be "Same as caller", but that didn't put it where I wanted it.  I'd really like this file to be one directory higher when I make my build in order for my app to read it correctly.  Any suggestions?
    I use this executable later on when I make my installer and the problem simply propagates there too, not good.
    Solved!
    Go to Solution.

    One way to solve the problem:
    1) In build properties window select Destinations and create a new destination. Select as "Destination Path" the same dir where the exe will be stored
    2) Assign this destination to the .ini file.
    Let me know if it works
    Marco

  • Why is the .ini file deleted by iteself?

    Hi all,
    I am working on a large program. It is really large and messy, but it works. The problem is sometimes it deletes .ini file by itself. This program uses a .ini file to keep all kinds of configurations. Sometimes when the program exits, it causes the computer to reboot -- even worse, at same time it deletes the .ini file......who can tell me the possible reasons?
    Thanks!

    Hi steady,
    Does your program use the LabVIEW configuration file VIs to maintain its own INI file? In LabVIEW 7.1, I think the Close Config Data VI used to write the data back to the INI file by default even when nothing changed. Try setting "write configuration data?" to false when you call that VI.
    Do you have any more information about the reboot? It may be a system crash caused by a device driver. Why Does My Computer Automatically Reboot For No Reason? explains how to obtain more information about system crashes.
    Brad
    Brad Keryan
    NI R&D

  • Where are settings stored (foldeer/ini file/Registry)? Backup settings poss

    Where are the settings of SQL Developer stored?
    Is this a folder, an *.ini file or the Registry?
    If it is a folder: Can I change the location of the folder?
    If yes: Where exactly?
    How can I otherwise export/save settings otherwise?
    Peter

    In your home directory will be created a path like ...\SQL Developer\system1.5.4.59.40
    There SQL developer stores the local data.
    You can change this path (here ...my_options/system) with th following line in the sqldeveloper.conf, located in path ...\sqldeveloper\sqldeveloper\bin:
    # This is to enforce storing of configuration information in the "/my_options/system"
    # subfolder I have created in the SQL-Developer installation directory (instead
    # of in the "C:\Documents and Settings\<user>\Application Data\SQL Developer"),
    # so that SQL-Developer installation directory can be just copied to another
    # location (e.g. a stick) and along with the configuration information.
    AddVMOption -Dide.user.dir=../../my_options/system
    Thanks to Juri W. for this solution!
    Before changing the path you should save your connection and custom report - settings via right click -> export in the connection and custom report view, I had to reimport these settings after movimg my directory.
    Gerhard

  • How do I get the VISA resource drop down menu to be auto populated in my stand alone application (exe file)?

    Hi all,
    Here's a hopefully simple question.
    I am building an application (i.e. an exe file) from a simple program which use VISA to read and write to a RS-232 com port. When I run it before building the application everything works fine and the VISA resource control, which is a drop down menu, is automatically populated with available com ports. When I run the application on a computer without LabVIEW installed nothing appears in this window. I have made an installer which includes NI LabVIEW Rutime Engine 8.5, NI Measurement & Automation Explorer 4.3 and NI-DAQmx 8.6.1. Is there anything else I need to include? Any specific settings I need to do when I build the exe-file?
    I use LabVIEW 8.5.
    Thank you.
    Solved!
    Go to Solution.

    DAQmx is only for NI DAQ cards so I'm not sure why you installed that. The driver for VISA applications is NI-VISA (surprise!)
    Add the NI-VISA run-time to your installer.

  • Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration: Agentry Error

    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_CRT

    Hi 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 |

  • Need help on resolving the issue with adobe output server - error MSG256 & MSG 210 not in .ini file

    Hi,
    I am using adobe output designer 5.5 for designing the label template and using the Adobe output server for printing process.
    In the Jfmerge.ini we given the condition "DiscardUnknownFields=Yes" for ignoring the unwanted fields in the .dat file.
    During the process, I faced some issue with the output server in printing the labels.
    When the .dat file is placed in the Data folder of adobe, the label is not getting printed in the printer.
    The file is move to the error folder and an error file is getting generated which contains the error message as given below:
    090826 02:59:02 D:\Program Files\Adobe\Central\Bin\jfmerge: [256]** Message Msg256 not in .ini file **
    090826 02:59:02 D:\Program Files\Adobe\Central\Bin\jfmerge: [210]** Message Msg210 not in .ini file **
    2009/08/26 02:59:02 D:\Program Files\Adobe\Central\Bin\jfserver.exe: [314]Agent exit message: [210]** Message Msg210 not in .ini file **
    The output server is a new installtion and I verified the Jfmerge.ini file. It contains the message details of Msg256 and Msg210.
    I also verified the license and it is a valid licence.
    Kindly help me out in solving this issue.
    Thanks
    Senthil

    I assume this is too late to help you, but other might need a hint.  I had the same problem, and found some possible causes that I posted on http://codeznips.blogspot.com/2010/02/adobe-output-server-message-msg210-not.html.
    It is quite likely that you are missing some double quotes around the path specifying the ini file (-aii), if its installed under "Program Files".
    Hope this helps anyone....
    Vegard

Maybe you are looking for

  • Why do I have a light blue screen randomly appear?

    In the middle of using my MacBook, a light blue screen randomly appears. It disappears if I shut the screen and then open it again. It was happening every few months, now it's happening a couple of times a day.

  • How can I get smartart animiations to work in Captivate 7 that was imported from a powerpoint slide?

    I am having problems getting the smartart animations to work.  The shape animations work fine.  Thanks in advance for any assistance.

  • Read receipts in Messages for Mac appear to be incorrect.

    My outgoing messages to a friend are getting marked Read instead of staying as Delivered.  I am certain that he does not have Read receipts on. After some testing, it seems that it is my reading the messages on my iPhone that is triggering the Read r

  • Role in Project

    Hai Gurus, I faced one question what is your role in the project, How can we tell the answere,in myresume i mentioned my key skills as timemanagement and OM and PA. with regards

  • JTA & BPEL

    I'm having some problems managing transactions from a BPEL process. I've created a session bean that is used to invoke stored procedures in a SQL Server database. This session bean is accessed from BPEL via WSIF. We've tested this a bit and everythin