Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic data to digital (for digital output)

Hi, I don't know who can help me.

I've simulated a signal of pulses, with a VI in LABVIEW, wich I can control the phase, frequency and Duty cycle. I can display it on a "waveform Graph". It works nice.
My problem begins when I want to send this signal trough my DAQ-assistant (pci-6221)as an output. I should do this easy with the 2 "analog outputs" that my DAQ provides. But I need 3 different Analog outputs, not 2, for what I need.

I've another idea as possible solution; to use line outputs in place of the analogs. My DAQ-board provides 16 digital line outputs. But I can't connect the simulated signal on the DAQ-assistant, for line output. Because the signal is a "Dynamic Data type" and the DAQ needs a "1D boolean array type".

How can I solve this problem.
0 Kudos
Message 1 of 2
(3,224 Views)
Hi Hellraiser-

You are correct in saying that the analog output is the best option for your application. If you chose this method you would want to choose "Use Timing from Waveform Data" setting in the DAQ Asst.

There is the possibility of using clocked digital output with your M Series card, but you will need to provide this signal externally. This setting is made in the DAQ assistant by choosing Continuous Samples with External Clock under Task Timing. Also, you should note that clocked I/O is only available on port 0 for your device and not all 24 digital lines.

I have modified your VI for this type of setup and attached the result to this message. Basically, I used the From DDT VI to create a 2-D array of booleans. I then used the Boolean Array to Digital Waveform VI to create a single waveform and the Build Array to create an array (as required by the DAQ Asst. input).

Please let us know if you have any additional questions.

Thanks,
Tom W
National Instruments
0 Kudos
Message 2 of 2
(3,197 Views)