The "write key" configurat​ion file vi use of "trim string" prior to writing the data can modify any string data written.
I tried to use the config VIs to record some front-panel settings for later restoration, one of which could be a single space character (part of a string parsing system).
I soon discovered that whenever I tried to save that single-space value to an INI file, only a null string was saved.
After doing some digging I discovered that buried in the Write Key vi is a worker vi called Config Data Modify that uses Trim String on the string data before it is written to the file and that's what was eating my string character. I don't know whether this is a bug or a feature but there are at least three ways to fix it.
1) Assuming you want to leave the library VIs alone, you can pre-process any stings sent to "write key" to replace all spaces with "\20" and then post-process all strings read using "read key" to replace all instances of \20 with spaces.
and if you don't mind modifying the library VIs, either to save/use under a different name or to stick back into the library in a modified state (caution - can cause problems when you move code to another machine with an un-modified library) then...
2) You can yank the trim-string out of the Config Data Modify vi and hope that it does not have any undesirable side effects with regards to the other routines that use Config Data Modify (so far I have not found any in my limited testing)
or
3) You can modify the string pre-processing vi, Remove Unprintable Chars, to add the space character to the list of characters that get swapped out automatically.
Note that both option #1 (as suggested above) and option #3 will produce an INI file data entry that looks like key="\20Hello\20World\20" while option #2 produces an entry that looks like key=" Hello World "
The attached PDF contains screenshots of all this.
Attachments:
Binder1.pdf 2507 KB
Hi Warren,
there's a 4th option:
Simply set the "write raw string" input of the write key function to TRUE
This option only appears when a string is wired to that function!
Just re-checked:
I think it's a limitation of the config file format. It's text based and (leading) spaces in the value are "overseen" as whitespaces. So your next option would be to use quotes around your string with spaces...
Message Edited by GerdW on 05-02-2009 08:32 PM
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome
Similar Messages
-
Can I use my Leopard (OS 10.5.8) to write a downloaded Windows file to a cd without being able to read the file?
Thanks, Zombaby.
I was trying to drag and drop the file out of the download file instead of where the actual file was stored.
This it doesn't do.
All these little twists between the brain and success.
Thanks again.
ghopper -
Problem with write key VIs (config-file)
Hi
My problem is this: when I use the write key VIs to write to an ini-file, the values are not written/updated in the ini-file. Does
anybody has a solution???
thank YOU!!!
Attachments:
writetest.vi 32 KBastroboy wrote:
Hi Dennis, writing key updates or add lines, but the problem is that it also causes all lines to be clumped together, making it unreadable.
What's the better way?
Clement
I was complaining about the poor formatting of the .ini files myself a couple years ago in this thread. http://forums.ni.com/ni/board/message?board.id=170&message.id=273552
I found the offending piece of code was buried pretty deep in the Config File VI hierarchy.
One idea is to go back after the file is written and find where all the section headers are and insert your own blank lines.
Also look at this thread http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=408776
You may also want to add kudoes to the config file idea in the Idea board. http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Comments-in-configuration-file-ini/idi-p/927874#A614
Message Edited by Ravens Fan on 09-17-2009 10:29 PM -
Hi there,
I really hope someone can help me as I am tearing my hair out trying to get this resolved!
I am working on a Server 2012 R2 server with RDS running. Before it was turned into a RDS server it had a copy of Office 2010 running as a trial to see would it work for the accounting package that is running for users via Remote Desktop. Trial worked ok
so it was converted into a RDS server. Now, as its a RDS it needs to run Office under a volume licence, which I have. However when trying to install I get the message: "Error 25004: the product key you entered cannot be used on this machine. this is most
likely due to previous Office 2013 trials being installed on the system."
In summary I have tried everything I can think of and find to remove all traces of the old Office from the machine but still this message persists. I have run the Fix It For Me uninstall from MS and it cannot find any Office installed. i have manually searched
through all of the Windows directories including Program Files and AppData and removed all traces of Office from there, I have searched the registry and removed all I can find from there.
Where or what file does the installer look at to see that a previous version was installed?
I cannot scrub this machine which I would have done long ago because there is another SQL Server based application running on it.
Really really appreciate anyone that can help me on this,
ThanksHi,
I have definitely heard your frustration, and I’ll try my best to help you.
Since Office 2010 installed on it before, you need to remove Office 2010 completely.
KB about this error:
http://support2.microsoft.com/kb/2792178
A similar issue is addressed here. Although this method is based on Office 2010, but we can have a try:
http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Q_28475448.html
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Best regards,
Greta Ge
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
I am receiving an error when attempting to install
Microsoft Office Professional Plus 2013 which I downloaded from the TechNet site. At the end of the installation process I receive the following message:
"Error 25004. The product key you entered cannot be used on this machine. This is most likely due to previous Office 2013 trials being installed. (System error:
-1073422314)"
I have never installed a trial or Beta of any Office product on this machine. However, I have installed Office 2007 Ultimate and Office 2010 Professional Plus. All of these are 32bit versions downloaded from TechNet site. In addition,
prior to this error I had attempted unsuccessfully to install the 64bit version of Office 2013 as well as standalone versions of Visio Professional 2013 x64 and Project professional 2013 x64. All three of these installations failed due to previous
installation of 32bit Office software, so I have downloaded the 32 bit versions but not yet tried to install, other than Office 2013.
I used the Custom upgrade option during the attempted install of Office 2013, specifying "keep all prior versions".
Note that all the above was done on a new machine. The specific purpose was to test co-existence of multiple versions of OFFICE (2007, 2010, 2013) to facilitate user training and migration.
I have tried uninstalling via Control Panel, and performed some of the steps for manual removal, however did not do all of them since 1) They are quite lengthy and 2) Some of them seem to involve removing ALL prior versions of Office, which I do not want
to do; the earlier versions are working properly and I do not want to have to uninstall them. Just want to uninstall and reinstall Office 2013. Also tried running O15CTRREMOVE.diagcab which indicated that it could not find a problem,
but did not seem to remove anything.
I have read about ten recommended TechNet articles, which recommend everything from running a FIXIt tool, uninstalling all OFFICE software, and reformatting the whole machine. Most of these involve System error -1073418209 rather than -1073422314 (which
is the code that I am getting). Other than that the problem sounds the same. This seems to be a problem with key management and copy protection in these products, dating back to 2010. Dozens of IT professionals have tried the solutions
and vented their frustration since other than the full format, the other solutions work only sporadically, if at all. Some of these people had been working with trial or beta software, but many who encountered this problem had not. As
noted above, none of my software was a trail version. I do not want to uninstall all the OFFICE versions, particularly if it as likely as not will not resolve the issue. (I am also getting paranoid to the extent of fearing that
after uninstalling everything I might not be able to reinstall any version). I think what we need here is a definitive fix from Microsoft, though I am not too hopeful, in view of the lack of response to all the other technicians who have been struggling
with this for at least the past three years.
If anyone is aware of a solution which works consistently, I would appreciate it. Reformatting however is not an option. Detailed instructions for completely uninstalling Office 2013 (ONLY 2013) might be helpful. I would be willing to uninstall
all versions, but only as a last resort, and only if there is some assurance that this will actual solve the problem (for many others it did not seem to do so).
Thanks
PS: Probably doesn't matter, but I am running this on Windows 7 Pro w/SP1, 64 bit edition.Tony,
Thanks for your reply. I do in fact have three versions of Office installed on this machine, 2007 2010 and (hopefully) 2013. I have on previous occasions installed 2007 and 2010 on a single machine, but this is my first attempt to install
2013.
According to TechNet article office.microsoft.com/en-us/support/install-and-use-multiple-versions-of-office-on-the-same-pc-HA103981695.aspx (Install
and use multiple versions of Office on the same PC) it is possible to install
Office 2003 2007 2010 and 2013 on a single system, provided they are installed in the sequence indicated. It is noted that some problems may occur, notably involving file associations, but there is no
mention of any activation key issues.
As stated in my original request, the software which I have installed is NOT a trail version. I did NOT obtain it from the evalcenter, but from
https://technet.microsoft.com/en-US/subscriptions/securedownloads/hh442904.
The above is a full retail version. The files which I downloaded are:
en_office_ultimate_2007_united_states_x86_dvd_480625.iso
en_office_professional_plus_2010_x86_515486.exe
en_office_professional_plus_2013_x86_dvd_1123673.iso
I know that the error message says that the problem is commonly caused by attempting to install trial software more than once, but that is not the case. Several other people have reported this same problem, sometimes involving trial software but not
in every case. My own opinion is that this is a software bug involving key management and copy protection.
Many people have reported on TechNet that the problem was NOT resolved even after uninstalling all Office software. While there is a chance I might get lucky, I really would like a solution which has a better chance for success.
By any chance, does the error code 1073422314
provide any further insight into this issue?
Thanks again for your help. However, further assistance is needed to resolve this issue.
PS: Sorry the font sizes are so mixed up, I haven't quite figured out how to control the formatting when I paste -
How to rename the SharePoint Document Library existing file name using Web service
Hi,
How to rename the SharePoint Document Library existing file name using SharePoint Web service.
Is it possible. How could i do it?
Thanks & Regards
Poomani SankaranHi,
Lists.UpdateListItems Method
would be helpful for your requirement.
Here is a blog with code demo for your reference:
http://blogs.msdn.com/b/knowledgecast/archive/2009/05/20/moss-using-the-list-web-service-to-rename-a-file.aspx
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
the itunes library .itl fileis locked on a locked disk, or you dont have the write permission for this file. this is what it says every time i try and open itunes why ?
Sounds like a permission issue.
Navigate to the iTunes Music Library.itl file
The path should be Username/Music/iTunes/
Right click on the iTunes Library.itl and select Get Info
The window will open on the left hand side. Go to the Sharing and Permissions section at the bottom
Click the padlock to allow changes and enter your Mac logon password
Select yourself and make sure you have Read & Write selected. Click padlock to lock it again
Close the Get Info window and try and start iTunes -
Revision: 15129
Revision: 15129
Author: [email protected]
Date: 2010-03-30 06:17:55 -0700 (Tue, 30 Mar 2010)
Log Message:
Update the sample jgroups-tcp.xml file with proper explanations of each property after reviewing the JGroups documentation. This is still work in progress.
Modified Paths:
blazeds/trunk/resources/clustering/jgroups-tcp.xmlIt seems you are asking in wrong forum. AFAIK, you are asking "how to add HTTP header to response generated by my own script". It depend on WWW server we are speaking of and language of script itself. If you will fail to found solution within documentation of the HTTP server and/or scripting language you are using, then the better place for your question is a forum related to such language and HTTP server.
In meantime, you can try other solituin. The "Refresh: 0;..." header is required for correct function of SoftKey:Next which is displayed by default. But you can redefine the content of SoftKey area using your own key. Such configuration is part of DirectoryObject you sent to phone. See definition of SoftKey 3 in example bottom. It's not original SoftKey:Next that depend on Refresh header. It's my own custom soft-key named "Next" with exact URL defined as part of key definition (replace 'N' with number of next page). It doesn't depend on Refresh header in any way. You should consider such advice as "temporary workaround". You should discover how to send HTTP header 'Refresh' from your script. Note, it's not possible to redefine one SoftKey only. If you wish to redefine a soft-key, then all soft-keys need's to be defined by you.
... followed by Title, Prompt,up to 32 ...
Dial
SoftKey:Dial
1
EditDial
SoftKey:EditDial
2
Next
https://an-url-to-your-server-and-script/test-Directory.asp?page=N
3
Cancel
SoftKey:Cancel
4
Exit
SoftKey:Exit
5 -
Whenever i try to access any folder on my computer(Windows 7), it tells me "Windows
cannot access the specified device, path, or file, you may not have appropriate permission to access the item",
this happens even for My
Computer and Control Panel. It's driving me nuts! I'll be honest here, I was trying to uninstall Visual
Studio 2013 Communityfrom my computer by going to Programs
and Features but for some reason, it was getting stuck at "Configuring
Your System". After trying it numerous times, I went to the visual studio installation directory, and removed
the installation files from there. I even removed the files from the C:\Program
Data folder, then i went back to Programs
and Features and tried to remove the listing there, but I got a dialog box saying "you
don't have sufficient access to uninstall visual studio" . I googled this problem and found this solution
(http://superuser.com/a/174198)
then i tried using the solution, I used SubinAcl and
changed the registry permissions as mentioned in the solution and ended up like this!
All the access permissions are set correctly (that's what I can make out...)
Please Help!Hi
Some required information are needed for us to help you.
Hi NabeelOmer,
We wonder if you have taken any action such as system restore after this issue occurred.
You might also try this command to restore your access control list.
Run this command to navigate to the drive letter, example is D
D:
To reset all permissions, run this command
icacls * /reset /t /c /q
Visual Studio is a very invasive program and which provides the ability to enumerate projects and solutions for system, user should never try uninstalling it manually without any guidance.
Visual Studio made changes for your whole system, if the file has been moved or deleted this error would occur.
Since you mentioned that you get this error almost everywhere even in control panel. We suggest you repair/reinstall your Visual Studio first and check if it could be fixed.
How to: Repair Visual Studio
https://msdn.microsoft.com/en-us/library/aa983433%28v=vs.90%29.aspx?f=255&MSPPError=-2147217396
Regards
D. Wu -
looking to buy an ipad but the only problem is that the printer that i have only prints using a wire. is there a product that i can buy so i can use the same printer??
It might be less hassle to buy a new printer.
List of supported AirPrinters.
http://support.apple.com/kb/HT4356
printing to a non-airprinter from an iPad
To print from the iPad, your going to have to install some more software:
-- install a printer app on the ipad. many printer makers have iPad applications for their printers. Look in the app store
-- install enabling software on a computer which you have connected the printer
For a comprehensive list of links, see Texas Mac Man list:
https://discussions.apple.com/message/21291967#21291967
There are iPad Print Applications supplied by printer manufactures -- usually free. Check for your prineter.
Helper app -- /print n share
Print directly to the widest range of network or WiFi printers available in any app. Alternatively print via your computer to ALL printers including USB & Bluetooth printers. View read and display large PDF, Office & iWork files. Easily transfer & store files from the Cloud or your computer.
https://itunes.apple.com/us/app/print-n-share/id301656026?mt=8
Software for your computer's printer:
Mac and Windows
FingerPrint
http://reviews.cnet.com/8301-19512_7-57368414-233/fingerprint-turns-any-printer- into-an-airprint-printer/
Makes any printer AirPrint® compatible so you can print from an iPad® or iPhone®.
Reportedly works for any router.
http://www.netgear.com/landing/genie/default.aspx -
I tried updating Itunes to the 10.7 version so I could use my iphone with itunes, but at the final installation a message apppears saying Itunes can't be downloaded because of a wrong network resource. Please help!!
Which particular .msi file does the message go on to say cannot be found? (Several different .msi files might be mentioned in this context: itunes.msi, bonjour.msi, AppleSoftwareUpdate.msi, etc.)
-
If I already have the unlock key for Quicktime pro on my Mac , does Apple gouge me for the full price to get the key to open quicktime Pro on my windows laptop ?
Here is an excerpt from the license agreement:
2. Permitted License Uses and Restrictions. This License allows you to install and use one copy of the Apple Software on a single computer at a time. This License does not allow the Apple Software to exist on more than one computer at a time, and you may not make the Apple Software available over a network where it could be used by multiple computers at the same time.
You can download the entire SLA here:
http://www.apple.com/legal/sla/
So, it appears that you will need to purchase another copy of it if you want to install it on another computer. -
I've a Pc with Win7. Is it possible to view the movies I've there (and listening to the music also there) in my TV using Apple TV? And navigate in the web? Can I choose my browser?
I'm just starting in this area so please explain in detail.
Thanks.Welcome to the Apple Community.
You can't browse the web on an Apple TV
You can view any content that is in your iTunes library on the PC via the Apple TV if it is in the correct format. -
I got a new iPhone yesterday. The sales people set it up to use. I want to have all the apps, pics, etc from my iPod to be on the new iPhone. How do I do this from my iCloud backup of the iPod??
http://support.apple.com/kb/HT1766?viewlocale=en_US&locale=en_US
Go to Settings>General>Reset and tap Erase All Content and Settings. This will erase your device. Then you will go through the setup screens again as you did when your device was new, and when given the option, select Restore from iCloud Backup.
This link gives another overview of backup and restore:
http://support.apple.com/kb/HT4859?viewlocale=en_US&locale=en_US
Be aware that photos should always be synced to a computer for archiving and that relying on a restore from an icloud backup may not return all (or any) of your photos. Once on the computer, you can sync the photos to the new device...
Syncing Photos:
From device to computer...
http://support.apple.com/kb/HT4083
From computer to device...
http://support.apple.com/kb/HT4236 -
In Word I want to bring the color box out as a separate box in the screen. I used to could do this, but I no longer can. Any help?
you cannot create folders for photos on the iPod Touch. you must currently do it on a computer by syncing the iPod with a photo program, and creating folders within that program and syncing them over. kinda stupid, but hopefully they'll fix it in an update soon.
Maybe you are looking for
-
Unable to enable JavaScript
-
Problem editing altoghther, cant play footage
When I try to playback a FCP piece of footage I get "One or more frames were dropped during playback." This happens every half second it only gets through a 4 or 5 frames before it stops on account of this error. But it also gives me this as well "In
-
Burn dvd from videos downloaded from a Flip onto my mac.
I'm very new to Mac. I'm signed up for classes at Apple but I need a quick answer. What is the easiest was to burn these movies that I downloaded into iphoto, onto a dvd that will play in other dvd players. I need step by step info as I feel totally
-
About the generic connectivity error.
I use the Generic Connectivity to link a mySQL database and appeared some mistakes: ORA-28500: [Generic Connectivity Using ODBC][MySQL][ODBC 5.1 Driver]Access denied for user 'SA'@'SERVER' (using password: YES) (SQL State: S1000; SQL Code: 1045) Is t
-
GC with long period (3.5sec)
Hi I am facing a very citical problem. We develop an JSP/Tomcat 4.1.x framework and use jdk 1.3.1 small introduction: Additional we use RMI and a SAX-Parser to analyse the JSP-Sites. We use JDBC to connect Oracle 9 database server with a connection p