Data drops using reading series visa

I'm having a problem using reading series visa when you transfer a picture from one PC to another.  Writing PC transfers data systematically as seen by the probe on the chain get into writing.  Exe read the string displays however the string table once and then on the next reading displays an empty string.  It seems new and fourth without a complete data string and an empty string.  The vi that data comes displays a table updated consistent but the exe read the matrix (via RS 232) switches the vacuum to the full establishment of the loop rate which is fixed at 1 Hz.

Teslac wrote:

files/NOR/Labview e (toward) Progam vi.llb\Advanced String?   Well Yes

Bravo and thank you.  There are buttons for those Bravo - simply click on the star under my avatar and brand the solution - (Options > OO > on your right, at the top of each post "Accept as Solution")

There are three reasons for this:

  1. Other contributors know that they can focus on helping out elsewhere

  2. It is easier to find the next person with a simillar problem

  3. We LOVE 'Solutions-pronounced ".

Tags: NI Software

Similar Questions

  • cut a red number first element in reading series VISA write vi

    I want to put the serial number of a card RFID in LAbVIEW and for that I used VISA base series read VI... The Red number by which is in the following format...

    2045A15F50... im getting a square in front of tis number... How to eliminate this place?

    Sorry, I am very new to LAbVIEW and have no idea about that... So please help me

    The square indicates her you received an "unprintable" ASCII character  This could be an indicator of 'Start of message' series equipment.  They are often used in certain communications.  Read the manual of the device would be a good place to learn the expected format.  Has LabVIEW some built-in string functions as 'Trim Whitespace, vi' which can remove characters which are white space (tabs, spaces etc.) and this code snippet shows how to remove all nonprinting charaters in a string.

  • How to stop the series 'VISA read' the sends packets instead of bytes available.

    Dear Labvillians,

    Highlights:

    How can I stop series "VISA read" send me packages rather bytes?

    Background:

    I have a system which publishes series of 14 bytes on a semi-regular interval packets.

    At busy times, the producer of these these queues of data packets, effectively producing Super-paquets multiple of 14 times larger than 8 packages (112 bytes) bytes.

    My protocol handler is designed to process bytes, packets, or packets Super.

    Now, my request has multiple devices and the order of message processing is essential to the proper functioning.

    My observation is that read VISA waits until the end of a package / super package before moving the data to the application code. (See chart below)

    My expectation is that VISA read should give me bytes available, get too smart for itself and not wait for a package.

    .

    I noticed this on PXI, PC shipped, PSC and, more recently, cRIO

    I've experimented with Scan interface the cRIO rate, which helps to reduce the backlog of packages but don't decide to package under read byte.

    I understand that a solution is FPGA code write to handle and pass the bytes by R/T-FIFO, and there are some great examples on this site.

    Unfortunately, it does not help with FPGA devices not.

    I have also dabbled in the event based sequential reads, but he is evil on vxWorks devices.

    Any help is appreciated

    It is helpful to sometimes talk to yourself.

    I hope that is useful for someone sprinkle in the future

  • VISA data serial number read

    Hello

    I'm starting to Labview (after a few years) and I have a problem with a reading series basic (using VISA) program.  The code is attached, and my problem is that I'm getting out of "FE FE FE", when I see in the Putty terminal it is count up to integers indefinitely - I can't quite grasp what's going wrong here (after much trial and error), so any help would be appreciated.

    Thank you

    Rob

    First thing to do is to use the configure Serial Port instead of the VISA opening and make sure that your serial port settings are current.

  • Visa erroneous zero byte in reading series

    Hi all

    Trying to debug a problem that I have with a Labview2011 VI and the USB-485/2 device.

    The installer has been simplified to get the wire from port 1 to port 2 in a 2wire-auto configuration. As described here:
    http://digital.NI.com/public.nsf/allkb/D5CC369B3E3E6F0586256D1600563245

    and here:
    https://decibel.NI.com/content/docs/doc-4169

    Port 1 sends a message of 8 bytes by using visa / writing then begins a visa-reading of 8 bytes. (timed content in a loop of 10 Hz)

    Port 2 is configured in a single loop using the wait for event visa byte, then visa-read 8 bytes, connected directly to visa / entry.

    For 1 Port data transmitted, the data received and read visa error code are recorded on the disc.

    The success of installation passes are receives data without loss... so the back loop work...

    However! Occasionally, another zero byte is read from visa-reading the port1.

    Almost all the code read visa back operations "1073676294" port 1 (the number of bytes transferred is equal to the number of entries requested. More data may be available) which is very good. Even if sometimes the error code '0' is back (operation completed successfully). This "0" code seems to be associated with the extra byte in the receiver.

    This causes a problem because it throws the mismatch scheduled application command/response pairs.

    I tried many tariffs buad, visa-read timeouts and transmit frequencies, the problem remains. Adding a visa-flush buffer prevents the error from reproducing, but won't stop him intervened and upsetting the logic of command/response.

    Any ideas would be appreciated.

    If you send real binary data (which it looks like you are), you should have the off stop character.  Remember that reading VISA will be completed when the FIRST of the following: the desired number of characters is read, the character of endpoint found, there is a timeout.  So if there's a 0xA in your data, which will stop the read before that you would like it.

  • 71622 error code when you use read data from the encoder vi

    Hi, im using PXI7340 Motion control and I get the error-71622 code that is not defined if I try to search in the help explain error section. I get this error when I try to use reading encoder vi data. I would like to get the index data and I can not find that an another vi Traoré did this. Any suggestions

    Again, could you please show me how you have implemented that?

    Let's take a step back. What exactly are you trying to accomplish? You want to find the index position? Can find reference should do the job for you.

  • Writing series visa delays

    Hello

    I use the LabVIEW Vi series to send commands to a DUT. I use the a Sparkfun USB to Serial converter cable for the interface, by connecting directly to the TX and RX pins of my DUT (an MCU). I am able to send and receive data without any problem or data corruption, it is really slow.

    There are up to a 5 second delay between writing the message get written in series VI write and actually see me this post to the MCU. I have a scope attached to the TX/RX signals to see when this happens. Fortunately I do only 2 entries of 4 bytes, so there is only an additional 10 seconds of delay, but with it, wrapped in a teststand sequence, delays will be added through hundreds of iterations.

    Anyone seen this before? Any ideas what I might be able to try?

    Thank you.
    Mark

    Well, the post was premature. A co-worker pointed out my mistake.

    I use 2 queues, one for reading, one for writing on the port series. The problem is that I use the VISA Read.vi timeout for reading queue loop and the Dequeue Element.vi for writing loop. By chance, I had configured the read timeout set to 10 s. Given that the serial port is the same VISA session, these are not truly independent of queue loops. the function Read series was blocking the write function of occurring for at least 10 seconds. Once playback Vi has expired, the writing was able to sneak in and get the message written.to the port.

    -Mark

  • Minimum time to wait in the loop of reading series

    Hello

    I would like to ask if it is possible to read data from a serial port loop each 17ms? If so, how to read Serial and it management loop set.

    I'm the Arduino Uno card reading that can run on up to 115200 baud rate of kbs. Arduino sends each integral 17ms (0-3). Now, I can't read them separately (each part one by one, I get numers as 123, 231, 12, instead of 1, 2, 3 etc.), but this may be due to other stuff I do in the loop. I elaborate more on my VI later - now I would like to know if it is possible using LV 2011 + VISA read serial number of each 17ms. What bothers me the most is that I saw many times on this forum that people suggest of don't not to go below 10ms timeout in the Serial reading loop (same base series Read and Write provided in examples of or). If ms waiting loop of x, where x is 17ms divider?

    You hear that you read whole and not full? Send you one byte or more? If it is a single byte, then just define it as the number of read. Do not put in any function wait and do not use the VISA to the Serial Port bytes. Playback VISA will be automatically terminated when one reads a single byte. You send a terminator after the number? Waiting in the example has nothing to do with a constant data stream reading and with a terminator is completely useless.

  • RS232 read series with COM1

    Hello.  I am hoping there is a simple answer to a problem I have.

    I had previously been using the 30 day trial of LabView to begin to create an application for reading data from an output to RS232 instrument via the serial port on my laptop.  I have this based on the base series reading and writing example and it worked great.

    Now, I have purchased the software Labview base, had downloaded the software and activated.  When I open the VI that worked before, he now won't read data from the instruments. -There is nothing appears in the window of indicator text 'string of reading. '

    I checked that the instrument and the connection is fine by the acquisition of data in HyperTerminal - I use the same settings for data transfer in LabVIEW.

    The instrument automatically prints / sends data at specified intervals (I got this game to 1 sec).  Some commands must be written to the instrument.

    I wonder if there is something with the LabView installation that requires the computer to configure ports?  The resource name of Visa in the VISA run configuration is "COM1", as it had been previously.  LabVIEW should be advised as to which means "COM1"?  No, I had to do before, so I doubt little.

    I have attached the VI.  Note that it is rather messy in the deal for the reading series function structure, because I have been playing with how to manage the data.

    Thanks for any advice.

    Indeed I do a repair from cd and be sure that also max is installed correctly.

    Good luck.

  • Read the VISA of RS - 232 on cRIO-9012

    Hi all

    I'm reading a GPS signal via port RS-232 on a cRIO-9012. I enclose the simplified code.

    The same code works when I run it on my PC (after changing the port) and transmit the GPS signal via a USB port using a series converter / USB. However, when I plug it into the port RS-232 on the cRIO and run it on my cRIO, the buffer seems to be in the wrong format, i.e. some information is read, but it shows some weired characters. Does anyone have an idea on how to fix this?

    Thank you

    It seemed that it was a hardware problem. The cRIO-9012 was probably too old/weak/slow to handle communications. Passed to 9022 and it works!

  • Is there a file size limit when using read the spreadsheet file?

    I'm reading in a large file, approximately 52 MB, 525600 lines with 27 fileds in each line using "Read SpreadsheetFile.vi". I then explore table 2D-999, which represents bad/no data in this area and the total number of fields with-999 in there. All works on 3 months ' worth of data. The program is giving me a memory error output and stopping in case reading takes place on the file of the year a large. So my question is that the reading of the spreadsheet file has size limitations? Is there a better way to do it? Thanks in advance for the help.

    ssmith


  • Data recovery using Microsoft Money Standard bought in New Zealand

    I use Microsoft Money Standard bought in New Zealand.

    As a result of a malfunction of the hard drive, I installed a new and recovered all my data files.
    I reinstalled Microsoft Money, but Money files will not open.
    A message informs you that the file cannot be located or is read-only, I don't have the permission to open or it is write protected. None of this is true then I suspect it has something to do with Microsoft withdraws this product.
    I can see there are no version sunset for my version, so how I can I recover my data for use in Microsoft Money or importing to another product I need of course to buy at one time?

    Yay! Success.

    It's hotfix QFE, whatever they are, that became a problem when Microsoft has ceased to produce and support money.
    Users of the United States had a "Sunset Version" to allow them to continue to use the program, but international users have been left in the cold.
    Finally, Microsoft provided a download to help users with the UK or International English. Why they did not consider their international users from the very beginning, God alone knows that!
    For the Version of Money 2005 - published July 28, 2011
    For users of the International English Version of Money 2005 - published July 29, 2011
    I have downloaded and run the NASB and my Money file open immediately. Great!
    Now, I just need to look at what it takes to pass when I decide it is time to move from Microsoft Money.
  • USB (series VISA) during reset problem

    Hello

    Immediately to the problem that I'm using communications series in labview with microcntroller. Anyway, whenever I connect the USB cable then Labview detects the port and make the communication. But in the average process if I press delivery to ZERO (lost USB) button on the microcontroller then block visa series get the error and program continues to generate the final error with the code. By the way, this happens when ever I want to confirm the user that USB is disconnected or RESET is pressed. Also if you reconnect the USB at the back, then the program should work as usual. Even I tried with error display VI in the programming menu, but I hope it's wrong way. Finally, I would like to correct two things 1) if RESET is pressed to halfway, then it must show a perceptible message from the user. (2) the USb disconnected by person unknown so what can I do in this situation.

    I'm using LABVIEW 2009. Please help me.

    You can try something similar to the following. However, I would recommend against it because I found that LabVIEW generated errors are very useful for troubleshooting. Message/code often your own mistakes to mask the problems that will be easy to understand if you have the LabVIEW error.

  • Data dictionary Synchonizing (reading) - database

    Hello

    I work for a while with the Oracle Data Modeler using the JDBC tab for the database connection. The database is a SQL Anywhere and the connection details like: jdbc:sybase:Tds:localhost:2638? ServiceName = Hades & CHARSET = utf8.

    Unfortunately, I have still no clear idea in my mind about the relationship of the data dictionary and the database connected (via JDBC adapter).

    -What time is read the database? If it is read in the dictionary? I guess that the information of connected database are read in the ODM at startup?

    -If a change occurs in the database (for example, a column added, a table, or a foreign key), can I manually update the ODM dictionary?

    -In connection details, I can change the local host with an IP address and press the Test button with success as a result. But I'm not sure, the data dictionary now 'filled' with the database newly connected without rebooting of the MDGS?


    Documentation of any clarification or pointing to on the concept of how and when the data dictionary and database are synchronized would be very welcome.

    Best regards

    Robert

    Hi Robert,.

    Just to clarify that "Data dictionary" refers to the definitions of the database metadata.  File > import > data dictionary is important these definitions in Data Modeler.

    (There is no separate "data dictionary" in data maker.)

    The blue button on the right (the data dictionary synchronize with model) is similar in effect to the opening of your model and then by doing a file > import > data dictionary (and by setting the option to exchange the target model in step 2 of the Wizard).

    Both shows a comparison between the current relational model and the current definitions in the database.

    David

  • Inserting data by using the query

    Hello

    In a book, I read the Sub statement:

    Inserting data by using the query (DML)

    If the user wants to transfer data from a table to another table in the insert statement are used independently of data that can be processed or not processed form.

    Can someone clarify what is the significance of this (processed or unprocessed form).


    Thank you.

    Why don't you ask the author of the book.

    How can we know what the author means when you take a quote out of context and don't provide any reference so that we can see exactly what is shown to you.

    I can only imagine that they are referring to data that are queried directly, "like what", another table, or who was interrogated and manipulated before be inserted.

Maybe you are looking for