Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Max virtual channels and LabVIEW 8 Initializes three digiatl ports.

I have LV 8 and PCI 6025E.
Using the new global virtual channels, and DAQmx, how do I have a VI that will intialize three global virtual channels/ports?
digital port A, B and C of PCI 6025E.

 Pseudocode
       array of virtual channels VC [ portA, portB, portC];
       array of boolean   portdata;
 
             portdata =  {false, false, false, false, false, false, false, false };  /* port ABC:0 - 7 */
        For vc = portA to   portC {
                initializedigitalPort  (VC, portdata);  /* pass in virtual channels port A, B and C */ 
        }
        next port;
------------------------------------------------------------
  begin of initializedigitalPort ( globalvirtualchannel VC, arrayofboolean portdata)
 {
            createtask (VC)
                writetodigitalport ( task, portdata);
             cleartask;
 }
 
  Please give me an example in LabView 8 and DAQmx for doing this, especially the for loop





        Next;


0 Kudos
Message 1 of 2
(2,764 Views)
There are lots of examples on how to do digital measurements installed with the drivers. 

You can find those examples in this path:
C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Digital
0 Kudos
Message 2 of 2
(2,755 Views)