LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ-PXI 6259

Hi,
I am using Labview 7.1 and NI PXI 6259 DAQ card.
I want to configure 'n' no.of digital channels at a time but each channel has to stop the task at different time.Is it possible to do this??
Suppose consider i need to configure some 8 digital channels in that i need to write 4 channels continuously and 5th channel for 5 seconds,6th for 3 Seconds,7th for 2 seconds,8th for 10 seconds.I will come to know abt the no.of channels and whether it is for continuous or for finite time only at run time.Is there any method to configure the virtual channels by grouping all 8 channels but stop each channel at different time??
 
Plz help me in this
 
Regards
Meenatchi
0 Kudos
Message 1 of 3
(2,918 Views)
What do you mean by "stop"?
If you mean go back to zero, then why not just set it to be zero after X time, this will also work for being one, or whatever other output states your card allows.
 
I would suggest making your output waveforms separately, with all the start and stop times configured, then combining them into the 8 channel waveform (I forget the function right now).
 
 
 
0 Kudos
Message 2 of 3
(2,912 Views)
Hello Meenatchi,

It appears what you are trying to do is to use synchronized digital output so that one sample is output on all of your lines at the same time, for different lengths of time.  If this is the case, then what Britoa suggests is probably the best way to go about it.  You can programatically "decide" what you want to output and then build a digital waveform to reflect the behaivior you want to see. For example, if you wanted to output at 1kHz and you wanted channel 1 to output continuously while channel 2 only output for 1 second, then you would programatically construct a waveform where channel 2 was set low after 1000 samples.  The example that I would start with would be the Cont Write Dig Port-Ext Clk-Non Regeneration.vi

As far as having different tasks running, the only way you can do that is if you use software timing (1 sample On Demand) for the different lines.  You can then create a different task for each line and stop them independently as shown here:



Your lines will not be synchronized, but you could then use a case structure to decide whether to write to each line or not.

I hope this gives you a place to start, post back if you have any issues programming this.


Message Edited by Neal M on 12-26-2007 01:42 PM
Neal M.
Applications Engineering       National Instruments        www.ni.com/support
0 Kudos
Message 3 of 3
(2,880 Views)