Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

timed digital waveform output with DAQ

Hello,

 

I am using a DAQ 6321 device and the SPI Correlated DIO.vi to to send instructions to a microcontroller. This VI creates a digital waveform and sends all the bits at once to the slave device. Now I need to make a brake of milliseconds after a certain number of bits. In the VI SPI Correlated DIO the subview Run CorrDIO Device ist responsible for the transmission. How do I have to change this subvi so that I can have a pause after a  certain number of bits?

 

Thanks in advance,

 

Katja

0 Kudos
Message 1 of 5
(3,633 Views)

Hi Katlk,

 

I don't have SPI Correlated DIO.vi built into my system and I don't see it in the code you posted. Do you know if you downloaded it from an additional package? Also, could you clarify where the data flow of bits are that you want to pause? For instance, you could pause the procedure like the following snippet:

 

stop bit.png

 

 

If you want to disable the output based on a User Interface button, then you can use a setup similar to this:

 

 

stop button.png

- Regards,

Beutlich
0 Kudos
Message 2 of 5
(3,611 Views)

Hi Katlk

 

As Eric said without this SPI Correlated DIO.vi it would be difficult to give you more informations, but I think with his ideas you can solve the issue ?

 

Regards

Pixar

0 Kudos
Message 3 of 5
(3,522 Views)

Hello Eric and Pixar!

 

Thank you for your help....I use the DAQmx SPI Correlated DIO.vi.To use this VI one needs to download the SPI digital waveform library.

Unfortunatelly I still could not figure out exactly...This VI creates a digital waveform. You can write the data you want to transmit via SPI in Hexvalues.

Now I need a brake of some milliseconds, after a certain number bits and then continue the transmission. Can I make some kind of Case-structure: Trigger should pause the transmission after N bits and then continue?

 

Thanks for your help

 

Regards,

Katja

0 Kudos
Message 4 of 5
(3,503 Views)

Does anyone have an idea?

I would really appreciate it....

 

Regards,

Katja

0 Kudos
Message 5 of 5
(3,459 Views)