Computer as 'black box' between contoller and device

Hallo,
I am trying to develop some sort of 'computer black box' (a computer
with a GPIB - board and some software) to catch all GPIB commands
from a controller to a device and back.
The commands from the controller must be interpreted by the 'black box'
and then send to the device - and the other way around.
Has anybody some ideas how to do this? I would be VERY happy to
get some sample code in c/c++.
Thanks in advance,
Carsten.
P.S.: My problem is that it seems that I have 2 contoller on the bus at some
time which causes problems.

Yes, this can, and HAS been done! Admittedly, this is an ADVANCED GPIB
application!
WHY would you want to do this? You may need to have the "black box computer"
translate GPIB commands originally intended for one instrument, so you can use a
newer replacement instrument. It may be the case that the original source code
and/or developement software tools are no longer available. (Think old,
military projects.)
On the other hand, if you just need to log GPIB traffic, and pass it on, then
NI's GPIB+ Analyzer card is all you need.
But if you really need to modify the GPIB commands on the fly, then you need TWO
GPIB cards in the black box computer.
The first card is setup/programmed to NOT be a system controller, and board
level IBRD and IBWRT calls are made to receive and send GPIB messages with the
(main) GPIB controller. Just put the IBRD and IBWRT in a loop, and use a short
timeout, say .1 second. Most of the time, these will timeout. But when the
(main) controller sends a message, the IBRD won't timeout, and your program then
knows it has recieved a new GPIB message from the main controller. Likewise,
when you need to send a response back to the main controller, just keep calling
IBWRT until it doesn't time out, then you know the main controller received it.
The second GPIB would be setup/programmed in the normal way, as GPIB system
controller.
The application software running on the black box computer would recieve a GPIB
message on the first (talker/listener) GPIB, process it in some way, then send
it to the instrument on the second (controller) GPIB.
I myself wrote a program for Tektronix TLA700 logic analyzers that makes the NI
PCMCIA-GPIB controller card behave exactly like a GPIB Talker/Listner. The
program parses the received GPIB commands and executes them by making calls to
the TLA700 software. This program was written in VB6 and is available from
Tektronix.
(note: I no longer work for Tek...)
Good luck!
Best Regards,
Mike T
Mike Tranchemontagne
Consulting Applications Engineer
TeraComm, Inc.
148 Main Street
Building A, 3rd Floor
North Andover, MA 01845
877-900-TERA (8372)
978-557-9490 (FAX)
603-598-4773 (Direct Line and Cell)
Carsten Gruening wrote:
> Hallo,
>
> I am trying to develop some sort of 'computer black box' (a computer
> with a GPIB - board and some software) to catch all GPIB commands
> from a controller to a device and back.
> The commands from the controller must be interpreted by the 'black box'
> and then send to the device - and the other way around.
>
> Has anybody some ideas how to do this? I would be VERY happy to
> get some sample code in c/c++.
>
> Thanks in advance,
> Carsten.
>
> P.S.: My problem is that it seems that I have 2 contoller on the bus at some
>
> time which causes problems.
Attachments:
miket.vcf ‏1 KB

Similar Messages

  • Can I use 1 computer with 2 different iTunes accounts and devices? We're afraid we're going to wipeout one library or the other if we do??

    My son got an iPhone and wanted his own iTunes account. Now his computer died, and he wants to connect to his iTunes account on my computer. When it asks to sync the computer, a message comes up and we're afraid either his or my library are going to be wiped out by trying to do this. Is it possible to use 1 computer with 2 different iTunes accounts and devices without wiping out one of the libraries? Thanks for any info.

    If the content was not originally purchased/synced to the device from your computer it will erase and replace the content from the device with that of the computer. If you have content that you want to backup you can transfer purchases http://support.apple.com/kb/ht1848 check this link out

  • I have the kindle app on my I pad.   How do I eliminate books I've already read?  On a regular kindle, you can switch between cloud and device but I am not getting that option.  Thanks

    I have the Kindle app on my I pad
    I want to eliminate the books I've already read (I have a LOT).
    On the regular kindle you can switch between cloud and device but that is not working on my I pad.
    HELP.
    Thanks

    The Kindle app has a menu on the very bottom center of the screen that allows you to switch from a device and cloud view. To remove a title from the device, tap and hold on it. a pop menu will apear that allows to add the title to a collection, remove it from the device, or download it from the cloud (depending on its current status).

  • ITunes not syncing properly between machines and devices

    My setup used to work just fine before the updates to syncing, now it is just a big mess.
    Before:
    iTunes install on my Mac tied to my iPad used primarily for video content and video podcasts.
    iTunes install on my Windows machine tied to iPod/iPhone used primarly for audio content and audio podcasts.
    Each one was in it's own little world and everything just worked.
    Now:
    Both iTunes installs are getting the full list of podcasts from each other and their devices, so my audio podcasts are now showing up on the Mac and video podcasts are showin up in Windows.  I don't really care that is happening, but the watched/played status is not updating properly across the board.  For example, if I watch or listen to a podcast that status is not updating everywhere.  Worst case is that on some occasions, items that I have already watched/played are reverting back to unwatched/unplayed status.
    Is there a way to get syncing working properly, or do I just need to turn all of those options off and go back to just direct syncing between machine and device?

    Jason,
    Thanks for your response. I am using Exchange and syncing over-the-air, not using iTunes. As you suggested, I deleted the Exchange account and then set it up again - but that did not work. HOWEVER - observations that I made while doing what you suggested led me down another path, and I was able to solve my problem! So - thanks!
    In case anyone else has this problem, here is what my problem was and I how I figured it out (I hope someone finds it useful).
    My problem was not an iPhone-to-Exchange sync problem, rather it turned out to be an Entourage-to-Exchange sync problem with the calendar. Turns my entourage calendar folder cache was messed up and had to be "emptied". I found this article that helped me do that: http://www.helpdesk.ilstu.edu/kb/index.phtml?kbid=1453
    How I discovered the solution:
    As I said, my problem was that calendar items edited or created on the iPhone were not showing up in my calendar when viewed from Entourage. When I deleted the exchange account from my iPhone, the calendar items that were (as far as I knew) ONLY on the iPhone and had not been sync-ed to exchange should have been lost forever. When I put exchange back on the iPhone - those item showed up again. So either the database on the iPhone didn't get erased when I deleted the account or those items REALLY WERE in exchange all along. So, I used Outlook Web Access to view my calendar items in exchange by bypassing entourage - and sure enough, they WERE there all along. That isolated the problem to Entourage and once I figured that out the solution was pretty easy to find.

  • Black box (line) surrounds and follows mouse, 'mini' screen size, PIP?

    Hi,
    I just tried to install the new wireless mighty mouse and wireless apple keyboard.
    The mouse worked for a minute, but the install of the keyboard killed the BT mouse and now there's this ANNOYING black box around the mouse cursor.
    After playing with it I've noticed that the pointer cursor, which is surrounded by this box (4:3 ratio box, approx 2" wide by 1.5" tall on my 20" 1600x1200 monitor).
    The odd thing is the cursor's position within this box moves in correlation with where on my overall desktop the cursor is placed: If I put my cursor in the upper right corner of my whole screen, the mouse cursor is also in the upper right corner of the small 'box'; if I move it to the lower left of the screen, it is also in the lower left of the box, and so on for the other two corners, and if it's in the middle of the screen, it's in the middel of the little black box.
    So this seems very strange.
    Oh, and neither the BT keyboards or the new mighty mouse BT will show up in the BT menu as recognized devices, though they did just briefly in the beginning.
    So after buying a new USB hub to be able to plug in the Apple/Belkin USB hub along with the Apple store's D-Link USB Bluetooth adapter and a new BT keyboard and mouse - $200 for a wireless keyboard and mouse, all I have is ultra annoying new software problems and all the same wires as before, with an additional keyboard and mouse on my desk. UGH!!!
    Can anyone help with this 'black box around the keyboard issue, at least?
    Thank you soo, so much for any solutions!
    Sarge
    Oh and this weren't enough my barely used video ipod video 60 GB self-distructed this AM - melted inside somehow. I am in Apple ****.

    GREEN STAR FOR YOU!
    Of all the things - somehow, and I've never even been into this control panel, inside the Universal Access/Seeing/Options dialogue, the box was checked saying "Show preview rectangle when zoomed out".
    I unchecked this, and it went away. I had not selected this, ever. How it happened, I don't know except that I do have a Logitech NuLOOQ tooldial device which I had unplugged from USB while troubleshooting my BT wireless keyboard and mouse, and this device requires having the 'enable access for assistive devices' checked in the Universal Access control panel.
    Perhaps unplugging that device somehow lead to this problem, but otherwise I've never 'visited' the UA pref panel or checked anything in it.
    Odd, but THANK YOU for the suggestion!!!
    Sarge

  • My ipad displays a black box around icons and isn't scrolling properly. I have turned it off then back on, which is the extent of my limited knowledge.

    I was trying to get it to airprint to my supposedly supported HP eprint printer, but was having no luck. After trying to follow the online instructions on the HP website, it told me to turn it off wait 30 secs then turn it back on(along with the other devices but thats not my issue now) When I turned it back on it has a black box around all icons, I have to "double click" to get anything to open, and is not scrolling properly. I have turned it off and back on again, no change.

    i am expereincing this problem....what was the solution??

  • When i download adobe flash player a black box pops up and it doesn't work.

    I have downloaded adobe flash player multiple times. I have a windows 7 hp laptop when it gets to the end of the download i click run and a black box appears and the flash player doesn't work. what should i do?

    Hi albinaaa,
    Thank you for confirming the drivers are up to date.  I apologize for the confusion in terminology.  We refer to the installer downloaded from get.adobe.com/flashplayer as the online installer because it is simply an installer shim, less than 2MB that then downloads and installs Flash Player silently.  This requires users to be 'online' for the installation process to work.  What we refer to as the offline installers are the full installers (roughly 15 - 18 MB) that you download and then install Flash Player, which does not require an internet connection as nothing is downloaded silently in the background during installation.
    As I mentioned before, we have received these reports of the online installer displaying without text, however, we have not been able to reproduce, and therefore, the reason I asked you to try the offline installer, since we have not received these reports with the offline installer.
    Maria

  • After Update of iPad and MacBookPro no communication between AppleTV and Devices

    After Update of my iPad 2 with iOS 6.0 and OS to 10.8.2 there is no communication between AppleTV and these devices.

    Start with this and follow all of the links and see it any of these suggestions work.
    http://support.apple.com/kb/ts1368

  • What's the best way to convert between pixels and device-independent units?

    WHAT I HAVE:
    Visual Basic 2010, .NET 4.0, WinForms
    WHAT I NEED:
    I need a way to convert back and forth between device-dependent units (i.e., pixels) and
    device-independent units (i.e., inches, centimeters, points). The VB6Compatibility namespace has TwipsPerPixel methods, but I figure there's got to be a more elegant way (especially since my program didn't start in VB6).
    Robert Gustafson

    "Dots-per-inch" means "pixels-per-inch", right? If I'm right, then
    XPixels = Graphics.DpiX * XInches : YPixels = Graphics.DpiY * YInches
    and, conversely,
    XInches = XPixels / Graphics.DpiX : YInches = YPixels / Graphics.DpiY
    Is that correct?
    (PS. Why not just tell me about the DpiX and DpiY properties, rather than making me click a link?)
    Robert Gustafson

  • Strange... Black boxes around buttons and files

    Anyone seen this issue or know how to fix it?
    Sometime last week, black boxes started appearaing around files or folders on my desktop, buttons in the finder, and file names in open windows. It is always one box at a time (whatever I select or mouse over.)
    The box is 2-3 pixels thick and has a white stroke around it. It's not effecting performance, but it is really anoying.
    Thanks in advance!

    Ugh, sounds like your video card may be going.
    If you create a new, clean & fresh account and log in, do you get the same thing?

  • How do I remove annoying black box surrounding icons and windows...

    I hate to think that this something very simple but I can't figure it out.
    There is a black box that surrounds icons when I single click on them and while I'm in my browser its surrounding the red x circle in top left of window.
    Whole in iTunes it surrounds the main window with the list of music.
    Does anybody no what is this and how do I remove it??

    enter command+F5. this will turn off voice over which you've accidentally activated.
    That's a handy shortcut but if you want to check this and related things you can accidentally activate, open System Preferences > Universal Access

  • Black box around buttons and windows

    My 19 month old daughter has learned to climb up to the desk, and OPEN my laptop! Before I could stop her, or turn on AlphaBaby, she had pressed a number of keys, and now a little black box highlights various things in the programs I have open. As I type this, the red circle at the top left to close the window has a box around it. When I was trying to find how to turn it off in system preferences, the bar at the top with the arrows and Show All button had a box around it. In Mail my inbox window has a box around it.
    Any ideas as to how to turn it off?
    Thanks!
    Heidi

    Your daughter shows great promise!
    Go to System Preferences/Universal Access and turn OFF Voice Over.
    (She pressed Command-F5 !)

  • BB 9320 - Screen goes black, LED light off and device unresponsi​ve for a 3-30 seconds, then repeats

    Hi there, 
    I got a BB 9320, then replaced it through the vendor for this same issue but it is still occuring. 
    When using my phone, fully charged or not, the screen will go black and LED light is off for a 3-30 seconds mid task and the device becomes completely unresponsive. It will eventually come back, and restart the task (ie, if i'm typing a txt messge, it will be back to the message inbox, or for an email back to my email inbox, etc.). It's really frustrating because at times it will continually happen for so long that I give up on using my bb entirely. 
    I have tried restarting the device to factory settings, removing the battery, keeping it continually charged, draining the battery entirely. 
    What is happening? How can I fix this??

    Hey makader,
    Welcome to the BlackBerry® Support Community Forums.
    I would suggest doing a clean reload of the BlackBerry® device software as shown here: http://btsc.webapps.blackberry.com/btsc/KB11320. Please test before restoring any data to the device.
    If this resolves the issue do a selective restore of essential data (Address Book, Calendar, Task, Memos, BBM contacts etc.)
    How to use BlackBerry® Desktop Software to restore data to a BlackBerry® smartphone from a backup file
    http://btsc.webapps.blackberry.com/btsc/KB10339.
    If the issue still persists after the reload, further investigation might be required. To help further diagnose the cause, contact your wireless service provider or BlackBerry® Technical Support Services for further review and support.
    Thank you
    -HB
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Black pause between timeline and end action

    I am using Encore DVD 2.0 and After effects 5.5
    I made my menu in Photoshop and animated it in After Effects. I brought them both into Encore DVD, set the animation as first play and the end action as the static menu. When I preview it, there is a few seconds of black between the 2. I want the transition to look seamless. Is there a setting to get rid of the black? or is there any other way to do this without having to go out and buy a better version of after effects?

    I want to solve the same issue!! Did you solved yet???
    Where are you observing the black "pause," in Encore's Preview, or on a burned test DVD RW on a set-top player?
    That can make all of the difference.
    Good luck,
    Hunt

  • After resetting devices apps don't sync between iTunes and devices

    I use Windows iTunes 11.0.1.12 in Windows 8 together with an iPad 3 w/ 6.1 and an iPhone 4S w/ 6.1.1.
    As my app collection grew too much I decided it was time to start over from scratch. So I deleted all apps within the iTunes library and reseted my devices, telling them to be configured as New Device when the question was asked whether I wanted to use a backup of the device. Then for a while I downloaded apps to the devices directly on the devices without using iTunes.
    All seemed to be nice until I connected the iPhone to the computer to sync it, mainly for backing up the apps on the devices. But this is not happening. I can sync as often as I like, apps which I downloaded on the devices are not copied to iTunes' library when I sync the device. Likewise apps that I obtained within iTunes are not copied to the devices when I sync.
    Does anybody know how I could fix this?

    I have the exact same problem. Help!

Maybe you are looking for