LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating a waveform using PXI-6534

Hello,
I am trying to write a VI to generate 3 waveforms using a PXI-6534. I am not familiar with how to do this in Labview really, so I was hoping I could get some help getting started with this. The 3 signals are a clock signal, data, and load enable. The clock has a frequency of 614.4KHz, and a data bit is sent on the falling edge of each clock pulse. After 48 data bits have been sent, the clock remains low while the load enable signal is pulsed low for one clock cycle. Unfortunately I do not have the waveform generation editor, are there any alternatives to this? If anyone could give me any suggestions or point me to any tutorials or examples it would be greatly appreciated.

Thanks,
Steve
0 Kudos
Message 1 of 4
(2,949 Views)

Write the data to an array, and then just do a digital out write.  the clock might have to be an external clock since the onboard clock is only capable on multiples of the onboard clock.  Essentially you make one bit your clock line, and the other seven bits of the port to write your data lines. remember that there are 2 clock bits 0,1 for each data bit so you send the data out at 2x the desired clock speed.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 4
(2,946 Views)
Well, I managed to get this to work using the example for continuous pattern output and creating a for loop to generate this signal instead of the one previously there. The only problem with this is that the entire program this is being integrated into is already using this device with DAQmx. Since that example uses traditional daq drivers, I cant use both at the same time which is a big problem. When I tried writing with DAQmx write it basically froze the system. I don't think I mendtioned before but this sequence needs to be continuously sent. Is there a way to write one entire cycle of this sequence into memory on the daq card and then just continuously output it?
0 Kudos
Message 3 of 4
(2,931 Views)
This you can do this.  I have used this exact card to continiously bit pattern from an array I streamed out a 500,000 sample stream out at 10MHZ and read back a 8MHz and parsed the data.  Look at the daqmx examples.  essentially you want to write the array to the buffer and set it up for ALLOW REGENERATION on the write property and Continious on the sample clock. Look at the following examples:
 
Hardware IO>>daqmx>>digital generation>>Continious Write Dig Port-Ext Clk generation.
   this sounds like what you need, a continious digital pattern generation using an external clock.
Also see the non regeneration example. you can change the pattern on the fly.
 
I would not use traditional daq since is is very outdated and probably will not be supported in the future.  DAQMX is much better.
 
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 4 of 4
(2,919 Views)