02-21-2006 02:10 AM
02-21-2006 06:12 AM
This is really a Data Aquisition question (not necessarily LabVIEW).
I think you need to specify exactly what NI hardware you are using, which signals/pins, what DAQ functions you are calling and whether traditional or mx.
02-21-2006 08:06 AM
Thanks for your reply Mark,
I am using an NI 6602 card connected to a SCB-68 pin block in a CA-1000 enclosure. I am using all 7 counters for different functions but the one that is reverting to an inderterminate state is counter 2 (i'm ouputting a single pulse to the counter on pin 32). It only does this when I try to send a digital output to DIO 3 (pfi_3) which is pin 12, after calling the counter (if the digital channel is not changed the counter remains at low). I.e. the counter output goes from low to high to low. Then after the digital output it reverts to an indeterminate state which is about 1/3 of digital 1. I am using DAQmx and calling the following VIs:
For the digital output i've used
Both the 'DAQ assistant' configured for digital output and a task that I configured in MAX and used in Labview with 'DAQmxwrite'
For the counter output i've used
'Daqmx create channel' configured with 'CO pulse time' (finite samples, 1 sample, implicit). I then use 'start task', 'wait until done' and 'stop' (i've tried 'clear' too). Before 'Daqmx create channel' I have a 'create task' VI.
It seems bizarre to me. Equally strange is that this problem only seem to occur when the digital ouput is invoked after the counter output. I can invoke it as many time as I like before.
Hope you able to help although I appreciate this is an unusual one. Let me know if I can provide any more information.
Regards,
Stephen
02-21-2006 12:03 PM
02-22-2006 10:59 AM
Thanks Kevin for your reply.
This was undoubtelby peculiar behaviour. The explaination could be physics rather than computing. I managed to find a way around it by transferring the digital task to another card (fortunately our system has both 6602 and 6621 cards mounted in it). The 6621 card was hardly used except for a few digital output lines whereas the 6602 was using all 6 counters and some digital/triggering lines. Whatever the cause, easing the load on one card solved the problem a treat.
Thanks anyway for your reply and for your time. This was my first time using this forum and it was a good experience. I think this will prove to be an invaluable resource for support as I do quite a lot of Labview and problems like this that aren't in the book often crop up.
Regards,
Stephen