Vensim Get Data with subscript
Posted: Fri Aug 31, 2012 11:25 am
Hi,
When I use Vensim_Get_Data, I find that I must put the subscript element in the variable name, I can't put the actual name of the subscript range and get all the output. Any advice on how to simplify this process and just use the subscript name to get data on all the elements?
Many thanks,
Sarah
What I want to do:
tpoints = vensim_get_data("test.vdf", "Industry Volumes[Channel]", "time", qval(1), tval(1), 100)
What I must do:
tpoints = vensim_get_data("test.vdf", "Industry Volumes[supermarket]", "time", qval(1), tval(1), 100)
tpoints = vensim_get_data("test.vdf", "Industry Volumes[conveniencestore]", "time", qval(1), tval(1), 100)
tpoints = vensim_get_data("test.vdf", "Industry Volumes[gasstation]", "time", qval(1), tval(1), 100)
When I use Vensim_Get_Data, I find that I must put the subscript element in the variable name, I can't put the actual name of the subscript range and get all the output. Any advice on how to simplify this process and just use the subscript name to get data on all the elements?
Many thanks,
Sarah
What I want to do:
tpoints = vensim_get_data("test.vdf", "Industry Volumes[Channel]", "time", qval(1), tval(1), 100)
What I must do:
tpoints = vensim_get_data("test.vdf", "Industry Volumes[supermarket]", "time", qval(1), tval(1), 100)
tpoints = vensim_get_data("test.vdf", "Industry Volumes[conveniencestore]", "time", qval(1), tval(1), 100)
tpoints = vensim_get_data("test.vdf", "Industry Volumes[gasstation]", "time", qval(1), tval(1), 100)