LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set DAQ to write to multi line , multi samples

Highlighted

Hi,

 

I would like to write the following pattern to digital lines at 1MS/s  ( finite number of samples)

 

P0.16    000111000111

P0.17    000111111000

P0.18    111000111000

P0.19    111111000000

 

Could you please let me know how should I set the DAQ?

 

Thanks

0 Kudos
Message 1 of 7
(1,059 Views)

I would greatly appreciate your help

0 Kudos
Message 2 of 7
(1,035 Views)

Have you looked at the examples? There is one called Digital - Finite Output. Whether or not you can obtain a 1MHz sample rate will depend on your hardware and you have not mentioned what you are using.

0 Kudos
Message 3 of 7
(1,029 Views)

Hi I am using NI PXIe 6368. I ahve seen that example . That one if for 1 channel Multi sample but I don't know how to relate my boolean array to Data to write array in that example 

Could you please help me to convert it to  appropriate array that can be written to DAQ

0 Kudos
Message 4 of 7
(1,022 Views)

It already is in an appropriate array for multiple channels and multiple samples. The line grouping is set for 1 channel for all lines. The example has a 1D array of U32 which walks a one out through the default 8 lines. The default display can be changed to binary if that makes it easier to visualize the data pattern. If you want to use Booleans, then the DAQmx Write has to be changed. There is a Digital 2D Bool type available but I'm not sure what else needs to be changed. I always use the U32 format.

0 Kudos
Message 5 of 7
(1,014 Views)

How can I change the default dispaly to binary? 

Also I can't use 1 MS/s and I need to reduce the sampling rate to 10k. Do you know if I can sample at 1MS/s using this device

 

My other questions is I have 12 samples for each line. So do I need to change the number of samples to 48 because by default it is 1000?

 

Thanks

0 Kudos
Message 6 of 7
(996 Views)

Sometimes it's easier just to make a VI snippet.  I too prefer using U32 format:

 

DO_U32_Write.png

 

 

Change the display to binary by right-clicking the control/constant and select Display Format (I like to show the radix when doing this, right-click and select Visible Items >> Radix).

 

You can indeed sample 1 MS/s on the 6368 (up to 10 MHz actually).

 

Assuming you want to output each sample one time, the number of samples should be 12, not 48 (and not 1000).

 

 

Best Regards,

John Passiak
0 Kudos
Message 7 of 7
(985 Views)