Hello Michael,
I'm not sure, if I understand your problem right so I will give a short summary of how I understand what you want to do. Your Instrument returns data from 50 channels per scan and you have to start the data acquisition for these 50 channels by sending one command (
START.......xxx) to the instrument. For each scan you have to send a slightly different command to the instrument.
One way to pass the commands to be sent to the instruments to the script might be using one of the device parameters that are passed as parameters of the SFD_Init() function. You can take these parameters and save their values to script global values so that you can access these data throughout the entire script. In the dialog for the driver you can enter the commands to be send to the instrument e.g. as a comma separated list. In SFD_GetScan() you can select the correct command from this list (e.g. selectet by a scan counter) and send it to the instrument.
However if you have to send the START command per channel, it will be much easier to implement this in SFD_ReadChannel. If the parameter xxx of the START command is the number of the channel you want to acquire, you can use the parameter ChannelNumberP (channel number in the dialog) for this purpose.
I hope this helps
Rainer