08-28-2013 12:30 PM - edited 08-28-2013 12:50 PM
I'm new to dasylab and have come across something that has stumped me. I need to set a Response Time slider and a Run Length slider then press a Run button. After the run button is pushed, the system waits for (Response Time) seconds and writes data via DDE to an excel spreadsheet for (Run Length) seconds. I'm writing the Run Length slider data to a ${RUNLENGTH} variable and the Response Time slider to a ${RESPONSETIME} variable. I can get the DDE to write on demand using a push button and a relay, but can't seem to get the delay to work.
EDIT>
Additional info: I've set up a simple worksheet that uses Time Delay modules and it works fine, but when I use Time Delays in my real world project, I get the following error:
"The time information or block length of the input channels do not match. These channels cannot be linked in this module. STOP!"
I don't get this error if I use a fixed value in the duration slot rather than the ${RESPONSETIME} variable.
I've resolved this up to this point by choosing "Input" in the synchronization options of the Slider or Read Variable modules. I don't see how to do this for the Time Delay module.
Solved! Go to Solution.
08-29-2013 11:44 AM
Hello,
Are you using any NI hardware with your DASYLab application? Unfortunately, our applications engineers here at National Instruments do not support the DASYLab environment but if you have any questions pertaining to NI DAQ hardware or how it interfaces with DASYLab, National Instruments would be able to help you.
Otherwise, you can refer to the following link for technical support with DASYLab.
DASYLab:
http://www.dasylab.com/content/mydasylab.php?action=start
Thanks,
08-29-2013 12:06 PM
This is also a good DASYLAb forum,
When you use the delay function, the firs X amount of time will be nothing, that is why you get the error.
You could use a compy trigger with the delay post trigger in seconds, this could do the same task.
09-04-2013 03:53 AM
I like statemachines, but that might be to much for the questioned purpose... 😉
(see attached picture and the zipped DASYLab 12 worksheet)
10-08-2013 04:53 PM
Thanks for posting the example file. This helped greatly and gave me some insight into a different approach to programming in DASYLab.