DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display (or check) the string in a DIAdem channel?

How do you display (or check) the string data in a DIAdem channel? I would also like to export this string (actually its a filename) into Matlab. Please help me on this.

Thanks in advance.
0 Kudos
Message 1 of 2
(3,321 Views)
Hi,

Similar like CHD(ChannelLine, ChannelName) for numeric channels you can use CHT(ChannelLine, ChannelName) for text channels to read or write Data/Text from or into a channel. Example:

Dim tMyText
' create a text channel
Call CHNALLOC("MyChannel",1024,1,DataTypeString,"Text",1,5)
tMyText = "New text"
' write content of tMyText into the first line
ChT(1, "MyChannel") = tMyText
' read first line and store it into tMyText
tMyText = ChT(1, "MyChannel")
' display tMyText
msgbox tMyText

I hope this will help

Greetings

Walter Rick
0 Kudos
Message 2 of 2
(3,321 Views)