From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-26-2011 10:53 AM
Hello,
is it possible to activate / deactivate the sample clock in LabVIEW?
My problem: I have built me an SPI VI, but it does not support my goals needed for timing. (I want to use it with high clocktimes, that's why I use a NI 6537 IO Card)
So I intend to stop the Sample Clock till CS is down, REACTIVATE it as long as CS is low and deactivate it when CS is high again. If this is possible?
If you need more information, feel free to ask.
Regards
Christoph
01-27-2011 02:03 AM - edited 01-27-2011 02:08 AM
Here are 2 screenshots and the Read/Write part of my program.
First picture shows CLK with CS and SDI, second picture only CLK and SDI.
What I need is the following case:
CS is high, CLK low. CS goes low, and NOW CLK starts. At the moment the CLK is already running before CS is going to state low.
Thanks for any hints or solution.
Regards Chris
01-27-2011 07:53 AM
Hi Chris,
if PFI4 is your CS Signal, the sample clock actually should start only when PFI4 is actually seeing a falling edge.
Which signal is connected to PF4 in your setup?
Marco Brauner NIG
01-27-2011 11:03 AM
Hey SierraKilo,
Have you seen the following two articles about creating SPI signals and using hardware to generate those signals:
SPI Digital Waveform Reference Library
Serial Protocol Communication Reference Design for Digital Waveform Devices
The first document talks about how you can use a data line for the CLK, not the actual clock of the device. In the second link, there is a section in that document that talks about how to use the 6535/6/7 to generate/acquire the SPI data generated from the first document. There is code attached to each of the DevZone docs. So basically, you will use data lines to generate the data, not the actual clock of the device.
I hope these documents help. Please let us know if there are further questions or concerns. Thanks, and have a great day.
Regards,
DJ L.
01-28-2011 07:25 AM
Hello SierraKilo,
I also recommend to use the SPI-Library. I just explained my colleague, who is answering your thread regarding error -200562, what to do
to get around the error. He will post it into the thread.
regards
Marco Brauner