NiVisa with the Protocol P849

I have a piece of equipment that requires P849 protocol via RS232-C. I can connect to the device using NOR-M & A Explorer on device COM1 (ASRL1). The Protocol is simple, send ascii 5 (character ENQ) and equipment with ascii 6 (character ACK) responses for the handshake. Then the commands start with ascii 2 (character STX) follow-up followed by ascii 3 (character ETX). I see the right answers but keep getting errors TMO... I tried different settings of VI_ATTR, but no progress.

Is this just a problem with the settings VI_ATTR or NiVisa can simply not to handle this Protocol?

Diary of NOR-SPY home.

Thanks in advance.

I can't help with the Java application, but I did a couple of different ways, and you do not really set the size of the buffer - you set the number of bytes to read into the buffer.

If I need to check that the equipment responds with the correct characters, I will first put the term tank turn off. then, after the entry VISA, I'll use the function to determine the number of bytes in the buffer (VI_ATTR_ASRL_AVAIL_NUM). I'll pass this number to playback VISA. I'll analyze the string returned for anything that is unique or more characters I want. It is in a loop, and if the expected characters are there, the loop stops. If they are not, so the loop continues. I place a function of time-out (separate from the integrated delay of VISA) and returns an error if characters are never seen. The characters form a chain that I pass to this function of general reading.

Another technique to use is simply not care if the instrument is back all the correct acknowledgments and simply read what is returned. In this case, I have a loop with the VI_ATTR_ASRL_AVAIL_NUM function and leave the loop when the number is greater than 0 (there also a function of time-out here as well if the instrument never replies with anything). Then another loop is called and there is also VI_ATTR_ASRL_AVAIL_NUM to change the number of bytes to read VISA. This loop stops when the number of bytes is 0.

What technique do you use is up to you. There is more in the first technique of error checking. The second is rather Hyperterminal works. You get just whatever the instrument sends.

Tags: NI Hardware

Similar Questions

  • Impossible to accelerate traffic RDP 4.5 view with the of Riverbed Steelhead appliance

    Hello

    We are currently assessing two of Riverbed Steelhead appliances to see what that capacity in terms of acceleration of the RDP.  Our intention is to use these devices to accelerate RDP traffic on our network at our branch.

    While we can easily demonstrate optimization applied to traffic enforcement and standard RDP connection (with encryption and compression disabled), we are not able to see any optimization with the Protocol RDP for VMware View 4.5.  Instead, we see traffic optimization at the launch of the Customer View point click on 'Connect' on the virtual machine you want.  At this point, the RDP connection is established and the Riverbed camera seems to get through the traffic display without any optimization at all.

    Since we are able to get the optimization with applications and stand-alone RDP traffic, I was wondering if there is anything else we could be missing in the configuration for use with view, not to mention that turning off compression and encryption RDP as we already have in troubleshooting with Riverbed.

    Do you have successfully obtained a Riverbed appliance to optimize the RDP traffic such as initiated by the customer to view?  If so, what configuration steps you took.

    Thanks for any help/advice,.

    -Arin Puckett

    No problem... Good luck!!!

    WP

  • I try to get Firefox to open Vuze when I click on a magnet link, I get the following message: Firefox doesn't know how to open this address, because the Protocol (loving) is not associated with any program. tell me the solution

    When I try to open a torrent using magnet, I get the following message. Firefox doesn't know how to open this address because the Protocol (loving) is not binding to any program.

    I had this problem and just reinstalled Firefox. Problem solved. In my case, I believe that it is through the installation of FlashGet. Although I uninstalled FlashGet, it had outstripped the Magnet links / Protocol. I hope this helps you with your instance. Fortunately, I had Setup for my version of Firefox (7.0.1) registered and used that but you might need to search for your current version or install a later version

  • Problem of the intranet: "Firefox doesn't know how to open this address, because the Protocol (k) is not associated with any program."

    Creation of an intranet to a collection of security videos and am linking to a video through a picture icon in the form of:
    < a href = "K: \'link to the movie" > ""
    < /a >

    Overview on the works of IE9, the movie starts when the splash screen is clicked, but in Firefox, I get the alert "Firefox doesn't know how to open this address, because the Protocol (k) is not associated with any program."

    InterLan VLC is the video player by default on the PC. I don't want to put video controls anywhere in the page.

    I code for XHTML 1.1 strict with CSS 2.1, and Firefox 5 handles all of my eccentric styles while IE9 has a few issues, while Firefox is my browser of choice.

    Looking at my Options in Firefox, 'File Windows Media audio/video' is configured to use VLC.exe, so I'm always looking to solve this problem.

    Any Suggestions?

    You must use the Protocol file:// (file:///k:/link_to_movie).
    Easier to see the links to use are to open a file via file > open a file

  • [Solved] Message "Firefox can't open this address, because the Protocol (icyx) is not associated with any program. icyx://stream-16.streamsolutions.co.UK:9102

    Hello
    Firefox doesn't know how to open this address because the Protocol
    (icyx) is not associated with any program.
    This happens when I open a radio station - lmradio.net / and then try to
    play with my Windows media player. All of a sudden, it happened that I had no problem before yesterday.
    My OS is Windows 7 Pro.
    Concerning
    David Rennie

    You install the Orban/Coding Technologies AAC/HE-AAC Player plugin.

    This solves the problem.

  • I have updated and now when I try to log on to Web sites with fingerprint reader, I get "Firefox doesn't know how to open this address, because the Protocol (dpql) is not associated with any program."

    I have updated and now when I try to log on to Web sites with fingerprint reader, I get "Firefox doesn't know how to open this address, because the Protocol (dpql) is not associated with any program."

    What is the Digital Persona fingerprint scanner? If it's that they have abandoned, for more details, see https://support.mozilla.com/en-US/questions/799388

  • Impossible to download music - error message reads "Firefox doesn't know how to open this address, because the Protocol (wmms) is not associated with any program."

    I bought a song to download from Wal - Mart.com and received the error message when I tried to download the song. "Firefox doesn't know how to open this address, because the Protocol (wmms) is not associated with any program." I've never had a problem before. I paid for this download & even I can't access it.

    The site of Wal-Mart offer a plugin or program (Walmart MP3 music downloads) to manage this Protocol?

    See:

    On a protocol must be enrolled in a program for Windows that supports this Protocol.

    See also http://kb.mozillazine.org/Register_protocol

  • 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

  • an address incompatible with the requested protocol was used

    After I have upgrade of windows 7 starter edition to windows 7 Home Edition premium, I can't do a bluetooth file transfer and the following message appears: an address incompatible with the requested protocol was used.

    Hello
    How do you transfer the file?

    Method 1:
    Try to perform the audit and the clean boot if this can help,
    Here is the link: http://support.microsoft.com/kb/929135
    Note: When you're done to diagnose, follow step 7 in the article to start the normal start

    Method 2:
    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following link.
    http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry
     
    You can try the steps and check.
    (a) click Start and then click Run.
    (b) type regedit and then click OK.
    (c) locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {e0cbf06c-cd8b-4647-bb8a-263b43f0f974}
    (d) right click on the folder, click on delete.
    (e) exit and restart
     
    Method 3:
    Change settings for a Bluetooth compatible device
    http://Windows.Microsoft.com/en-us/Windows7/change-settings-for-a-Bluetooth-enabled-device

  • Windows could not transfer files. An address incompatible with the requested protocol was used.

    Microsoft. It's so hard to get where you want to go on the site.

    I wish they still had the cat where you enter just a few things, and for free, it instantly opens a window of instant messaging to chat with microsoft.

    Well, I have a dongle bt USB and when I right click and click send a file, it gives an error

    Windows could not transfer files. An address incompatible with the requested protocol was used.

    With windows xp, I plug it and he can move 2 drivers, "microsoft bluetooth enumerator" and "generic bluetooth radio".

    in windows 7, it installs the same 2 drivers

    I pair the device from the phone and it didn't work. while I was looking for the computer and it does not even, but file transfer

    It works totally fine XP and with the same drivers! just different os versions.

    I went to Device Manager, click on set to update driver and he know that later is installed

    BTW, it's a generic radio bt, and it was $10 do9ller micro dongle.

    However, there is no brand name.

    but it works under windows xp? but not 7?

    Windows xp and windows 7 are duel boot, so it's the same material, b/c windows xp and windows 7 is on the same hardware

    If I use the VM vmware, I can transfer files

    Microsoft sucks... I mean except xp. He is old, but it's the best version of windows there, Runnin' on minimum 16 MB of ram and 400 mhz cpu... I luv xp, no more errors

    Hello

    Check if the same device works fine on another computer with Windows 7 installed. Also, try to send files from the phone to the PC and check what is happening.

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following link. http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry

    You can try the steps below and check if that helps get the Bluetooth dongle to work.

    (a) click Start and then click Run.

    (b) type regedit and then click OK.

    (c) locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {e0cbf06c-cd8b-4647-bb8a-263b43f0f974}

    (d) right click on the folder, click on delete.

    (e) exit and restart

    Now, try to find your device and send the file. It should work.

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • The Microsoft Unified Security Protocol Provider security package has generated an exception LSA (lsasrv with) the event ID 5000

    I am operating Windows 7. I get this error that I see in my event log, Event Source LSA ID (lsasrv with) 5000, which translates the message that Windows has encountered a critical error and will stop in a minute. My research looking for the solution indicates that this error is not applicable to Windows 7, but that's it! It happens every hour approximately. It was supposed to effect Windows2000, so whenever I search, it says any fix does not work on my machine. No idea how to fix this error before the reinstallation of the operating system?

    "Provider = name"lsasrv with.
    GUID ="{199FE037-2B82-40A9-82AC-E1D46C792B99}" / > "

    5000
    0
    2
    0
    0
    0 x 8000000000000000
    1074084
    System
    -
    Microsoft Unified Security Protocol
    Provider of
    050000C000000000000000000000000000000000000000000200000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
     

    Thank you, Rick

    Hi Rick,

    Thank you very much for the detailed information.

    If the error only occurs after the server has been rebooted, it is likely that a service tries to authenticate before the directory service is available. Lsasrv.dll library is required by windows and is used to perform the encryption/decryption and local password hashing. Lsasrv.dll is flagged as a system process and does not seem to be a security risk. However, removing the LSA Server Library might harm your system.

    Corrupt Lsasrv.dll file could lead to this problem. You can download the file from any .dll and register again on your computer. But we do not recommend this.

    I suggest you to run the System File Checker command to check if there is any violation in the system files that may be causing the problem.

    To run a SFC scan.

    Please follow the link https://support.microsoft.com/kb/929833?wa=wsignin1.0 to make a SFC scan on the computer.

    If the problem persists, then we run check disk command to find the volumes on your hard disk for problems.

    To run the check disk follow the steps below:

    1. right click on the Windows button.

    2. choose command line (Admin).

    3. in the command prompt window, type the command Chkdsk C: /F and press ENTER.

    4. this process will take about 20 to 30 minutes.

    The above command corrects the bad or corrupt volumes in C:\ drive. After you run the check disk command, check to see if the problem persists.

    Warning: The data available on bad sectors could be lost whenchkdsk trying to repair your hard drive.

    Please respond to this post with the State to help you.

  • What is ORA-29049: unknown record when using UTL_HTTP.begin_request with the HTTPS protocol?

    Hi, here is my question:

    The application context:
    Oracle 10.2.0.4.0
    Operating system: AIX Version 5.3

    A stored procedure executes queries on the web in order to call a Webmodele.
    The used protocol is httpS.
    A certificate has been defined with the Oracle Wallet (orapki) utility

    Problem:
    For several days, making the procedure call webservice no longer works.
    The package has been changed on the database, no patch has been applied on the machine.

    The call to the procedure of utl_http.begin_request with the HTTPS url returns the following error:
    ORA-29049: unknown record
    ORA-06512: at "SYS." UTL_HTTP", line 1027
    ORA-06512: at line 16 level

    A small piece of code/oog is attached, see photo log_sql_ws_call.jpg

    Question

    Can you explain to me the meaning of the error ORA-29049, what may be the cause of this unexpected error and most importantly, how to fix?


    Thank you for your help.

    Finally, it happends only a few days before the described error (ORA-29049), SSL v2 has been disabled on the target domain (SSL v3 has been disbled 1 year ago already).

    The reactivation of SSL v2 solved the ORA-29049.

    Now, I'm dealing with the ORA-12537: TNS:connection closed.

  • This protocol uses Agent to communicate with the Service

    Hello everyone, this is my first post in this forum and I want to shoot a question if someone could help me.

    I guessed that the communication between the api and the server at the time where the user will put api HQAPi = new HQApi (...) is with the http or https protocol, depends on the value introduced in the conf file.

    I would like to know what protocol uses agent to communicate with the service. I would like your ideas.

    Thanks in advance.

    Hello

    Welcome to the forums!

    Could you clarify your question a bit more? Looking for agent-> server HQ communication or agent-> communication monitored service?

    If this is an agent-> HQ server then they communicate with each other using foam which is a specific HQ communication protocol.

    If he's an agent-> monitored service it depends on the service.

  • MessageConnection opening with the mms protocol prefix, phone number and application ID fails

    Connector class API says docomentation when send MMS to Java application MessageConnection can be opened with the following URL "mms: / / []: []". However when I go for example ' mms: / / + 1234567890:myappID "to Connector.open () IllegalArgumentException is thrown with the invalid message 'URL '. MessageConnection opening with "mms: / / + 1234567890" works very well. It can be reproduced on BB 9105 but BB 9900 is not affected. Is there any workaround for this problem solution I can still be able to send MMS to another Java application?

    Found this prefix "+" is not a reason any.
    http://supportforums.BlackBerry.com/T5/Java-development/cannot-receive-MMS-with-port-USIN-WMA/TD-p/4...

  • Problem with the new Notes, do not sync with many testimonies

    I have several iCloud for work and my only personal accounts, since I just have an iPhone, I tried to synchronize all the accounts and their use on the same device.

    I found the following, maybe apple wants to examine, or re-thinking that he...

    HomeMac has my iCloud account staff, main on my iPhone, so the arrival of new tickets I've updated as suggested for the new features, everything went well.

    On my work, that I have a main and other iCloud for test account and so my main account on the desktop, it is not the main on the iPhone, is a secondary antibody and since last September did not want to synchronize the Notes, I couldn't find a reason to today where do more test with multiple accounts. Checking search for differences between accounts on Mac, configuration of web and iPhone iCloud Finally I saw the difference. Main account have the new interface of Notes on the iPhone, iCloud and Mac. Secondary accounts has old interface Notes on Mac / iCloud and iPhone, but always properly synchronized, so that on caos is just my main office account, which has "partially upgraded', when used a desktop Mac, it works under the new Notes interface, iCloud way suite, but at the time I check on a device where is a secondary antibody account he stopped to show me the new data upgrades or data, because it can not "mix" information, is as main account on iPhone has new tickets upgraded, but secondary accounts can not, do not know why, but I guess that has to do with the same question, you can only access info Pages, Numbers and Keynote, on a device, to your iCloud account main If you have a second account, there is no way you can access your information from these applications on the same iPhone / iPad.

    I was happy when Apple decided to make a second account iCloud on our devices and applications (Mail, Notes, calendar, Contacts, etc.) could manage the data separately, which has been a success, al at least for me, but now when Apps allow you to do more, when you try to make / get most of your devices, even once, we face limits that other applications has resolved as Instagram or Twitter where you can switch between the accounts and continue to use the App with a full capacity.

    For me, it is not 'normal' that if I updated a secondary account of new Notes and the iPhone can handle for the main account, this secondary account could not synchronize. I am committed to update on Mac to take advantage of the new features, but if yes, then what is supposed to do with my Notes on the secondary account if they no longer work...

    Please if anyone has an opinion on what might help solve, I will appreciate it.

    Thank you

    To understand, you must also understand how the notes are used to synchronize. Each IMAP account (emails mostly) have an underlying protocol used to perform the synchronization of notes. Icloud account is IMAP, Google is also (or they both have most of the components of the IMAP, but it is more complex then just). Sync IMAP notes would never let features advanced to be synchronized, so had to go with different type of synchronization of server Apple to improve the 'notes' (details - below) but that the clocks single server an account - main. For all those who have upgraded cannot go back and use the IMAP protocol. Therefore, when you add a few accounts to iphone only primary account has one capacity improved and other accounts synchronize using old IMAP.

    The specifications are in this article from apple.

    Before you upgrade your notes - Apple Support

    Upgrading of your notes with iOS 9 and OS X El Capitan - Apple Support

Maybe you are looking for

  • How to keep sites open only

    When I opened a Web site, I find that there are many sites which is open in itself behind my site window. How to stop it

  • Where is the Windows taskbar?

    Why Firefox hide my taskbar Windows all of a sudden?

  • BSOD when activating for bi - GPU SLI

    I recently installed a second GPU in SLI mode. My system is fully compatible to run SLI and I have installed the latest driver from Nvidia. Work cards and two locations on the motherboard also work, I have troubleshooted both of those. Windows recogn

  • The items are permanently deleted and not going is not to the trash

    Someone can tell me why what I delete is permanently deleted and not going not in the trash, it started only in recent days, any help would be appreciated. Thank you.

  • IPod is not recognized

    My Ipod isn't recognized or something.  I get the error code 13019 when on Itunes when I try to sync, and the computer tells me that it is uninstall my device, code 21.  I followed all the suggestions for Itunes and all for the computer (f5, and then