07-14-2011 03:56 AM
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
07-15-2011 12:59 PM
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:
If you want to disable the output based on a User Interface button, then you can use a setup similar to this:
07-18-2011 07:09 AM
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
07-19-2011 02:02 AM - edited 07-19-2011 02:03 AM
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
07-22-2011 02:18 AM
Does anyone have an idea?
I would really appreciate it....
Regards,
Katja