PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can the PXIe-6341 drive solid state relays?

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 11 of 17
(2,692 Views)

Thanks

 

Are you suggesting that I put this in a format like the following?

PXI8::0::INSTR/P0.0:7

 

 

0 Kudos
Message 12 of 17
(2,686 Views)

robojeff wrote:

Are you suggesting that I put this in a format like the following?

PXI8::0::INSTR/P0.0:7


That should work.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 13 of 17
(2,682 Views)

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

 

Download All
0 Kudos
Message 14 of 17
(2,670 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 15 of 17
(2,666 Views)

 

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.

 

0 Kudos
Message 16 of 17
(2,652 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 17 of 17
(2,640 Views)