LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert sgl to txt?

Hello

i´m a newbie in Labviwe, but i have to use in some ways. Iwas recording 4 channels of data with 4 bits. It was saved in SGL format. How can i convert the data into text format useing 7.1?

thanks
0 Kudos
Message 1 of 6
(3,669 Views)
Hi,

Think this will help you:

Read SGL File.vi (inbuilt) > Array to Spreadsheet String (function) > Write characters to write.vi (inbuilt)

please tell me if this has worked for you or not.
Regards,
Sreedhar T
0 Kudos
Message 2 of 6
(3,664 Views)
thanks a lot, it worked with small modifications:

Read SGL file.vi -> Write to Spreadsheet file.vi

but i have a new question: is it possible to convert SGL to Excel?
0 Kudos
Message 3 of 6
(3,646 Views)
The file that is saved using Write to Spreadsheet file is a very simple file which can be opened by excel.
It is so simple, in fact, that it can be opened using notepad.
It is basically just the data with a seperator (the tab character by default) between each two values and a CR (enter) character at the end of each line.
Just right click the file, select "open with..." and select excel.
Or you can drag it into excel.
Or you can select "open" in excel and open it.

___________________
Try to take over the world!
0 Kudos
Message 4 of 6
(3,636 Views)
Hi all. Scuse me for my bad english but i'm french.
I'm newbie in Labview and i'have a difficult to convert SGL file to txt.
I have an permission error on the OPEN FILE.vi (READ FROM SGL FILE.vi -> OPEN FILE+.vi -> OPEN FILE.vi)
The objetives is to extract of the SGL file a password for a comparaison.
Thank for help.
0 Kudos
Message 5 of 6
(3,606 Views)
Hi Ikoria,

You mention "password". This sounds to me like you are using an ASCII (text) file. A SGL file is NOT a text file, but a binary file of the data types singles (SGL).

  • What is the error you are getting - does it have an error code number?

  • Make sure that the file is not set to "Read only".

  • Did you write the file using the "Write To SGL File.vi"? If not, how did you write the file?

Please attach a simplified version of your VI for us to see what you are doing, thanks.
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 6 of 6
(3,585 Views)