PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

remove device from device array for task

I programmatically created channels/tasks.  When I use 'Analog 1D Wfm NChan NSamp.vi' to read data I get error -50103.

 

I think the reason for this is that when the Task is created 2 devices are assigned to it instead of 1.  I create voltage channels for SC1Mod6 but the Task lists Dev17 along with SC1Mod6 in the device array.  I create thermocouple channels for SC1Mod3 and its Task lists Dev17 along with SC1Mod3 in the device array.  Therefore the conflict.

 

I don't have this issue when I create voltage channels for high speed cards.

 

I know that the parameters I send never contain Dev17 in the Channel Name.  In the PPT file enclosed I show my hardware configuration according to MAX.  I've also included pictures of code for 'Setup All Voltage Channels.vi' which creates the voltages channels and tasks and 'Setup All TC Channels.vi' which creates the thermocouple channels.  Unfortunately I have not been able to attach the VIs or .png files.

 

Why is it assigning 2 devices to a task when it should only assign one?  How can I prevent this?

0 Kudos
Message 1 of 10
(6,486 Views)

this VI creates the voltage channels and tasks

0 Kudos
Message 2 of 10
(6,485 Views)

this VI creates thermocouple channels and tasks

0 Kudos
Message 3 of 10
(6,483 Views)

for some reason I can't seem to attach anything.  Could I emails these files to someone?

0 Kudos
Message 4 of 10
(6,481 Views)

Try zipping up your VIs and posting the zip file.  I'm having trouble posting VIs myself.  Haven't ran into an issue with zip files yet.


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 5 of 10
(6,477 Views)

all files previously mentioned in a zip file

0 Kudos
Message 6 of 10
(6,475 Views)

trying this again

0 Kudos
Message 7 of 10
(6,474 Views)

not working, any other suggestions?

0 Kudos
Message 8 of 10
(6,473 Views)

additional information ...

 

The high speed cards (PXI-6133) reside in a PXI-1045 chassis.  Dev17 (PXI-6251) and the SCXI cards (PXI-1102C) reside in a PXI-1052 chassis.  Dev17 communicates with the SCXI cards over the backplane of the chassis.

 

In another configuration I have setup the PXI-6251 in a PXIe-1065 chassis communicating with SCXI cards (PXI-1102C) in a SCXI-1001 chassis via cable. 

 

The code I'm using is the same in both setups.  Why does it work in the PXIe-1065 & SCXI-1001 and not with the PXI-1052?

0 Kudos
Message 9 of 10
(6,469 Views)

trying to attach ZIP file again

0 Kudos
Message 10 of 10
(6,461 Views)