05-24-2007 09:46 AM
Hey there,
Now you shouldn't normally get any kind of error using this, however the Clear task does actually stop the task first. And THEN clear the task.
I would suggest taking out the stop task.
AdamB
05-24-2007 10:07 AM
Hi Adam,
I have tried to run the program without stop task and just having clear task, but still i m gettin same error as @ task not specified @
Thanks
05-24-2007 10:12 AM
Sounds like you have already cleared the task previous to this part of the code.
Have you traced through to see if this is repeated more than once?
AdamB
05-24-2007 10:19 AM - edited 05-24-2007 10:19 AM
Message Edited by Support on 07-16-2007 10:53 AM
05-25-2007 05:36 AM
05-25-2007 06:24 AM - edited 05-25-2007 06:24 AM
Hi ,
I got another problem with generation of pulse. When I have continuous samples used in the function below:
DAQmxErrChk DAQmxCfgImplicitTiming(taskHandlepulse, DAQmx_Val_AcquisitionType_ContSamps, numSampsPerChannel)
it is working fine, it generates the pulse. But when I try Finite samples it is not working properly. There is no pulse being generated.
Have attached the program for reference.
Thanks
Message Edited by Support on 07-16-2007 10:53 AM
05-25-2007 06:36 AM
05-25-2007 06:47 AM
Hello.
Thanks a lot. That fix the problem, Still I have some problems in the program
1) I need to reset the device everytime in MAX explorer to clear the reserved space, is there anyway to reset the device when I close the application?
2) I tried to use Finite and Continuous samples , as I quoted in my previous post. I would like to use finite samples by specifying number of samples. Is there any way to work around this issue?
3) I would like to reset the counter, Can I use this function < DAQmxResetCICountEdgesDir(taskHandle As Long, channel As String) As Long > or anything to work out
Thanks
05-25-2007 07:09 AM
05-25-2007 08:31 AM
Hi there
I m sorry about lot of questions 🙂 ok. Other things are working in the program and no problem with it except pulse generation. As I have attached my program, I have not used adjacent counters in it. I have used Counter 0 for pulse generation and counter 2 for other task. So there is no problem with the setting of counters. But when i tried to use continuous and finite samples, Continuous samples seems to work fine. But finite sample is not taking pulse generated in counter 0 as trigger source ( I hope no generation of pulse at that point). I would like to generate finite pulse say with 1 number of sample. Could you look at my program and suggest me regarding this issue?
Thanks a lot