05-25-2007 11:20 AM
05-31-2007 04:21 AM
Hi again,
I am just expanding the program which i was discussing with you before. Now I have added another 5 counters to it and having counter 0 and 1 as the finite pulse generation and ctr0Internal output as the trigger source, Number of samples I have defined is one. Once the pulse generation is started, it will generate a single pulse, I would like to check whether the pulse generation is done after generation of one pulse, so that once I know it s finished, I would like to reset the pulse handling task and start it again to generate another single pulse. Is there anyway to work around.
Thanks
05-31-2007 09:19 AM
05-31-2007 11:31 AM - edited 05-31-2007 11:31 AM
Hello,
I think I have resolved the issue of Pulse Done check function, but when I m trying to close my form it is getting crashed. I have reset all the functions used but still when i m trying to end the program/ close the form program is crashed. I have attached thge program. Any suggestions would be appreciated.
Thanks
Message Edited by Support on 07-13-2007 01:30 PM
06-05-2007 07:52 AM
Hello
I have sorted out the problem by removing Pulse done function, instead used wait till task done function to get the polling result whether the pulse generation is completed or not. I have another issue now, Is there any equivalent function for DIG_IN_LINE , DIG_OUT_LINE and DIG_CONFIG_LINE in Daqmx library?
Thanks
06-06-2007 03:24 AM
Hi there,
What are you trying to do with DIG_IN_LINE etc?
I'm a little confused as to what you need.
"DAQmx.DAQmxCreateDIChan" and "DAQmx.DAQmxCreateDOChan" will create digital virtual channels
Thanx
AdamB
06-06-2007 03:41 AM - edited 06-06-2007 03:41 AM
Message Edited by Support on 07-16-2007 10:51 AM
06-06-2007 04:04 AM
06-06-2007 04:15 AM
Hi,
Thanks for your help.
Regards
06-06-2007 10:01 AM - edited 06-06-2007 10:01 AM
Hello Adam,
Have tried the function DAQmxCreateDoChan and ReadDigitalLines / WriteDigitalLines and it worked fine. Thanks. But getting a error as " 0 " when i tried to get the position of lamp. Program is not crashing, getting the expected result but with a message "0" , What may cause this problem?
Thanks
Message Edited by Support on 07-13-2007 01:30 PM