I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?
I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?
Attachments:
try2.txt 2 KB
read_array.vi 21 KB
The problem is in the delimiters in your text file. By default, Read From Spreadsheet File.vi expects a tab delimited file. You can specify a delimiter (like a space), but Read From Spreadsheet File.vi has a problem with repeated delimiters: if you specify a single space as a delimiter and Read From Spreadsheet File.vi finds two spaces back-to-back, it stops reading that line. Your file (as I got it from your earlier post) is delimited by 4 spaces.
Here are some of your choices to fix your problem.
1. Change the source file to a tab delimited file. Your VI will then run as is.
2. Change the source file to be delimited by a single space (rather than 4), then wire a string constant containing one space to the delimiter input of Read From Spreadsheet File.vi.
3. Wire a string constant containing 4 spaces to the delimiter input of Read From Spreadsheet File.vi. Then your text file will run as is.
Depending on where your text file comes from (see more comments below), I'd vote for choice 1: a tab delimited text file. It's the most common text output of spreadsheet programs.
Comments for choices 1 and 2: Where does the text file come from? Is it automatically generated or manually generated? Will it be generated multiple times or just once? If it's manually generated or generated just once, you can use any text editor to change 4 spaces to a tab or to a single space. Note: if you want to change it to a tab delimited file, you can't enter a tab directly into a box in the search & replace dialog of many programs like notepad, but you can do a cut and paste. Before you start your search and replace (just in the text window of the editor), press tab. A tab character will be entered. Press Shift-LeftArrow (not Backspace) to highlight the tab character. Press Ctrl-X to cut the tab character. Start your search and replace (Ctrl-H in notepad in Windows 2000). Click into the Find What box. Enter four spaces. Click into the Replace With box. Press Ctrl-V to paste the tab character. And another thing: older versions of notepad don't have search and replace. Use any editor or word processor that does.
Similar Messages
-
The hard disc of my laptop has crashed and i lost all the data. Now I want to take back up of my I phone and transfer contacts , messages and music etc back into my laptop , how can I do that. Also let me know how I can transfer the contacts into Windows contacts from I phone. Pl help
Your content will only be where you put it. It has always been very basic to always maintain a backup copy of your computer.
You can transfer itunes purchases from your iphone: File>Device>Transfer purchases.
You can import your pics taken with the iphone as you would with any digital camera.
You can e-mail the other pics to yourself, they will never be of the original quality.
You can out a unique contact and calendar entry on the computer. You should get the option to merge the data when you sync. -
Hi,
a) I want to read EACH VALUE from a spreadsheet file having multiple rows and columns WITH DELAY. I am attaching my VI and sample datalog file for reference (tempsensor.txt).I need to do so because as soon as I read put ON the Sensor button on front panel, LV reads all the values at one go. I need the values for each temperature to be displayed after a delay.
b) Secondly, I would like to read another file containing the state of four antennas (deployed:1; undeployed:0). I am logging state of each antenna in each column of the file(magnet.txt) I need to have four LEDS on front panel to display state of the antennas. I dont know what I have done for antennas in my VI is right or wrong. I guess thats rhe wrong way to approach the problem. Please help!!!(column1: Antenna1 state ; Column2:Antenna2 state.. and so..on..)
Any help would be greatly appreciated!!
Thanks in advance,
Ratnesh
FYI: The first column in my datalog file represents timestamp(number of seconds elapsed), second column: reading for temperature sensor 1, third column: reading for temperature senosr 2, and so on. I am using approx. 11 temperature sensors.
Also, I have generated the log files for the reference purpose only. They do not represent the actual values. They are far away from actual values.
Attachments:
01032005.zip 30 KBLook at this modified version of your VI. After looking at it, I determined that a shift reggister was not required in this case.
Lynn
Attachments:
MultiSensors.2.vi 85 KB -
I have purchased new iphone 3gs, its usb cable and charger not working.When I plugged in usb cable to my laptop it says"usb power hub exceeded". When I use another cable I have, it works fine.But the original one not working.Any help?
Are you connecting your iPhone directly to your PC or to a USB hub?
-
I have an old i phone 3G and do not know the password for it. trying to restore it from itunes so my daughter can use it as an ipod but keep getting error code 1015, any help on how to get passed this please?
Hi ratcat14!
I have an article that can help you troubleshoot this issue:
Resolve specific iTunes update and restore errors
http://support.apple.com/kb/ts3694
Check for hardware issues
Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the alert when you update or restore, contact Apple support.
Common errors: 1, 10-47, 1002, 1011, 1012, 1014, 1000-1020.
Thanks for being a part of the Apple Support Communities!
Cheers,
Braden -
I have an iphone 4s and i keep getting an error message when ever i try to activate i have already restored the phone and it still will not work. any help would be greatly appreciated
Activation issues are almost always the result of a device that has been hacked or jailbroken. If that is the case, no support can be provided here.
-
I have an iphone 4s and there is a prompt that shows the itunes icon and a connection cable i plugged it in and itunes is saying im not connected to the internet but i am....any help out there???
If you are getting a message that iTunes is not connected to the Internet, try looking at this article: http://support.apple.com/kb/TS1490
-
I turned off the power to my apple tv whilst updating and now it will not work, i have tried to restore using usb but it says unable to find. any help please?
Welcome to the Apple Community.
Are you following these instructions.
Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
Connect the micro USB cable to the Apple TV and to your computer.
Reconnect the power cable (only for Apple TV 3)
Open iTunes.
Select your Apple TV in the Source list, and then click Restore. -
I need help with the photo stream. Everytime I try to open it on my PC it says photo stream is unable and I have tried everuthing to enable it but it doesn't work. Any help, please?
Freezing, or crashing?
ID on the Mac can produce reports that may (or may not) prove helpful in diagnosing the problem. I suspect this is something not directly related to InDesign, and maybe not to any of the Adobe apps directly since you seem to be having a problem in more than one. That often inidcates a problem at the system level.
Nevertheless, it won't hurt to try to gather the reports. You'll find driections for how to generate them, and to post them on Pastebin.com (then put a link to them here) so we can see what's going on at Adobe Forums: InDesign CS5.5 Not Responding
Do you happen to run a font manager? If so, which one, and waht version? -
2 errors: "Your iPhone could not be activated because the activation server is temporarily unavailable" and the sim says "searching" while iTunes says there is "No Sim installed" - but of course, there is! Any help please??
Hi Peter,
Thank you for the note - I have seen similar replies on other posting errors and I see how that could make sense. The thing is, my iPhone is not jailbroken - it is from an authorized distributor. However, when I told them about the "no service" problem on the sim, they were unable to assist. Then my phone messaged that an itunes restore was required - so I did that, several times, to the error message now noted on my post. I wonder if there is some other way to over-write this message? Thanks very much. -
I'm trying to reset my iPhone 4S but I have no internet as my wifi has broken and I have no data left, I have tried connecting to a computer which did not work any help would be grateful thanks
A reset has nothing to do with Internet access or data access.
A reset is simply pressing and holding the home and power buttons until the white Apple logo appears.
What are you really trying to do? -
When trying to copy and paste on my MAC using firefox, I keep coming across a message "your browser security settings don't permit the editor to automatically execute pasting operations". This only happens with firefox, not Safari. any help??
See:<br />
http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard
https://addons.mozilla.org/firefox/addon/852 - AllowClipboard Helper -
there was an error importing some photos from my iphone, and since then I can not close the program ... it gives the mesage 'please wait until import is conclued'...but nothing is being tranfered. Any help ? Iphoto version 9.5.1
Force Quit the application from the Apple menu.
-
i have been using adobe acrobat 11 pro, and now i want to download it to a new laptop and insert my serial number, but i can't download it, any help?
Acrobat XI, X - http://helpx.adobe.com/acrobat/kb/acrobat-downloads.html
If the link provided does not work, explain more detail regarding why you say you cannot download. -
I recently purchased a MacBook Air and was told by Apple that Keynote and Pages were compatible with MS Applications.. I have since tried to open a Powerpoint Presentation but it comes up with an error message and is not right. Help!
If there are fonts, transitions, builds, video or audio in the PowerPoint file that are not compatible with Keynote, it will either prevent the presentation opening or Keynote will substitute the settings causing playback changes.
I use Open Office to play and open any PowerPoint files sent to me, they play exactly as in PowerPoint.
Open Office is free, you can download it here:
Open Office for Mac
Maybe you are looking for
-
Error in forms configuration 11g
Hi, I am trying to configure Oracle Forms server 11g on my machine but I am constantly hitting error which I could not understand at all. The funny thing is there is no error in my Forms Configuration wizard. It just hangs there but I know its not do
-
Net value in the Invoice not populated correctly
Hi friends, The net value in the Invoice is not populated correctly. The sales order unit price is say 100/EA and the qty is 10 and the net value is 1000 Rs. THe invoice is also showing up the unit price and qty similar to the sales order but the net
-
NB200 broadband not turning on in Windows 7
Hello All, I have installed windows 7 to an NB200-12J netbook and the mobile broadband is not turning on. I have installed all the Toshiba drivers regarding 3G networking in [http://aps2.toshiba-tro.de/wlan/?page=3gdownloads]. When I press the Fn-F8
-
Hi, I have got the requirement to update EKKO table while creating PO. The exact scenario is, I need to update email address based on some condition while creating PO. This is what I have found: When we create PO, the ADRNR field of EKKO would have a
-
UDF to compare two values and Pull another value if equals
Hi all, I am looking for UDF to perform the following logic, please help me I will have 3 inputs, say field1, fields2, field3. If field1 = field2 then return field3. You may say that this can be implemented by message mapping with IF condition itself