Communication with the niVisa (GPIB) do not work next to a serial interface

Hello

I programmed an application in C++ (Visual C++ with MFC, running on XP). On the one hand, I control devices of different measure (also from different suppliers). All communication is done with niVisa (Version 4.6). On the other side, I send remote commands to a generator via the serial interface. To do this, I use CSerialPort, it's a Wrapper MFC of the Windows API. Thus, niVisa is not used for the serial connection.

It works without any problem until I connect the measurement equipment (any type of) via Ethernet.

When I now connect the scope via GPIB (I use a NI PCI-GPIB), communication works without any problem as long as I wouldn't send anything on RS232. After I send something to my generator (and close the com-port), the next Commander of VISA will give me an error (VI_ERROR_ABORT). Now, I can log in again and everything works normally again (until I have again send something on the com-port).

For me, it's a really strange question. Any ideas? Any help?

Best regards

Michael

OK, I finally found the problem.

When you use the serial port, you can write data with normal writing (WriteFile()) function or with the tip (WriteFileEx()). Do not now ask me for more details on the difference, it's something with the mode "" overlap...

After I send all the data with WriteFileEx, VISA-connection via GPIB produces an error. So I went to the basis of WriteFile() and everything works. Don't ask my consistency betwenn VISA (with GPIB and just GBIB) and the connection series. I'm just happy right now...

Michael

Tags: NI Hardware

Similar Questions

  • Lexmark Interpret S405 is not communicating with the computer and will not print

    My computer works with Windows 7 and updates automatically.  I got the Lexmark Interpret S405 for 18 months, and it has worked great until a couple of months.  When I try to print, I get an error message indicating that the printer is not communicating with the computer.  When I check the printer, it shows he's ready.  The print job shows that it is ready to print, but nothing happens except for this message.  When I try to erase the impression, it really takes a lot of time - usually have to unplug the printer so that it can finally clear.  Then it still will not print if I try again unless I restart the computer.  Lexmark support page says that there is a problem with Windows 7 and their product.  All the solutions for this problem yet?

    Computer model of the bridge ZX6970, OS 64-bit, intel CORE CPU I-13 3.30 GHz, Windows 7 Home Premium.  Can someone advise a fix for this problem?  Thank you!

    Hello

    Have you tried to download and install the updated firmware for the Lexmark Interpret S405 from the manufacturer's website.

    If this isn't the case, please download and install it.

    Download Firmware for your printer!

    We know the results.

  • the problem with the wi - fi does not work on windows 8.1

    Hello dear forum users (sorry for the English, use a translator)

    I have a laptop HP Pavilion dv6-7055er, 8.1 Windows 64-bit

    Card Broadcom WiFi 802.11b/g/n 1 x 1 4313GN worked on windows 7, but fails on windows 8.1. Tried to find the driver on the broadcom , but not found. Device Manager indicates that the problem with a PCI device. Specifies no problems with the Wi - Fi adapter.

    What could be the cause and how to fix it? Thank you!

    It seems that your WIFI adapter is not supported by Windows 8.1

    There are a few options available.

    The first and simplest is to purchase a USB wifi adapter to plug into one of the USB ports on the laptop. I have a dual ASUS USB-AC56 band that meets the 802.11ac specification.

    The second option will be to take a look at the installed optional wifi adapters to see if they have Windows 8.1 supports, buy one to replace the Broadcom card installed with.

    Ok. The two following adapters are compatible with your laptop and Windows 8.1. They have a BIOS support.

    The Qualcomm Atheros AR9485

    The Intel Centrino Advanced - N 6230 WLAN module

  • Open submenus when I stop on them with the mouse pointer does not work

    I used to use Vista Upgrade of XP until it hit the big time. With this installation, the option 'Open submenus when I dwell on them with the mouse pointer' worked perfectly well.  Since I did a format and installed the full installation of Vista version, and now this feature does not work. I checked and re-checked the option in the customization of the menu star and nothing. Also unable to find what anyone at the mouse settings itself.

    Does anyone know how to get this feature to work again once it's something I use a lot.

    Concerning

    Owen

    Hello

    If none of these help or you find a solution please report.

    Does work here on Vista either, but I don't want it works even if it is checked.

    Try UnChecking the start - Customize - Menu tab apply / OK and then go back and save
    Apply / OK.

    If no joy this initiative will eventually.

    Follow these steps to remove corruption and missing/damaged file system repair or replacement.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN

    sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Then, run checkdisk - schedule it to run at next boot, then apply OK your way out, then restart.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    ------------------------------------------------

    Maybe something here: [check Control Panel - mouse or TouchPad (as applicable)]

    If a mouse (or if you use a touch screen and a mouse)

    Start - computer, or Windows Explorer - Tools - Folder Options - general tab - check the
    Single click to open an item - APPLY / OK

    Control Panel - mouse - look for hover or click Automatic similar settings according to your mouse.

    When a TouchPad

    Look in the Notification area next to the clock for all TouchPad control program.

    Control Panel - mouse - also look for it TouchPad (mine is on the device however settings tab
    other brands and maybe on the other tabs and more than one). There are usually the parameters that
    can determine if a click, double click, hover or can open or close a program.

    Start - computer, or Windows Explorer - Tools - Folder Options - general tab - check the
    Single click to open an item - APPLY / OK

    If some people are well positioned can change to some other setting if you plan to leave
    them that way and then change again.

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • problem with the onclick toolbar do not work

    Hi, I can not do this control works very well. I can see the toolbar, but I can't make a click and the event do not work. Thank you.

      ToolbarManager tbManager = new ToolbarManager(Field.USE_ALL_WIDTH);
    
                StringProvider spTest = new StringProvider("Test button");
                Image myImage = ImageFactory.createImage(barraTXON);
                ToolbarButtonField tbbTest = new ToolbarButtonField(myImage,spTest);
    
                  tbbTest.setCommand(new Command(new CommandHandler(){
                    public void execute(ReadOnlyCommandMetadata metadata, Object context)
                     {
                         Dialog.inform("Toolbar button clicked");
                     }
                }));
    
                tbManager.add(tbbTest);
    
                StringProvider spTest2 = new StringProvider("Test button2");
                Image myImage2 = ImageFactory.createImage(barraPAON);
                ToolbarButtonField tbbTest2 = new ToolbarButtonField(myImage2,spTest2);
                  tbbTest2.setCommand(new Command(new CommandHandler(){
                    public void execute(ReadOnlyCommandMetadata metadata, Object context)
                     {
                         Dialog.inform("Toolbar button clicked");
                     }
                }));
    
                tbManager.add(tbbTest2);
                if (tbbTest.isFocus()){
                    Dialog.inform("Toolbar button clicked1-");
                }
    
                if (tbbTest2.isFocus()){
                    Dialog.inform("Toolbar button clicked2-");
                }
    
                //with the line below - no action is displayed when clicking on the button
                setStatus(tbManager);
    
        }
    

    I have to use a panel of buttons.

    HorizontalFieldManager buttonPanel = new HorizontalFieldManager(Field.FIELD_TOP | Field.USE_ALL_WIDTH);
    
          //  Background background = BackgroundFactory.createBitmapBackground(barraTXON);
            buttonTX = new CustomButtonImage(barraTXOFF,barraTXON,barraTXOFF);
            buttonPanel.add(buttonTX);
    
  • Stop or play on the image with the video tag does not work?

    I have a video in a setting that corresponds with the label 'eight ';  I have a button on the timeline with the following code.  I have tried to Stop both gotoAndPlay and it does not work.  Thanks in advance for your suggestions.

    on {(press)

    gotoAndStop (eight);

    }

    use:

    on {(press)

    gotoAndStop ("eight");

    }

  • Change password with the password token does not work

    My mother lost her password. So, we asked an e-mail with a password token and clicked on the link in the mail. Responses from the site sorry this token of password is not recognized, please try retyping or get password another token. Then we have copied and pasted the token giving the same result.

    We did this three days after another. So every day we ask you an email with a password token, and every day the site said us sorry this token of password is not recognized, please try retyping or get password another token.

    The system of resetting password with a token does not, at least not in the Netherlands. Does anyone have an idea how to solve this problem?

    Sorry, but the mentioned page asks you to connect with your name Skype and password, so that we cannot further. My mother has a balance of Skype credit that she doesn't use anymore.

    What is the problem with the password reset procedure?

    OK, after a very good conversation with Cherry B we discovered that the account is a Windows Live account, then we should change the password in Windows Live. The password reset procedure could mention this...

  • Dynamic stamps with the user input does not work in Acrobat DC

    After the update to Acrobat DC our dynamic personalized stamps no longer work. Pop ups to enter the data of the user are not more. When you open the PDF stamp if they work, but on the stamping stamp is affixed just without asking for user input via javascript.

    Any ideas on how to solve this problem? Is this a bug? Disabled Adobe functionality?

    K

    You should place as the custom calculation of one of the fields script and modify the code to check the stampName property.

    Search for information on dynamic PDF badges. There are many examples and code snippets out there in how to do it properly.

    There is even a whole book dedicated to this topic by Thom Parker.

  • An error occurred during communication with the server

    After Update to 1.1.3 will result in a message

    An error occurred during communication with the server. Could not test the compatibility of the Folio Builder and server. Please check your network connection and try logging in the Panel again

    I always can not connect to FOLIO BUILDER.

    In countries where I am support for Digital editing Suite cannot be smooth .

    I hope that I have learn you to Difficulty easy .

    Windows 7, people who use InDesign 5.0, le 1.1.3 update and are problemslike me.

    Windows 7 InDesign 5.0, 1.1.3, haven't seen anyone who uses un good .

    I doubt this question is a known issue . Information associate at this place et watched them in the Forum for solve the the same eopeotdeongeot .

    Je do not have speak good English .
    Sorry to write only sentence is clumsy .

    Come on, J’ai hope the problem is solved .
    Progress of the project is order .

    Hello

    Please refer to this topic in the forum http://forums.adobe.com/message/3880336#3880336. If you have any other questions, feel free to contact me.

    Thank you

    Michael

  • DASYLab is not communicating with the hardware dbk25a3

    Hello:

    I'm trying to troubleshoot a high pressure processing equipment. This system uses a PID controller. The level of pressure does not stop at the set point, but continue to increase. I am trying to solve this problem. As the program was written by someone else and there is no documentation on what each represent module and done. It is very difficult for me to solve the problems. Therefore, I decided to start all over again with my own module.  However, I have a problem. My hardware (DBK25 and others) is not communicating with the module of Dasylab. I tried several different things, that nothing seemed to work. I get this error.

    DBK25A3O

    An entry of a module is open.

    Any help is highly appreciated

    Thank you

    Krishna

    The error message indicates that you have a module that has one input open - nothing is connected. You must have a data wire to all entries.

  • Dell Inspiron 531 is not communicating with the Dell AIO 926 Photo printer.

    Dell Inspiron 531 is not communicating with the Dell AIO 926 Photo printer.  Maintains documents in the print queue and print them when the computer is restarted.  In addition, the computer does not recognize my Promaster digital converter when I plug it into a port.

    Hello

    Thanks for posting in the Microsoft Community Forum, please be assured that we would do our best to help you.

    Please answer the following questions that would help us provide a better solution.

    What version of Windows are you using?

    Try to follow the steps and check:

    Step 1:

    Visit the link following if you are using Windows 7.

    Printer in Windows problems

    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    If you are using Windows Vista, see the steps mentioned in the link.

    http://Windows.Microsoft.com/is-is/Windows-Vista/troubleshoot-printer-problems

    Try the steps from the link following if you are using Windows XP.

    Resources for the resolution of the printer in Windows XP problems

    http://support.Microsoft.com/kb/308028

    Step 2:

    Try to activate the devices associated with the Dell printer and disable the rest by performing the clean boot, once done try to print.

    You can start Windows Vista or Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts. The following article explains how to solve problems in Windows Vista or Windows 7 by performing a clean boot:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: Put the normal computer as mentioned in step 7 of section.

    Step 3:

    About the issue with Promaster digital converter try to connect to another USB device or run the fixit and check:

    Hardware devices do not work or are not detected in Windows

    http://support.Microsoft.com/mats/hardware_device_problems/en-us

    Please feel free to respond if you have any other questions, we would be happy to help.

  • Internet Backgammon no work, receive error message: "a network error occurred during communication with the game server.

    Original title: All of a sudden internet backgammon works not

    Just your portable Windows 7 computer base. Everything worked well. Started playing internet backgammon... has won EACH game Yes! Took a break for an hour or so... came back and now have message saying a problem to connect to the internet game server.  Someone knows what's the problem?  What it says is specifically "a network error occurred when communicating with the game server". That the devil which means?

    Hello

     

    1. what browser do you use?

    2 are you facing the same issue with other games like asset stings on the internet?

    I suggest you follow these methods and check.

    Method 1: You can check if the problem appears in a clean boot state.

    Refer to this link: http://support.microsoft.com/kb/929135

    If the problem is solved, check which service non-Microsoft is the source of the problem; referring to article and following the other steps.

    Note: After you check the clean boot feature configure Windows to use a Normal startup using step 7 proposed in the above mentioned link.

     

    Method 2: Temporarily disable the security software and check if the game works very well.

    Refer to this link: turn off the antivirus software

    http://Windows.Microsoft.com/en-us/Windows7/disable-antivirus-software

    When you disable the Antivirus: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

     

    Method 3: If the previous step fails, temporarily disable the Windows Firewall and check if the game works very well.

    Refer to this link: turn enable or disable Windows Firewall

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-Firewall-on-or-off

    Note: After checking the functionality enable the Windows Firewall.
     

    I hope this helps!

  • Started at Mo and not charging with the charger connected. Charger works. Keyboard not workin except power button / stop. Restarted using ex in car without success. SW

    Started MacBook and not charging with the charger connected. Charger works. Keyboard does not not except the power button / stop. Restarted ex drive no available help hoping that it was a matter of SW. SW and the operating system works very well. Read some info online. Tried to reset the SMC. Now, the MacBook does not start. Can U help me please. Thanks in advance.

    MacBook, 2010, Mac OS X 10.6.8

    Hi Veronica Steward,.

    I understand that you have turned into a series of questions about your MacBook and want help getting the computer to turn on. Here is an article that can help you through the steps to fix this problem:

    If your Mac will not turn on - Apple Support

    Let us know how it goes and thanks for coming to Apple Support communities.

    See you soon.

  • The CD/DVD does not work with El Capitan 10.11.5 on Macbook Pro

    Hello everyone, I spent the time to research on the here and the other site on why the CD/DVD does not work with El Capitan 10.11.5 on MacBook Pro mid 2009. This discussion forum has said that he will not work with the El Capitan software. Any idea or suggestion? Back to Marverick or Yosemite? I tried to use SMC reset, restart, recovery and still the same issue.

    I thank in advance.

    ~ Mike

    I have my doubts that the (10.11.5) software is the problem.  Are you sure that the DVD player is simply not defective?  Have you tried to clean the lens?  What is the State of the disc?

    Your best option may be a date at a bar in engineering of the Apple store for a FREE evaluation.

    Ciao.

  • My hp c4500 Wireless will not print. Troubleshooting says my printer is not communicating with the router.

    MY hp c4500 wireless printer will not print. Troubleshooting says my printer is not communicating with the wireless router. I've checked everything. Unable to find the answer.

    Hello

    As OEM HP is responsible for the good operation of the printer and their drivers. Check with
    HP support, their documentation online and drivers and ask in their forums.

    Good luck, you need to update or reinstall the latest driver.

    Support HP & drivers
    http://welcome.HP.com/country/us/en/support.html

    Contact HP
    http://welcome.HP.com/country/us/en/contact_us.html

    HP forums
    http://h30434.www3.HP.com/PSG/

    =============================================

    The main issue is probably the drivers, but these can help:

    Add or remove a printer
    http://Windows.Microsoft.com/en-us/Windows-Vista/add-or-remove-a-printer

    Solve printer problems
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problems

    Open the printer Troubleshooter
    http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter

    Find the manufacturer's Web site
    http://Windows.Microsoft.com/en-us/Windows-Vista/find-a-printer-manufacturers-website

    Find and install printer drivers in Windows 7
    http://Windows.Microsoft.com/en-us/Windows7/find-and-install-printer-drivers

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

Maybe you are looking for

  • iOS 10 trust store 2016060200

    What are the changes in the approvals as of the 2016060200 store? Where are these documented publicly? Are the contents of the CA root internal S1 v1 documented anywhere?

  • one of my missing e-mail folders

    Yes, when I go into my hotmail email account, one of my folders is missing, it contains a lot of important messages, suggestions of where he went, I know that I have has not removed them, thanks

  • E531 with Samsung 1 TB Evo?

    Hello Can I replace with a basic EVO Samsung 1 TB 1 TB HARD drive? E531 selected Samsung EVO base 1 TB Or is it still possible to plugin both of them and do not remove any other components?

  • Como reparar meu windows xp online

    wave voces are veja is ta missing person if no meu windows xp POI hoje ele travou feio only ate o mause! Obrigado.  Pet

  • OfficeJet 6500: prints too small

    Using a printer OfficeJet 6500 wireless on Windows 10 system. I try to print a chart (dress model) of a PDF with Adobe Reader.  There's a graphic box that needs to be 4 "square but mine test prints in 3" squares. I reloaded the software, rebooted the