01-07-2014 12:18 PM
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
01-07-2014 01:40 PM
I would greatly appreciate your help
01-07-2014 01:45 PM
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.
01-07-2014 02:21 PM
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
01-07-2014 02:59 PM
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.
01-07-2014 03:58 PM
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
01-07-2014 05:01 PM
Sometimes it's easier just to make a VI snippet. I too prefer using U32 format:
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,