DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Using channel index in command datafilesavesel doesn´t work

Hello,
 
I want to export all channels from the group "MinMaxCurves". I´m using following command which should work:
DataFileSaveSel("C:\MinMaxCurves.csv", "CSV", "'MinMaxCurves/[1]' - 'MinMaxCurves/["&str(GroupChnCount(GroupIndexGet("MinMaxCurves")))&"]'")
 
But I get this error message:
 
"Im Befehl "DATAFILESAVESEL("C:\MinMaxCurves.csv", "CSV", "'MinMaxCurves/[1]' - 'MinMaxCurves/["&str(GroupChnCount(GroupIndexGet("MinMaxCurves")))&"]'")" kann der übergebene Text "5-4" des Aelektionsparameters nicht fehlerfrei interpretiert werden."
 
Normally Diadem should use the index from channels. But instead of using the index, Diadem use the numbers. 5 is the number from my first channel and 4 from my last channel. I also tried out ExtendChnName = "NameIndex" command.
 
Why Diadem won´t use the index?
 
Regards
Marcel
0 Kudos
Message 1 of 3
(3,758 Views)
Hello Marcel!
 
IMHO this is a bug in DIAdem. This occurs if the channel numbers are not in an ascending order in a channel group. The only solution I know is a previous call to the command 'ChnRenumber'. But this will change all channel numbers! No problem if you access the channels by name.
 
Matthias


Message Edited by Twigeater on 07-07-2008 05:01 PM
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 3
(3,756 Views)

Hello Matthias,

thank you for your help. Now it works!

 

Regards

Marcel

0 Kudos
Message 3 of 3
(3,751 Views)