Error 74 to unflatten string in a device helping custom interface hardware Inline

Hello

I am creating a custom device Interface material Inline to communicate on a bus series to Veristand. I want only to communicate via RS232 veristand channel values, I use flatten/unflatten to chain to transfer my data. I choose what it because VISA Write/Read uses strings, and he would always use the same size of string (channels Veristand = 64-bit double-online 8 character string).

But when it comes to try it with veristand, I have error 74: corrupt memory or data structure. I noticed this error came from the "string unflatten".

So I plugged in a "clear error" vi just after "unflatten to channel" works, for my custom device runs but gives me wrong results. Then I used the tool NI OF Trace to see what I was writing to the RS232 bus. You can find the result of this. When we take a glance on the viWriteasync functions, we can see that the data written on the bus will already '?... " W.... M' which translates as 0,000232195, although the value that I have passed to the bus was greater than 1.

I plugged the constant 'false' by 'add array or string of size' 'flatten in string' and 'unflattend to the string' functions.

Does anyone have an idea what's wrong?

Kind regards

Maxim

Is your session series Visa implemented to put an end to strings with the null character? It's been a while since I worked with serial number, but I remember this could be the case. So then you'd have trouble sending binary data flattened since it would have a lot of characters in it null. Another solution would be to format doubles as text with a specified number of digits of precision, although this will be less accurate and can take more bytes to transfer.

Tags: NI Products

Similar Questions

  • Error 116 when a string of binary file reading

    I try to use the 'writing on a binary' and "binary file reading" pair of VI to write a string to a binary file and read it again.  The file is created successfully and a hex editor confirms that the file contains what is expected (a header + chain).  However, when I try to read the string back once again, I received an error 116: "LabVIEW: Unflatten or stream of bytes read operation failed due to corrupted, unexpected or truncated data.»  A quirk I found though, is that if I put "endianness" to "Big-Endian, network order", the error disappears when I use "native, welcome the order" (my original setting) or "little-endian" error occurs.  Did I miss something in the documentation indicating that you can use big endian order when writing of strings, I do something wrong, or is this a bug in Labview?  Because the program that it will be used for is to write large networks, in addition to channels, I would like to be able to stick to the 'native' setting for speed purposes and must not mix "endianness".

    I have attached a VI of example that illustrates this problem.

    I'm using Labview 8.5 on Windows XP SP2.

    Thank you

    Kevin

    Hello

    Please contact National Instruments!  I checked the behavior that you have met and agree that it is a bug, it has been reported to R & D (CAR # 130314) for further investigation.  As you have already understood possible workaround is to use the Big-Endian parameter.  Also, I am enclosing another example that converts the string to a binary array before writing to the file, and then converts to a string according to the playback of the file.  Please let me know if you have any questions after looking at this example though and I'll be happy to help you!  Thank you very much for the comments!

  • Analysis of the error in normal mode string

    Hi all

    Suddenly, my analysis of the chain has stopped working and started giving me this error. The read string ends up being something like 2.86E - 4 or similar. When I run mode highlighted everything works fine and it interprets the number very well but when he's not in highlight mode it returns an error. Not sure why since it is just a number to convert. Any help? I have attached the error and the highlight mode version. Thank you!

    First guess: synchronization problem. Especially since you said it works in highlight mode. Specifically, when you run culminating point mode you expect probably not long enough before trying to read, and the loop will immediately detect any byte on serial port. This delay function there will not guarantee a delay of 1 second between writing and reading. There is no dependence on the data - a rookie mistake. Use an image sequence or time to late VI to have clusters of error wiring through establishing the data dependence.

  • We are trying to install FSRM (File Server Resource Manager) in windows server 2 k 3 R2 SP2. After installation, its error message that gives as no network device connected. Suggest me!

    Original title: problem in installing FSRM

    We are trying to install FSRM (File Server Resource Manager) in windows server 2 k 3 R2 SP2. After installation, open the FSRM in "All programs", its error message that gives as no network device connected.  Suggest me!

    Hello

    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Windows 7 networking forum.

    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads

  • Plustek OpticBook 3600 will not install error that an error occurred during the installation of the device. The required section was not found in the INF

    Original title: Plustek OpticBook 3600 is not installed

    Found new hardware wizard runs, but after scanning stops the disc from the manufacturer with the message ' year error occurred during the installation of the device.»  The required section was not found in the INF"

    PC system is homebuild which, in theory, exceed the minimum requirements of the system of manufacturers.  Operating system is Windows XP Pro with Service Pack 3.  The scanner is connected to the USB 2.0 card that is not separately powered, but installed in the PCI slot.  I suspect that the problem lies in the PC rather than the scanner. but do not know what the problem is.  Any help would be appreciated!

    Hello
    You can try the troubleshooting provided in the link below steps to fix the problem.

    You receive a "unable to install this hardware" or "an error has occurred during installation" error message when you try to install a PCI device

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

    Note:

    To do: 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 on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows

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

    See also:

    Error message: cannot install hardware. An error occurred during the Installation of the device

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

  • Cannot install this hardware. An error occurred during the installation of the device

    Can someone please HELP ME - I get the following error message: cannot install this hardware. An error occurred during the installation of the device. They system cannot find the specified file.

    I am not able to connect any hardware. It started all of a sudden. I can't connect my mouse so it before I'm not able to use my computer.  He did the same thing when I put in a USB key, there was the same error message.

    If something is damaged? How can I resolve this - pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.

    Looks like you may have a virus or other malware. Get your updated antivirus program and start safe mode.  Note that some viruses can hide from your normal antivirus program, so you really need to scan mode without failure.  To enter in Safe Mode when you turn on first, press F8 on every seconds until you get the menu, and then select Safe Mode.  Then run a complete system scan.
    Microsoft has suggestions and offerings to
    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-remove-a-computer-virus
    Moderator Forum Keith has a few suggestions along this line to
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/Windows-Explorer-has-stopped-working/6ab02526-5071-4DCC-895F-d90202bad8b3
    If that suits him fine. If this is not the case, use system restore to go back to an earlier date at the beginning of the problem.  To run system restore, click Start-> programs-> Accessories-> System Tools-> system restore.  Click on the box that says show more restore points.
    You can check the corrupted system files.  Open an administrator command prompt and run SFC if the above does not help. Click START, and then type sfc in the search box, right-click to SFC. EXE, then click on run as administrator. Then from the command prompt, type sfc/scannow.
    Finally if all else fails, you can look at the rather cryptic system event log.  To make, click Start-> Control Panel-> administration-> event viewer tools.  Once in Event Viewer system log-click and scroll entries looking for these "error" with indicator see if you can find guidance on where the problem may be.
     
    I hope this helps.  Good luck.

  • Windows XP - NICs has error code 10 - impossible to start this device.

    I tried to install McAfee 2011 on my pc and now I can't access the internet. I am running XP. Explore the msg on the internet says no card no installed wireless network. I checked the properties of the network connection and found one of the adapters network error code 10 - impossible to start this device. Since I have more access to internet to download the drivers, etc., how can I fix this problem?

    Hello

    I suggest you to download the latest network adapter driver by using another computer and transfer to the computer that is causing this problem and install the same.

    For more information about the error 10 code refer article.
    Description of errors related to the 10 Code that generates the Device Manager in Windows on computers
    http://support.Microsoft.com/kb/943104

  • Error occurred during the installation of the device, a service in the INF installation section is not valid with Sansa Fuze player

    Media player 11 fails to connect to my sansa fuze player. A second computer find the fuse in sansa without problem. Default media player 11 , I get the following message: error occurred during the instalation of the device, an installtion of service section in the INF is invalid.  I have two players from sansa and both not on this media 11 computer system, but both work on a second computer with media player 9 ? Is the problem, a bad installation of the media 11 on the first computer system, should remove and reinstall media 11 If I delete what is happening in the music on this computer file. Carl L_942

    Hi, Carl L_942,.

    Connect the Sansa Fuze and put into MSC mode. This enabled the majority of users with this problem. Check if it helps you too.

    For more information, see:

    Activation or forcing MSC mode on the Sansa player

    Additional reference on:

    Check and change the device to the master or the MTP USB mode

    The only problem with Media Player 11 and Sansa device is the synchronization of album art to the device.

    For more information, see:

    File Readme for Windows Media Player 11 for Windows XP

    Kind regards

    Divya R - Microsoft technical support.

  • Material up to date Assistant, MTP device an error occurred during the installation of the device

    I have a problem installing the driver for my mp3 player. I get this message after I try and install "" there was a problem installing this device: MTP device, is an error occurred during the installation of the device the specified service does not exist as an installed service. "" Even if I uninstall and re install the driver, I still get the same message. What could be the cause of this error message?

    My operating system is Windows XP home

    Original title: update Hardwre Assistant

    Hi D.L.B1,

    • What is the brand and the model number of the MP3 player?
    • Other USB devices are connected to the computer works well?

    You try to manually add the MP3 player to the computer and check if it can help solve you the problem and if the MP3 player is detected.

    You can access the link below and follow the steps in the article to manually add the material to the computer.  When adding the verification of the material if it appears two devices one by one for device MTP and other USB Mass Storage Device. If it shows both, select the USB mass storage device from the list and try to install it and check if that helps.

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/app_start_hardware_wizard.mspx?mfr=true

    If the problem persists and you cannot install the MP3 player, you can contact the manufacturer of MP3 and check if you need to make changes to install it and if they have the latest drivers to install.

    I hope this helps. Let us know the results.

    Thank you and best regards,

     

    Srinivas R

    Microsoft technical support.

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

  • "unrecognized usb device": error message every time that a usb device is plugged into one of the usb ports

    "unrecognized usb device": error message every time that a usb device is plugged into one of the usb ports

    1. my laptop - acer aspire 5030 - has been having this problem for the last five months.

    2. I tried everything including changing service pack, as we have xp professional, he has recently upgraded to vista business 32-bit with service pack 1.

    3 tried all the methods start the laptop after a few hours, remove the battery, press the power button for half a minute, and so on.

    4. I finally he formatted a couple of times, but the problem is not.

    5. later, I improved the professional system of vista and installed the latest security patches, but the problem remains

    6. now, I started to update its drivers, although the device is identified to be connected, but is not recognized. "the error message" not recognized usb device "appears. I try to reinstall the drivers or upgrade of drivers, it does not. It displays the message "the drivers for this device are to this day.

    7. initially, the connection of the device, the drivers are installed but still the device does not show in Explorer.

    8. I tried to change some registry values by merging a regedit file in the registry - for display devices that are not present; but still, it has failed.

    9. I then tried to delete the file infcache1.inf in c:\windows\system32\inf, but the problem persists.

    10. Subsequently, I tried to create another registry entry to "disable selective suspend" in HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\USB by adding DWORD and assigning a binary value of 1.

    11. I tried later also to uninstall all the system devices including USB controllers, drives and the storage controllers, who must still without success.

    12. I tried to see if the drivers in safe mode, which they did not.

    13. I tried to delete the following registry entries =

    HKEY_LOCAL_MACHINES\System\CurrentControlSet\Enum | USB PORT; HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\ {4D36E967-E325-11CE-BFCI-08002BE10318 & HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\ {4D36E967-E325-11CE-BFCI-08002BE10200.  The computer does not have alow it.

    14. the BIOS indicates device pnp "disabled", which I also look for the BIOS settings, which do not allow me to change to change existing ones.

    15. I have not found the WINDOWS\SYSTEM32\drivers\USBSTOR file. SYS in my driver store. This affects the system?

    16. I also contacted manufacturers pnp devices that provided me with most recent and versions compatible drivers for my devices - namely an apple ipod & Seagate external HARD drive - but even after that the drivers are installed properly and the system rebooted the problem remains. Is this something to do with the updated playing driver registry entries does not after the update? OR is what registry entries are configured to only read the entries at the time of the installation of the OS?

    17. I also contacted local sellers who have suggested to me to change the "motherboard". This will help as a last resort?

    18. in the meantime I had also installed other operating systems to Linux - Fedora and Ubuntu; Full Windows XP - Home & Professional and Vista Edition. All these have been installed successfully but do not solve the problem of usb.

    19. I have also raised the original HARD disk & replaced by another HARD disk. also checked the power of all ihee and ehee usb ports to be at least 5 V. I also disabled the automatic deactivation of devices usb by the system. physical contact, ports and connecting cable is fine. the distribution of power is set at 10% for the ihee ports and 20% for ports ehee, which is what is should be the physical output is also close to 5V for all ports connected.

    20. all professional (hardware or software) should any solution for the problem of the usb ports on my laptop?

    Something that you haven't tried:

    How to fix USB device not recognized in Windows

    http://www.online-tech-tips.com/computer-tips/USB-device-not-recognized/

    I hope I could help

  • PSC 2510 - wireless configuration - "error while saving the settings of the device.

    While trying to configure my PSC 2510 to be wireless I get an "Error." error while saving the settings of the device. This comes after selecting the network connection, select printer device, choose WEP, enter key and clicking next.

    PSC 2510

    Windows Vista

    Using the latest HP sfotware to install

    Thank you

    Dennis

    PROBLEM SOLVED... based on PrintDoc response to penn (refrence section "C4385 printer - Netgear DGN2000 Wireless Setup".-

    PrintDoc response has helped me find my problem (to reset the network settings on the printer to the factory) if different same printer.

    Thank you

  • error message "Windows cannot access the specified device, file, or the path."

    Whenever I try to open a file even my music internet explore or anything that I get an error message Windows cannot access the specified device, path or file.

    Hi nanditaberi,

    Since when are you facing this problem? What were the changes to the system between the time where everything has worked, and when you noticed the problem?

    This problem may be caused by this security software on the computer, uninstall them might solve the problem.

    Example: AVG, Zone Alarm

    Important:

    O before you uninstall the security software disconnect the computer from the internet. Make sure that the windows firewall is enabled.

    Ø you may need to check with the manufacturer of security software for reinstallation and activation.

    O re - install the security software on the computer.

    Reference:

    Please read the steps provided by, Donna, dated Saturday, January 3, 2009 14:01click here for the post.

    A scanner online for any threat and try to correct

    http://OneCare.live.com/site/en-us/Center/cleanup.htm

     

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

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

  • HP photosmart c309a error message States to remove the usb device because it is not compatible

    no previous problems with printing far... error message States to remove the usb device because it is not compatible with the hp photosmart wireless photosmart c309a c309a printer.the only thing plugged into the printer is power cord... no usb device is or was plugged so I do not understand this error message. I unplugged everything and reset the printer but the printer status is offline with the same error message.

    Jorup, try to run this utility and it must diagnose the State of the printer:

    http://goo.GL/u3jDE

    Also, when you unplug the printer, remove the power cord to the back of the unit and the wall for thirty seconds, then reconnect it.

    I would like to know how it goes!

  • During the scan, I get this error "'there are no installed TWAIN compatible device." Please install one and try again. »

    Original title: scanner problem

    I get this error - "there are no installed TWAIN compatible device. Please install one and try again. "- When I try to scan a document using the utility Windows 7 Scan (hppscan7.exe) and a printer HP Color laserjet CM1312nfi. I tried to reinstall the printer driver and software.  I have a laptop HP G71-340US running under WIndows 7 64-bit.  Service Pack 1 is installed, and all windows updates are up-to-date.  I hope that someone out there has a solution for me!

    Hello

    Have you made changes on the computer before this problem?

    I would suggest trying the following methods and check if it helps.

    Method 1:

    Run the troubleshooter of material and check if that helps.

    Open utility troubleshooting hardware and devices:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter

    Method 2:

    Temporarily disable the security software and check if it helps.

    Disable security software: http://windows.microsoft.com/en-US/windows7/Disable-antivirus-software

    Warning: If you need to temporarily disable the security software, you should 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:

    Run the HP scan Diagnostic Utility and check if it helps.

    HP scan Diagnostic Utility:

    http://h10025.www1.HP.com/ewfrf/wc/document?CC=UK&DLC=en&docName=c02114802&LC=en&product=3418707

    Hope the information is useful.

  • Problem of password of account, without that we can connect to the network on this computer. The error indicates, "the trust relationship between this device and the network is no longer valid.

    Hi, I hope you can help with this problem. A friend has 6 computers networked to a Tower Server and have a problem. A worker student put computers into hibernation, and since then, nobody can connect to the network on this computer. The error indicates, "the trust relationship between this device and the network is no longer valid. I tried to get into the pc to try removing network and replace it, but I can't get on the Administrators account because it has been disabled. I'm at a loss on how to proceed. My friend cannot afford a service call, so I'll try to help him.  Thank you

    If the computer is on a domain then there are at least two accounts that can be used to remove the computer from the domain:

    • A domain administrator account.
    • A local administrator account.

    When your friend has launched Windows for the first time after buying the machine, he was prompted to enter the name of an account. This account is created automatically with administrator privileges. He should use it now.

Maybe you are looking for

  • 9.1.3 Safari closes as soon as I start it

    I try to open Safari 9.1.3 and it: flashes a blank page on my screen and then disappeared.  There is no sign "suddenly quit smoking" or anything like that - nothing else.  I rebooted my MacBook Pro, no improvement. I use FireFox to write this. Is the

  • How can I add an address to the address book?

    Adding people to the address book appears as a top-of-list thing for people to want to do, but I can't understand how do in the program, and I can't find the problem addressed in this site. When the club added a few members, or the company adds a few

  • Photos referenced in the photo library are in the iPhoto library

    I have 26 pictures in my library of Photos that are referenced photos. I want to collect my library of Photos. However, when I try to do it says Photos that I need to allow it for the folder that contains these 26 photos. Unfortunately, this folder i

  • Gráficas

    Hola buenas noches... MI duda como get the 2D 3D surfaceplot UN matriz, debido has than para mi proyecto General debo the grafica from UN modelo matematico. Para este trabajo I need realize una comparison provided Gráficas, ellas una're con datos sim

  • I can't delete messages on my outlook express system... should I download a new system?

    My express system outlook does not delete messages, so I am faced with a large generation to the top of messages, spam etc, do I have to download another system?