04-14-2019 04:20 PM
Hi
I'd like to assign PFI to input,output,arm,aux channels of a counter, instead of using the default PFI route.
- How can this be done programmatically in labview with DAQmx ?
- If the answer is using the "DAQmx Connect" then what direction should I use (counter to PFI or PFI to counter) ? Where can I find the strings that correspond to each PFI and counter channels ?
- If a PFI is assigned to a counter input, but there is only a CO task running on that counter, can I use this PFI as trigger input for that CO task ? Can I use this PFI as trigger input for other tasks that is not running on this counter ?
Thanks in advance !
04-14-2019 11:31 PM
Will answer inline in red:
I'd like to assign PFI to input,output,arm,aux channels of a counter, instead of using the default PFI route.- How can this be done programmatically in labview with DAQmx ?
Most of those input signals would be set with DAQmx property nodes. Most PFI input pin routing is done via Channel, Timing, or Trigger property nodes. Output pin assignments can be done either with a DAQmx Channel property node or via DAQmx Export Signal.vi
- If the answer is using the "DAQmx Connect" then what direction should I use (counter to PFI or PFI to counter) ? Where can I find the strings that correspond to each PFI and counter channels ?
Right-click the terminal of DAQmx Export Signal and create a control or constant. That'll create something of the correct datatype.
- If a PFI is assigned to a counter input, but there is only a CO task running on that counter, can I use this PFI as trigger input for that CO task ? Can I use this PFI as trigger input for other tasks that is not running on this counter ?
Generally, yes. The same PFI signal can usually be routed to different tasks for different purposes. For example, it's common to sync tasks by having all of them configured to use the same trigger signal.
-Kevin P