LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

question: How do I change the number of channels in a DAQmx code?

So far I have a control however, I want to make a more user friendly controller and I get the following error if I manually delete one of the channels?  DAQ test is the main VI.

 

Error -200099 occurred at DAQmx Create Channel (AI-Voltage-Basic)Vi:5

 

Physical channel not specified.

Download All
0 Kudos
Message 1 of 7
(2,882 Views)

Lots of subVI's are missing.  Where is "DAQ Assist.vi" which seems like it probaby contains the Create task VI?

 

Is this happening on an analog output task?  Did you reduce the amount of data in the array so that it corresponds to the number of channels now in the task?

0 Kudos
Message 2 of 7
(2,877 Views)

You may want to look in Example Finder (Help>>Example Finder) for DAQmx examples. Learn how to program multi-channel VIs, then compare them with what you have. 🙂

TailOfGon
Certified LabVIEW Architect 2013
0 Kudos
Message 3 of 7
(2,873 Views)

Yes it is for the analog output task and I did reduce the amound of data in the array.  I have attached the DAQ Assist.vi

0 Kudos
Message 4 of 7
(2,864 Views)

What about Untitled6.vi?  That is the one that seems to be related to the analog output tasks.

0 Kudos
Message 5 of 7
(2,860 Views)

I am only running DAQ assist and DAQ test the other file was uploaded by accident

0 Kudos
Message 6 of 7
(2,856 Views)

At the top of your VI (at least they wound up at the top after I ran block diagram cleanup since the wiring was a mess), there are two subVI's.  Untitled 6.vi and also Relay Off.vi.  The DAQ create channels in one of those subVI's might be causing the problem.

 

Do you know exactly where the error is generated?  Your error code "Error -200099 occurred at DAQmx Create Channel (AI-Voltage-Basic)Vi:5" tells it is the 5th instance of the DAQmx Create Channel (it is a reentrant subVI).  But I have no way of correlating that with a particular location in your VI's.  Put probes on your error wires and see where the error is actually happening!

0 Kudos
Message 7 of 7
(2,840 Views)