01-13-2015 03:02 PM
You are only supplying a single channel in the DAQmx Channel when the example is set up to handle 8. Use P0.0:7 for your channel (with the device name in there too). The 0:7 says to use the range of channels.
01-13-2015 03:53 PM
Thanks
Are you suggesting that I put this in a format like the following?
PXI8::0::INSTR/P0.0:7
01-13-2015 05:12 PM
robojeff wrote:
Are you suggesting that I put this in a format like the following?
PXI8::0::INSTR/P0.0:7
That should work.
01-14-2015 05:42 AM
Thanks but I keep getting an error...
It does not like the colons so I changed it like in the attachment but this doesn't work either.
My PXIe-6341 device is named "Dev1" in the NIMax so I changed the previous task from a drop down list
to the following constant
Dev1/P1.0:7 Is this correct?
Here is the error that I am getting and attached is a screen shot of my code and my vi.
Error -200170 occurred at DAQmx Create Channel (DO-Digital Output).vi:6970001
Possible reason(s):
Physical channel specified does not exist on this device.
Refer to the documentation for channels available on this device.
Device: Dev1
Physical Channel Name: P0.0
Task Name: _unnamedTask<A>
Thank you
01-14-2015 06:46 AM - edited 01-14-2015 06:46 AM
Ok, I got my naming messed up. Now I'm questioning which modules I saw the dot notation on....
Anyways, your channel is actually Dev1/port0/line0:7.
01-14-2015 02:49 PM
Thanks crossrulz
Do you know if I can substitute the I/O DEV1/port0/line0:7 with a string?
I have a few radio buttons that I would like to use to toggle one line at a time
and I am thinking of connecting these to a case structure.
01-15-2015 06:25 AM
robojeff wrote:
Do you know if I can substitute the I/O DEV1/port0/line0:7 with a string?
I'm pretty sure you can. Go ahead and try it and see what happens.