Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a DAQmx function to duplicate the Traditional DAQ "Channel to Index.vi"

Solved!
Go to solution
I have been converting an old app using Traditional DAQ to DAQmx.  It is a complicated piece of code and does the group config setup of all the channels available, then the user selects the specific channels to acquire data on.  It uses the "Channel to Index.vi" to accomplish this.  Is there a way to duplicate this functionality within DAQmx, or will I have to rewrite the whole mess?  Thanks.
KMoller
0 Kudos
Message 1 of 5
(3,787 Views)

Hi KMoller,

        It sounds to me like you should be able to replace your group configuration setup with a DAQmx Create Virtual Channe.vi and then simply input your channels in the syntax according to this KB.  Let me know what other specific questions you have- or if this isn't what you're looking for.  Thanks!

 

Message 2 of 5
(3,772 Views)

Thanks for the suggestion, aNltaB.  I did this when I did the original conversion to DAQmx.  The problem I had was that for the Calibration Case all of the channels available on the 1102 modules were set up.  Then, when the true test data acquisition portion was run, it used only the channels, in possibly a wierd order, that the user had selected.

 

I am going to split the 1102 channel setup into a Calibration Acq vi and a Test Data Acq vi & set the channels appropriately in each vi, making sure to close the specific task when leaving one or the other.  I think this should work.

 

 

KMoller
0 Kudos
Message 3 of 5
(3,768 Views)

Hi Kmoller,

         That sounds like a good idea, if it doesn't work, let me know.  Have a good one!

 

0 Kudos
Message 4 of 5
(3,753 Views)
Solution
Accepted by topic author PacMan
Thanks aNltaB.  I was able to set up a task with the necessary channels for each thing I was doing and get around the necessity of configuring all the channels and then indexing them.  I wasn't sure how it was all ingrained in the program, but doing separate tasks seems to work well.  As far as I'm concerned, this problem is solved. 
KMoller
0 Kudos
Message 5 of 5
(3,749 Views)