-
FlexPro
- Zoom sur FlexPro
- Fonctionnalités & Options
- Domaines d’application
- Tous les avantages
- Nouveau dans FlexPro 2021
- Testez FlexPro gratuitement
- FlexPro View OEM Freeware
- Conseils d’achat
- Login
- Langue
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produits
- News
- Support
- Société
- Emplois
- Contact
- Login
- Langue
- +49 6894 929600
- infoweisang.com
- Google Maps
ReadTextFile to import
- This topic has 5 replies, 3 voices, and was last updated 19 years, 4 months ago by cheriftayyib@yahoo.de.
-
AuthorPosts
-
July 27, 2005 at 12:33 am #12518cheriftayyib@yahoo.deParticipant
Hi,
how can u use the function “ReadTextFile” to import data from the folowing text-file .
X/[µm] Y / [µm]
0 -358.521
3 -358.515
6 -358.508
9 -358.508
12 -358.508
15 -358.502
18 -358.496
. .
. .
. .
. .
. .
. .
. .my path is “C: mp est.txt”
and I want to get the 2 columns and assign their values to respectively X,Y so that:
X=Column1
Y=column2Thanks in advance!
July 27, 2005 at 12:57 am #8837Bernhard KantzParticipantUse the Text Data Import Wizard to import your file.
1)Choose
– Create links
– Import as signals
2) Method: Automatic
3) Several columns, seperated with TAB; Decimal Character: Point
4) Line with names: 1; Column with X-values: 1The result is a text data link object. You can convert the data link object into a formula. Open the context menu (right mouse click) and choose Convert into formula.
The result is a FPScript formula:
Signal( ReadTextFile("C:\tmp\test.txt", 2, 0, 2, 2, FALSE, _ TYPE_FLOATINGPOINT64, FALSE, " ", FALSE), _ ReadTextFile("C:\tmp\test.txt", 2, 0, 1, 1, FALSE, _ TYPE_FLOATINGPOINT64, FALSE, " ", FALSE))
See also:
FlexPro Online Help
ReadTextFile FunctionJuly 28, 2005 at 6:34 am #8838cheriftayyib@yahoo.deParticipantThank you for the help.
July 28, 2005 at 6:21 pm #8181cheriftayyib@yahoo.deParticipantHi,
how can u use the function “ReadTextFile” to import data from the folowing text-file .
X/[µm] Y / [µm]
0 -358.521
3 -358.515
6 -358.508
9 -358.508
12 -358.508
15 -358.502
18 -358.496
. .
. .
. .
. .
. .
. .
. .my path is “C: mp est.txt”
and I want to get the 2 columns and assign their values to respectively X,Y so that:
X=Column1
Y=column2Thanks in advance!
October 10, 2007 at 11:09 pm #8839Christian RathgeberParticipantThe result is a FPScript formula:
Signal( ReadTextFile(“C:\tmp\test.txt”, 2, 0, 2, 2, FALSE, _TYPE_FLOATINGPOINT64, FALSE, ” “, FALSE), _ReadTextFile(“C:\tmp\test.txt”, 2, 0, 1, 1, FALSE, _ TYPE_FLOATINGPOINT64, FALSE, ” “, FALSE))
I tried this with Flexpro 7.0 but it doesn’t work. Do I have to change the code?
Thanks
October 11, 2007 at 6:14 pm #8840Bernhard KantzParticipantYou have to enter two backslashes for the string with the path of the text file.
Example:
“c:\\temp\\test.txt” -
AuthorPosts
- You must be logged in to reply to this topic.