What does .asc in script?

Hello

I hjave a script in which it is said to open channel.asc and writing. What it means? where is he going to create this .asc file? What is the necessitty to do so?

Here is the script below. Please one let me know why is this necessary?

Void channel_asc
AUTODRVUSER = AUTODRVUSERTMP_

Call FILEOPEN (AutoDrvUser & "Channel.asc", 0)

Call FILEWRITELN (AutoDrvUser & "Channel.asc", 1, "")

L1 = 1

Do L1<>

If CHNNAME (L1)<>"" then

Call FILEWRITELN ("Channel.asc", 1, CHNNAME (L1))

On the other

L1 = ACTCHNNO

End If

L1 = L1 + 1

Loop

Call FILECLOSE ("Channel.asc")

AUTODRVUSER = AUTODRVUSER_

End Sub

Thanks in advance.

Rsh

Hi, RSH,.

The script you posted is one thing only - creates a new file called "Channel.asc" and filled it with the names of all the channels currently in the tiara.  The "Channel.asc" file is created in the directory stored in the variable "AutoDrvUser", which is the old variable that stores the current default directory for reading and writing data files.  It usually contains the folder that you loaded changed a file of data (interactive mode).  *.Asc file extension means ASCII, which means a text file, which it is.

Brad Turpin

Tiara Product Support Engineer

National Instruments

Tags: NI Software

Similar Questions

Maybe you are looking for