Blackfin multiple SPI devices

Hi guys:

Sorry to post this question, but I really can't get it to work!

I can configure each SPI device and they work only, when I try to config 2 devices, I can't just two lines of CS to go up!

Note: Here is my code, I choose slave select 4 so it is easily accessible via SPI connector to the Board of Directors (PIN 14)... SS1 is pin 9!

Thanks in advance

I like your "main.vi" instrument, but unfortunately, I think the AD7476A driver was not designed with several converters a/d in mind, let's dig a little deeper.

"Declaring Slave Select" command limits the value 1-7, because the SPI device can drive directly only this amount of devices, each of them being validated in accordance with the SPI_FLAG registry. Notice that in the DMA transfer mode (case of pilot AD7476A) CPHA = 0 and SS pins are automatically selected at the beginning of each transfer: for each bit set to one in SPI_FLAG a low pulse will be generated to the corresponding pin! (These bits are set on a per activate slave select or declare slave).

He had been great if playback turn slaves, but isn't.

I'm in the island you will not wait 1 MSP for all a/d converters. The AD7476A conversion time is determined by the clock series: the pilot sets the SPI clock on the sampling frequency of 16 times. This is why must be given a higher value in the sample spent at BF AD7476A Control.vi clock:
For a system with converters a/5 n and 100 KSPS value must be 500000. Inter-channel delay is in this case 2 microseconds, so the difference in time between the first sample of the first string and 5th Channel is 8 us (almost equal to the sampling period), this could be a problem in some applications.

However, more information is available in the description of the material (ADSP-BF537 Blackfin processor Hardware Reference ), documentation of device driver (C:\Program Analog Devices Devices\VisualDSP 5.0\Blackfin\docs), and drivers of source code (C:\Program Analog Devices Devices\VisualDSP 5.0\Blackfin\lib\src\drivers). Here, I would just say it seems circular buffer are not taken (see VisualDSP 5.0\Blackfin\docs \spi\adi_spi_int.pdf and adi_spi_dma.pdf) and move to solutions:

1 reconfigure the SPI to use interrupts and use reminders to go through program slaves using BF SPI Control.vi "Select/deselect"slave"(of course, each of the ointments pins must"Declare Slave Select"with BF AD7476A Control.vi or"Activate Slave Select"using BF SPI Control.vi). This will add overhead and, depending on the sampling frequency, you may lose a few samples. Also, there is a limit of only 7 slaves.

2. turn on DMA for a single word and switch slaves in the callback after each conversion result (of course, this will have the same disadvantages as #1).

3. Add a simple external hardware to automatically select the a/d converters (for example a counter + decoder clocked by one of the seven pins SS and reset using EIO). Then play with stamps to identify channels (example buffers 1 d with 5 items for converters a/5 n). This will add less overhead, reminders will trigger once a sample of all channels was acquired (or even better after n samples, if the length of the buffer is nx5, etc..)

All of these solutions, to open and close AD7476a driver only once in the 'main.vi.

#1 and #2 similar to your posted solution above but the command must be select/deselect for interruptions and toggle for DMA. The slaves should be put in exactly at the end/beginning of each word received.

Tags: NI Products

Similar Questions

  • How to read the multiple slave devices in a RTU modbus RS485 2-wire network without changing slave address manually?

    Hello

    Currently, I can read data out of multiple using the attached VI DAQ devices by manually changing the address of the slave on the front panel that determines what slave to read the data. However, I want the VI to do it automatically for me instead of me manually by clicking on the buttons on the front panel to change the address of the slave. In other words, the VI should read data off devices 3 slaves and save them to a database of all the 1 second (sampling from 1 sec interval). I tried to use the structures of the case, timed sequences and delays, but I'm still not able to get what I wanted. My current VI is a modified version of a VI library modbus - 'MB series Master query read input registers'. No idea how to do this?

    IM pretty new to LabVIEW, so don't kill me if im away here

    Could replace the cluster 'Series settings' with the attached structure solve this problem?

    The real deal will be just the value back to the default (1).

    -Tom

  • Problem with multiple display devices

    Hello

    I've recently upgraded to Adobe CC and I am trying to configure Edge inspect on my iPad and iPhone.

    I added two devices defined in the instructions, but when I try and get an overview of these two devices, I get the following message:

    Use of multiple devices is a feature of the version complete edge inspect. Upgrade now to connect several devices simultaneously.

    Does this mean I have to buy another upgrade to allow multiple devices to be viewed?

    Any help appreciated.

    see you soon,

    Blue-insurance

    Inspect edge has two pricing options, a free version, which only allows one device to connect to both, and a full version that allows an unlimited number of devices to be connected simultaneously. If you are already subscribed to the full version of edge inspect try to connect log out of the application of edge inspect and then again to solve the problem.

  • Time Capsule with multiple OS devices...?

    Is there a recommended way to have a TC to use at home with Mac OS, iOS, and 10 machine a window?

    I'm considering a purchase and to wonder about this as an option for backup/storage for files and Photos, iTunes Library (mainly Mac/IOS), etc. With 10 of the window.

    Ideas, suggestions and shared experience welcome!

    You can save the iTunes library on the TC... It is possible though slower.

    It is not possible to store your library of Photos on the TC... once again, it might work and other people the recommend... but Apple does not support.

    iOS has nothing to do with the storage or backup to a TC either. By default iOS don't not have yet the disk on the TC... you must use file... as filebrowser navigation software.

    Windows is also possible, but problematic. To make backups is probably not possible by using the native software in windows, but many third-party backups will support it... Macrium Reflect is one I use that.

    However the restoration can be much more difficult because the files are not stored in native format.

    If you want a multi-OS device buy a real NAS... Synology is my favourite, although expensive, that they support PC and Mac very well... as well as applications for iOS.

    You will store actually Mac libraries is another matter however because they depend on Mac format so you may create a sparsebundle or DMG file and use it. And this will make sharing... which I think is why you... almost impossible.

    NOTE... If you use not a backup of TC is not possible using Time Machine... and you should back up the files we need to think about the problem... what software to use... Carbon copy clone or chronosync will run... and you need a target disk... USB attached to the TC is the worst... slow place that transport CANADA continues to use USB2.

  • Help for installing automated multiple bluetooth devices?

    Hello! I would like to describe our situation. I maintain computers for our local ambulance service.

    We have five ambulances. Everyone has a Logitech Bluetooth mouse and a Pentax PocketJet 3 Bluetooth printer.

    All the mice and printers are the same model.

    We have three from another manufacturer Toughbook CF-18 portable systems that use Toshiba Bluetooth stack.

    The books are transferred from an ambulance to the ambulance, ambulances are used that date.

    In addition, our policy is that portable computers use a local account with rights to base level 'user '. They cannot add their own bluetooth devices since they are not administrator or power users.

    Therefore, we must ensure that none of the three computers will work with any of 5 mice and 5 printers.

    I then have to wear each of the three books in each of the five ambulances and manually match each notebook with 5 mouse and 5 printers so that all laptops can be used in an ambulance.

    I don't like that I have to add each device, but I don't like that I have to do this manually on each of the 3 computers, and I bring the computer in a nearby physics eahc peripheral (or each device to the computer)

    This seems wrong! I have an inventory of the bluetooth address for each of our 5 mice and printers. You can a device add manually in a way, thanks to a script or command, so he don't need no need to be in physical proximity with the mouse or the keyboard and create a match?

    Ideally, I would like to do ith through a batch file, so I don't have to go through a repetitive cycle of point and click steps...

    Thank you!
    mtoal

    You cannot associate devices if they are not around, because the encryption key will be computed and stored on the host Bluetooth module and the module Bluetooth client (mouse and printer in your case).
    You can of course also configure your mouse in limited user mode if the HID drivers are pre-installed. I think that this is the case by default. Just try it. If this isn't the case, then just edit the file "As.ini" from the Bluetooth stack to pre-install the HID drivers. You can also set in 'Tosbtutl.ini' of the following before installing the battery Bluetooth.

    [AutoSave]
    HID = Enable

    It will start searching for devices (mouse, keyboards) HID when you start "Bluetooth settings".
    Assume that you have configured the same on your laptop, then on two laptop mouse.
    You must press the button of the mouse detection again and click on the mouse icon depending on BT-settings for the mouse work again on the one laptop computer. This is because most mice do not support multi-point connections. If it is supported then it is not necessary. However, it is not necessary to set up a second time.

    Bluetooth profiles are supported by your printer (SPP and HCRP)?

  • Remove the multiple VirtualBench device name

    Hello. There is a problem need advice.

    The PC had been link with some Virtuabench, and it remember its device name even if it had not been connetced. This causes the tech lab get confused and often choose the wrong device. Somethimes the Virtualbench had already been hook upward with testing circult. This will result to return the Virtualbench to verify nom_peripherique is not possible.

    Is there a way to remove the unwanted peripheral VirtualBench in the list?

    Thanks and greetings

    ZachHindes wrote:

    If the device is no longer connected, you can remove it by calling the 'delete device' API (http://zone.ni.com/reference/en-XX/help/374540C-01/lciviref/remove_device/). It should be in the range of VirtualBench under "utilities".

    Ugh, I broke the link, and I can't fix it.  http://zone.NI.com/reference/en-XX/help/374540C-01/lciviref/remove_device/

  • Handshaking DMM with multiple switching devices - DAQmx error

    Hello.
    I am trying to create a loop of the handshake with DMM (PXI-4071), SWITCH (PXI-2569) and MUX (PXI-2575). The three instruments are in segment 2 chassis PXI-1045 (locations, 8, 9 and 10) and I use the ways of PXI trigger in the triggers of the route.
    I followed the article NOR 'Multimodule Scanning with National Instruments switches' - I modified the example NI SWITCH "niSwitchDMMSwitchHandshaking" to set up another SWITCH, but when I tried to run the example, I got an error:

    0xbffa6b9a - no lines recorded could be found between the device in the road.
    (screenshot pop up is in the attachment). It is the function of niSwitch_InitiateScan to the second switch that returned an error.

    PIX trigger change has no effect.
    I tried the CVI and LabVIEW examples with the same result.
    I even tried to use two 2575 MUXes - same result.

    Can someone tell me what I am doing wrong?

    Hi Pavel,

    I checked that the component that controls the routing of the TTL for the PXI is included in NOR-DMM 3.0.2 (latest version as of 06/14/2010).  NOR-DMM 3.0.1 contains an older version of the TTL routing code and will therefore place several comprehensive lines scanning advanced on the same trigger.

    Unfortunately, the component which controls TTL routing is one of the constituent elements of the software installed OR lower, and thus we do not expose it to the user.  For that to work, we would need to uninstall almost all the software components of NOR, which is a major undertaking.  Here's what I recommend instead:

    For now, we will Garland triggers one switch to another.  This will allow us to start development in OR-Switch; as soon as OR distributes a program, you simply change the triggers as they all point to the same TTL line.  This will allow switches to operate in parallel rather than in series, and the passage of the switch of your project can run faster.

    If we have to absolutely exploit the switches at the same time, I would recommend either uninstall all software of OR or get a machine with a fresh install of XP and then install not newer than 8.9.5, OR DMM 3.0.1 DAQmx software and NI - Switch3.8.

    As I mentioned earlier, NEITHER is aware of breaking backward compatibility and we are committed to reintroduce the old features in a future release of the pilot.

    Keep this thread bookmark and post back in a month or two and I'll let you know if we have any updates.

    Have a great day!

  • Multiple print devices of clouds in the same House and a single iPad.

    One of my clients will soon two printerd clouds in the same House, one will be ePrint, probably other enabled AirPrint. Can anyone tell me please what options he'll do when he tries to print a document or a picture on his iPad? Printing device that a cloud will appear as a default printer? In addition, he will get a choice? He may choose which device to use only one (via an app I guess) on the iPad, and do not have the choice of two?

    Any advice would be great.

    Paul

    If the printers and the Apple device has been implemented on the same network; It must list all of the printers that are capable of Airprint when you want to print something. For example, if you print a photo that you selected from the Gallery, after you press the action button () and select print, it will automatically be the last printer you used, stored as the printer to send the picture to. However, an arrow (>) to the right of this printer you can type. Once you press the arrow, it will offer you a list of all available printers on your network, you can choose to send the print job. I hope this helps.

  • In Win 7 can I configure multiple audio devices by default?

    I want to play:

    All content of windows through my HDMI audio Media Center

    Everything iTunes through my headphones

    There are 2 options in my list of default audio device, one for each above. I would like to either two of them always have or I would like to be able to set up so there is a specific default value for each program. Does anyone know how to do this in Win7?

    For any help or suggestion would be GREATLY appreciated!

    Hi MattMinn,

    Welcome to the Microsoft Answers Community Forum site!

    There is no option of two different applications simultaneously broadcast by a default program. You can try the same externally via a socket which can take in charge two devices at the same time.

    Thank you and best regards,
    Calogero - Microsoft technical support.
    Visit our Microsoft answers feedback Forum
    http://social.answers.Microsoft.com/forums/en-us/answersfeedback/threads/ and tell us what you think

  • QR Code in Dreamweaver to display on multiple mobile devices scan

    I have create a sensitive site and tried viewing the mobile version by scanning this QR code that Dreamweaver generates. It brought me to this page of troubleshooting that I tested everything and it's OK. So I guess that the ports are blocked. On the Adobe support page... Device Preview - troubleshooting she mentions the creation of a NodePort.json file. But create it with what? The explanation is vague.

    Question: How can I create a NodePort.json file? Y at - it a better explanation somewhere, in addition to what adobe provided.

    The instructions on the link you provided are very clear. Create a NodePort.json file identical to any text file. Open your text editor favorite (you can even use Dreamweaver) and create a new plain text file. Place the code in the file as shown in the link your provided and save the file as NodePort.json, and then place the file in the location that is in the instructions.

    best,

    Shocker

  • ADF Mobile: deployment on multiple iOS Devices

    Hello

    I have developed a custom application of ADF Mobile and successfully deploy the same on an iPad using the certificate of distribution companies.

    As I borrowed someone's iPad I returned the unit and the device is somewhere else now.

    After deploying to the device, I had made the same request to the iOS Simulator using a different profile of deployment.

    Now, I want to get the. File API to run the application on another iPad, but when I checked the deployment folder in the workspace that I can't see everything. IPA file.

    If I deploy the application on iOS Simulator using the deployment profile configured for the distribution company profile I would be able to run on any other iPad .app file.

    And is it possible to extract the. IPA file from the old iPad? Any other alternative that someone might suggest.

    Kind regards

    Himanshu

    Solved. The .ipa file located in "Music/iTunes/iTunes/Mobile Media Applications.

    Kind regards

    Himanshu

  • VW Wkstation 8.0.2 Linux + multiple Ethernet devices

    Hello


    I installed Vmware workstation 8.0.2 on Ubuntu 11.10.  I'm looking to bind manually (bridged) 8 ethernet devices.

    I have 9 physical network interface cards in my numbered machine eth0 - eth8

    After installing vmware, I vmnet0 and vmnet8

    When you use the Network Setup, I see the option to add a vmnet.  So I add vmnet10 - vmnet18 I think try to bridge vmnet10 to eth1 and eth2 to vmnet11.  But I can't fill other ethernet devices because they do not appear in the drop-down menu.  It seems that vmware only 'sees' two of my 9 available ethernet devices.

    Is there a way to say vmware I did more ethernet devices?

    It is a stupid bug in the network Editor. Came across this a few times myself.

    Have a look at/etc/vmware/networking and manually add the necessary lines "add_bridge_mapping". (Close the network Editor while you are editing manually.)

    After restart vmware or use vmware-networks - power and the networks should work properly.

    Best regards, Marc.

  • Did you notice a delay when the stream to multiple airplay devices?

    I've used a wireless Airport Extreme with Apple TV and 1 or even 2 Airport Express to music streaming at 1-3 stereo systems simultaneously always without delay. Now, using only an AEx and ATV there is an echo of the notice. The system does not wait for the other Aex has become obsolete and is no longer used.

    Make sure that the Apple TV software is up to date > update the software on your Apple TV

  • 5 Lighteroom on multiple personal devices

    I just installed 5 Lightroom on my Macbook Pro (retina).  Is it possible to use it on my iMac.  The Macbook Pro is used on TRIPS;  the iMac when we are home...

    Yes, a single adobe license allows use to install and activate simultaneously on both computers.

  • Can what cards I use to develop communication SPI with Labview?

    First of all, I'm an intern is currently working on a project that involves communication with an SPI interface. I have absolutely no experience with SPI, but I finally decided to try. I work for about 6 months with labview and understand the function of basis of a large number of its resources.

    The problem:

    We want to connect Labview to an evaluation Committee that is connected to the PC via USB (but it can also be adapted to connect through SPI). The evaluation board mainly reads and writes if sign up for issuers that are connected to it by a Module assessment. The program which is already which is the Studio of SmartRF (that works via USB), but as we want to link all the functions in Labview we redevelop a platform to do so. If shortly, we want to make a Studio of SmartRF version in Labview. We want to be able to get all the information that makes the program and others... and all this is possible through SPI.

    Here is a link in case you are interested what is SmartRF Studio: SmartRF Studio link

    My question is which card do you recommend for what we are trying to accomplish? We are looking for something not very expensive but who fail to meet our requirements.

    I think of the NI USB 8451, but please make suggestions.

    Thanks a lot in advance and please stay tuned to my many questions coming about how to accomplish this enormous task with no knowledge whatsoever of SPI or how to mix with Labview only one student. I am reading as much as I can find, so all the links will also be very much appreciated. If anyone has any experience with NI USB 8451 with Labview be kind enough to guide me

    Sincerely,

    Gisela

    If you have very little experience with LabVIEW and SPI, the 8451 is a good choice. It's expensive, but it's really easy to use and configure.

    The Aardvark is also a good choice. There pilots LabVIEW is also easy to use in LabVIEW. The disadvantages is that it doesn't have a lot outside of simply making SPI or I2C - in other words, it doesn't have a lot of GPIO. This can be important when control of multiple SPI devices, because it requires to select them lines individual slave.

    Dinah is really more than a product of laboratory, or something that is meant to be placed inside a camera. It is expensive, compared to the other two, but it doesn't have native drivers in LabVIEW. On the contrary, it comes with a DLL you can call from LabVIEW. I wrote a set of LabVIEW drivers for it, but I can't distribute.

    There are other products on the market, which some will resemble a device series to your computer. For example, you would use VISA to communicate with the SPI controller, and it would appropriate communication of SPI.

    Among the three mentioned here, I would suggest that you go with the neither of the Aardvark, one.

Maybe you are looking for