03-09-2010 04:35 PM
Hey all,
I have a unique question for some experienced DasyLab users. Is there any good way to pass data to/from DasyLab from an external script? Basically I have another data program with a Python script that I need to pass data from into DasyLab for display, as well as some data from DasyLab back to the script for transmission. Initially I tried this with an OPC server, but that was very slow. Recently I've been using a DDE link, but that is also somewhat slow and has its limitations. Today I tried using 2 RS232 ports looped to eachother, which is very fast, but when passing around 15 values seems to have an incredibly long delay.
I need to pass this data at around 10Hz. 20Hz would be ideal.
Is there a programmatical way to access the global variables used by DasyLab? There must be some great way to do this that I can't think of...
Thanks,
RJ
03-09-2010 04:59 PM
Today, I think that you have to write an extension using the extension dll toolkit.
Clearly we've been thinking about this... our partner in Germany, MeasX, has posted this at www.dasylab.com. You can contact them directly with questions at www.measx.com.
They are developing some extensions to DASYLab, and this is one of them ( I just copied from the announcement, I did not fix the English :
The module „Script “ offers the possibility to merge any Python Script into a worksheet. This script always becomes processed, while the module is addressed. The open source script language „Python “ is comparable with VisualBasicScript and offers a multiplicity of possibilities. So e.g. a number of configurable global stringers and variables as well as entrances and exitsof the module can be accessed . In module also a lot of other things can be defined such as the characteristics of the output channels (type of channel, channel flag, etc.), so that other modules in worksheet are able to process these data.
http://dasylab.com/content/content.php?action=opendoc&sid=301&kat=news&rcid=109
03-15-2010 10:02 AM
Hey CJ,
Thanks for pointing that out. Their Python extension looks like exactly what I need. Unfortunately, I e-mailed them about it and was informed there is no beta version ready and they do not have a date of when the toolkit might be available. I will definitely be keeping my eye on it, however.
So, back to the DLL toolkit, do you have any examples that might be helpful? I can't find very much information on this toolkit at all.
Thanks,
RJ
03-15-2010 06:04 PM
This is what's on the V11 CD...