LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

csv Datei erstellen: Unterschied Win NT zu Win2K

Ich programmierte ein VI mit dem ich csv-Dateien erstellen und abspeichern kann.
Dieses VI programmierte ich mit meiner Entwicklungsumgebung LabView 6.0.2 auf Windows 2000 Professional.

Nun wollte ich dieses VI auch auf unserem Prüfgerät-PC, auf dem das Windows NT Workstation installiert ist mt der Eintwicklungsumgebung LabView 6.0.2., einsetzten. Jedoch erstellt mir das VI hier kein csv-File!

Hat diese Problem mit den verschiedenen Windows-Betriebssystemen zu tun oder mit einer Einstellung in den Systemsteuerungen?
Die Ländereinstellungen sind auf beiden PC gleich (Deutsch (Schweiz))...
0 Kudos
Message 1 of 10
(3,933 Views)
Dear M. Wyss,
Sorry, I don't speak German, so I'll just add Altavista translation at the bottom.
Could you give us some more information on what is happening when you run your VI on Windows NT? Do you see the text that you want to write in the string indicator in your VI? If you are using the File I/O VIs to create the csv file, do they return any errors? Is the csv file not created at all on the Windows NT machine? Or, is it created but doesn't have the correct data? Are you logged on as an administrator?
The best way for you to write the csv file is to use "Write to Spreadsheet File" VI (on the File I/O palette). By default, it is used for reading comma separated files. For writing csv files, just set the delimiter input to be a comma instead of a tab (\t)
. You can also look at the shipping example Write Table to XL and modify it.

Altavista translation:
"Traurig, sprechen I don't Deutsches, also fügen I'll gerade Altavista Übersetzung an der Unterseite hinzu. Konnten Sie geben uns mehr Informationen über, was geschieht, wenn Sie Ihr VI auf Windows NT laufen lassen? Sehen Sie den Text, den Sie in die Zeichenketteanzeige in Ihrem VI schreiben möchten? Wenn Sie den Akte I/O VIs verwenden, um die csv Akte herzustellen, bringen sie irgendwelche Störungen zurück? Wird die csv Akte nicht an allen auf der Windows- NTMASCHINE hergestellt? Oder, ist sie verursachte, aber doesn't haben die korrekten Daten? Werden Sie als Verwalter angemeldet? Die beste Weise, damit Sie die csv Akte sollen "Write zum Verteilungsbogen File" benutzen schreiben; VI (auf der Akte I/O Palette). Durch Rückstellung wird sie für Lesekomma getrennte Akten verwendet. Für Schreiben csv Akten stellen Sie einfach die Begrenzung eingegeben, um ein Komma anstelle von einem Vo
rsprung (ein \t) zu sein. Sie können das Verschiffenbeispiel auch betrachten schreiben Tabelle zu XL und ändern sie."

Zvezdana S.
National Instruments
0 Kudos
Message 2 of 10
(3,933 Views)
Dear S. Zvezdana

The problem is, that my VI doesn't create a csv File.
On my Windows2k Machine the csv-File was create and the data was correct. But on my Win NT Station, the VI doesn't create a csv File.

On my Frontpanel in the VI i can see the Text who i want to write in this csv-File!
The data is correct...

Yes i using the File I/O VI's to create the csv-File.
No they return no errors, the VI is in function, but only on my Station with Windows 2000.

So, i hope you understood my English, it is not very good.
I hope that you can help me, about my Problems...

Thanks a lot for your help!!

Greetings M.Wyss
0 Kudos
Message 3 of 10
(3,933 Views)
csv does not sound like a good idea on a swiss OS, because the decimal separator is also a comma there, possibly leading to unexpected results.

Still, you should be able to write a file to disk, or at least get an error trying if all error clusters are properly handled.

Is the file name automatically generated? In this case you must make sure that the target folder actually exists. It will not create missing folders before writing! Remove the wire to the path input so you get a manual file dialog. Does it work now?


Have you tried to spend a few minutes writing a mini-VI that just writes a few characters to disk? Does this work?

How about permissions? Can you manually create a simple text file in the desired destination folder?

tschuess
!
0 Kudos
Message 4 of 10
(3,933 Views)
Hi M. Wyss,
'altenbach' gave some great troubleshooting tips. As he mentioned, the csv file should be created (even if with no data), or the File I/O VI should return an error. Make sure you are wiring all the error clusters.

Please try creating the simpliest .txt file with the "Write Characters to File" VI, and save it to your hard drive (not network folder)

Zvezdana S.
0 Kudos
Message 5 of 10
(3,933 Views)
OK, i'll do this and will give you after this test a feedback about my congnitions...

Thanks altenbach an you for your help...

Greetings M.Wyss
0 Kudos
Message 6 of 10
(3,933 Views)
The Problem is that it gave no errors back with the error-cluster.
But the File name didn't create.
The folder is actually exists.
The Same on the Windows2000 System, but there it works!

So i will spend a few minutes to create a simple txt-File on the WindowsNT System and gave you than my congnitions...

Thanks for your help!!

Greetings from Zürich...

M.Wyss
0 Kudos
Message 7 of 10
(3,933 Views)
M. Wyss,
It is really strange that you don't get any errors but the file doesn't get created.
Please try running this simple VI that creates text file. As long as you don't already have C:\test.txt, this file should be created under C:\ and you shouldn't get any errors.
By the way, are both 2000 and NT machines with swiss OS's?
Zvezdana S.
0 Kudos
Message 8 of 10
(3,933 Views)
OK i used your WriteTextFile.vi on my WindowsNT station.It works and create the Text File with the data in there!

So i used my Dokumentation.Vi and followed the Error-Handling. The VI created the data, but the File didn't create. But it's very strange that i become no Errors back!I used the normal Error-Handling with the error-out cluster...

About your question:
Yes both Systems are with swiss OS's...
0 Kudos
Message 9 of 10
(3,933 Views)
I used teh simple Vi from Zvezdana to create a simple text File! It is running and creates this txt.File in my C:\ Folder on my NT-Station.....

Should i change the langugae-preferences to another country and will try it with this preferences?

Greetings M.Wyss
0 Kudos
Message 10 of 10
(3,933 Views)