Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Base device identifier

I am writing code for DAQmx Base on Macintosh OS X.

I just got to triggered ai scanning. I find what seems like a peculiar thing. In my scanning application, I have to enter the analog input channels with the string "dev1/ai0:1" but the trigger pin specification must be "/dev1/pfi0". Note that "/" at the beginning of the trigger pin, and the lack of it at the beginning of the analog input channels.

Am I missing something? Is this expected? It's confusing, even if it's expected.

If I use "/dev1/ai0:1" I get error -200430 "I/O type of the physical channel does not match the I/O type required for the virtual channel you are creating."

If I use "dev1/pfi0" for the trigger source, I get error -200220 "Device identifier is invalid. (Start Trigger Terminal)"
John Weeks

WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
www.wavemetrics.com
0 Kudos
Message 1 of 3
(3,250 Views)
What you are seeing is expected behavior.

When addressing lines for output or input you need to write it in the "DevA/aiB" format.

For trigger lines you need the format to be "/devA/pfiB".
0 Kudos
Message 2 of 3
(3,205 Views)
Thanks for the info, Otis. I'm not sure it makes sense, but as long as I have a rule I can live with it.
John Weeks

WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
www.wavemetrics.com
0 Kudos
Message 3 of 3
(3,200 Views)