07-27-2007 08:03 AM
07-30-2007 12:04 PM
07-31-2007 12:21 AM
07-31-2007 02:43 PM
08-01-2007 12:04 AM
Hi Jesse,
Yes, something was wrong when I tried the code. But it was not the beginning "/" it was the "Dev1/" prefix.
When I tried the code in the previous code, I got an error like invalid resource or smth like that.
Then, I changed the channel name from "Dev1/pfi9" to "pfi9" only and it worked without any errors and correctly counting the edges only during the gate pulse.
My gate pulse was supposed to block the counting of 80 edges out of 200 and I actually got a count of 120 which is what I wanted.
Could you please also verify that my way of channel name assignment is correct or not?
Thanks for all the help.
08-01-2007 03:53 PM
08-02-2007 12:29 AM
I think it is strange to be able to specify a digital port, for example, by "Dev1/port0" and getting an error message for "Dev1/pfi9".
Is there a specific reason for requiring the first "/" while specifying a PFI channel and not requiring it for a digital port or an analog channel?
In my application, writing only "pfi9" (without "Dev1/") worked. That was also unexpected for me.
08-02-2007 03:06 PM