Data series through RS232

Mr President.

I can with PIC16f877A PC RS232 interface using Labview. ? If Yes

Please help me

Yours Sincerely,

VISA Write.  Create a string constant for the data to write.  Right click and set to hexadecimal display.  Equip 00 for all 0.  Set FF to all the 1.

Tags: NI Software

Similar Questions

  • DAQ USB 6363 - generate digital data series through the single DIO line

    Hello

    I'm new with Labview, currently, I bought NI DAQ USB 6363 for generating control signals and signals analog accquire. I would like to send digital data series through one of the digital IOs with throughput of 30 kbps. Please see the attachment for the data frame. Could someone comment the feasibility of this? Y at - it codes for the example that I can refer to? Most of the examples I've looked at so far deals to generate several line instead of 1 single line. How can I achieve this?

    Thank you

    Diem

    Hey diem.

    After looking on your code, I understand what you were trying to do. Here's how I'd do. Usually we do not write code to clients, but you peaked my curiosity of! I hope this helps. Good luck!

    ~ kgarrett

  • How to display data series changed after each step in labview gui, that is to say after the match point fantasy, after substring etc.

    Hi, I have a labview GUI that receives data serially through VISA and basically chops to the strings and realize games until I have values that I'm looking for. I have then convert Ascii string in decimal and feed the new values to a waveform. However, I discovered that some of the output values are incorrect. I checked this by pulling data through Realterm.

    Is it possible that I can see the modified data after each step in the user interface so that I can find where the problem is? I created indicators after each step, but they do not display data, I guess that its because the data is moving too quickly.

    I am very new to labview and struggled through every bit of this GUI, as none of you regular posters know. If you can suggest a solution, please know that I will probably ask more fundamental questions in order to implement your solution.

    I enclose my GUI with a screenshot of the same data through the Realterm. Basically any where you see xxxx TR TR or W xxxxW, know that it is the data between them is to say xxxx that corresponds to the data of interest. Everything else is ignored.

    I suspect that the problem lies in the string to decimal conversion and where 3 digit values increase to 4-digit values. That is, all values of less than 850 are correct but it is the maximum value is reached. My values are expected to reach 2500. Any help would be greatly appreciated.

    You have other debugging tools available to you.  You can use the run culminating to slow down the code and show you the data flowing from each wire.

    You can create a Subvi, which takes the data of each wire and written to a log file if you can review it later.

    You give not the screenshots to your message.

  • missing data series for port operation in

    Hello.

    My unit is transfer 51 asynchronous data bytes in frames (each image to 80ms) on six different channels (ch1, ch2, ch3, ch4 rate 19200 baud and other two ch5, ch6 baud rate 115200) and these data series of six diff is received by my system and it should be checked for any error byte... (as I'm new to labview I programmed a long vi) in which use visa read and process the received data. But now, my real problem starts... until some time that my system will be receive data without no loss but aftr some time (say 15 minutes approximately) data loss starts from the track being baud rate of 115 200 and later other channels begin to do the same... But my system is supposed to run for 4hours for a trial of endurance of a plane... If the data loss is very less in number its OK but 3 of 4 frames then starts missing... it's like losing 75% of data... I enclose a wink of my code... It's just for a single port (in a while loop) I took... Imagine I; did the same thing to rest the port in a single while loop... Please guide me where ive that has gone wrong, or is this something to with time delay... pls help me

    the thing is always my application system needs will grow more, so I have to rectify this himself in the beginning


  • convert data series to a string column

    Hello

    I'm trying to convert a string of data series "110111001001110011011110011..." in a string of column:

    1

    1

    0

    1

    1

    1

    ...

    Any help will be greatly appreciated.

    Thank you

    hiNi.

    Something like that?

  • HOW TO READ DATA SERIES WITH SYNCHRONIZATION

    I have a question about my application for the acquisition of data in series. In my application, I use visa read to acquire data series sent by an inertial measurement unit. When I first put the sensor, it sends data in the following one time format:

    1:0 x 8011 header followed 1 data word for Adler, 1 data word (each 16-bit word data).

    and the sensor then starts sending the data in the following format:

    2:0x7FFF header followed 1 data word for checksum, 9 data word (each 16-bit word data).

    (Note: checksum is defined as a 2s - complement of the sum of 16 bits of the rest of the entire message)

    In my application, to simplify the problem, I use a wait function to ensure that the initial data header 1 tag is sent. Then I start reading using VISA Read 20 bytes (header 2 more words of associated data are 20 bytes), as I'm mainly interested in the data header 2 tag words.

    However, when I do this, the data that I get do not begin by 7FFF character and, accordingly, my 20-byte data cannot be parsed correctly. My question is how can I do the "VISA read" block read the serial port when data are preceded by '7FFF '.  Once I have solve this part, my strategy will be assembled data read 20 bytes (including the header of 4 bytes) and analyzed accordingly.

    Another question, I wonder if you can tell me how to use the given checksum it is defined as "a s 2 - complement of the sum of 16 bits of the rest of the entire message". Note the data that contains the header 1 tag is 1 post.

    I would appreciate if you have responded to my request.

    Thank you!

    Serdar


  • Hello, I got a serial number for adobe package I installed 3/4 years ago, but I don't know where I put the serial number and now I need it! Is anyway to find the series through the application code? Thank you!

    Hello, I got a serial number for adobe package I installed 3/4 years ago, but I don't know where I put the serial number and now I need it! Is anyway to find the series through the application code? Thank you!

    If it's a Windows machine, and then try running Belarc Advisor

    http://www.Belarc.com/free_download.html

    For a Mac, you can try:

    https://Mac-product-key-Finder.com/

    Find the serial number of your Adobe product quickly

  • Data of a RS232 device capture

    How to capture data from a RS232 device to my APEX application. Specifically, I use a bar code scanner and I need to know how to get barcode data in an item (say P12_barcode) in my application. I tried the keyboard emulation and the problem is that I have to set the input focus whenever I need to retrieve the barcode of an item, so I have to spend in RS232 mode, but how do I get these barcode data now?

    Help, please...

    It seems to me that the focus setting was a two-step process

    The attributes of the page,
    on "display attributes", select "Cursor" "do not focus cursor.
    on the "Body HTML attribute" enter something like: onload = "first_field ('Px_Barcode'); »

    When it comes to the scanner, you may need to consult the documentation. For us, the manual had a barcode in it that when parsing, caused to be defined to include a "enter" after each scan.

    BTW, another thing I found useful by doing this had the value of the selected field on the load so that everything that is scanned replaces what is in the field. For it you go to the properties for the element, for example Px_Barcode and on the tab "Element", in the 'Attributes of the HTML Form element' field, enter: onFocus = "this.select () '"

    I'm happy to be of assistance. I've been a developer APEX a couple of years now. And I know that a few times I met a post saved me a lot of "reinventing the wheel". I hope that my learning curve continues to level them to return the favor to the community of APEX. Of course, the real challenge is still of time :-)

  • accelerate the backup of data received through series

    Hello

    I hope you can give me some advice. So far, I have not found a solution.

    I have a sensor connected by USB-serial converter to the computer (COM 2). After the beginning of the measure, the sensor sends continuously data as a string. The sensor is able to operate at different speeds and it is controlled through strings sent to the device.

    Now, I have programmed a small piece of code to read and evaluate the data from the sensor. There is no problem while looking at live data in several locations. But as soon as I try to save the data, I have speed issues. The loop is not fast enough to receive the data, because it is provided by the sensor. Temporarily remove the plots and so on, don't help not, therefore the problem is data backup. As far as I know, I should use the tables that I did and I don't think that editing bays should be the bottleneck, because they should be able to manage data in general much faster.

    In the Hyperterminal with windows, the unit works fine.

    I use VISA series with a timeout of 2 s and a buffer of 128. Baud rate is set to 460800.
    The real VISA read command is set to read 50 bytes max or stop a tank of termination (line break).
    After initialization, and sending the command start for the sensor, the device starts to send its data...
    The different speeds are:
    1 - 4 strings per second
    2 - 10 per second
    3 - 100 per second
    4 - 500 per second

    Each line gets cut, evaluated and plotted. Each value is also stored in a table (which could be saved after the program stops).

    In the photo, I deleted several commands sent to the probe, because they are not relevant and it doesn't matter (of failure) if I remove them in the program or not. It goes the same for plots. After setting the device at the higher speed, the program fails, because there is more data than labview bed. (I have already said, that without the tables it works very well, I do not have it?).

    So, what can I do? I'm doing something completely stupid? Is there a faster way to collect data with labview? I mean, 500 HZ, which must be nothing.

    Thanks for your help.

    Kind regards

    HD

    PS I'm continues LabVIEW 8.6

    Computer: Intel Core2 Duo E8500 3.16 GHz with 3 GB of RAM

    SW: Windows XP SP3

    You use insert into table with each iteration and forcing LabVIEW to keep reallocation memory for the berries. It is not very effective. Instead, I advise you to use the architecture of producer/consumer and transmit data back to the consumer loop where you write the data. Shift registers and who would skip all the functions to insert it in the table. You also use local variables and property nodes. Neither one of those who are very fast either. Can't tell from the picture why those are used. Also, consider using a structure of the event for these Booleans wired for the structures of the case. Do you really need those who questioned all the time and run the code with each iteration, or do you just need them to run once when the Boolean value changes?

  • What is the best way to read data series high speed?

    My goal is to read 14 bytes of binary data of an instrument on the serial RS232 (460800 baud) to 2000 Hz. I didn't get a card series high speed again so I am currently using the standard serial port (115200 baud) and reading at 400 Hz I have configure the port series, empty the buffer, and then enter a while loop to read incoming data. I have a visa 14 bytes read by interation seconds 0.0025 (400 Hz). However it seems that the sensor is spewing data faster that labview can read because the bytes are accumilating in the port. After some time the buffer fills and the program fails.

    Is there a better way to do it?

    Would it not be better to read the larger quantities of data less often, for example as 1400 bytes every 0.25 seconds?

    Thank you

    Hello

    I think it would be good to read several points in a loop, and keep the loop less than 1000 Hz.  I found in the past, have something to run faster than about 10ms tends to fall down when windows loses interest in the process.  So yes, choose the slower you can get away with reading samples - for example to read every 10ms and read 20 samples every time. You should be able to configure your serial port in order to buffer the samples that I guess.

    Also and the issue of windows - if you use a loop "timed" instead of a while loop, so you can force it to an integer value including the ms.  You can also assign a dedicated processor and set the priority to 100, which means that it is less likely to elapse and decide to scan your hard drive for viruses or consult your account e-mail or what he does when he's bored with your program.  Also it "' tells you if the loop has taken longer that planned to run - you can use this to help iron out bugs etc. - report and/or to the user if you missed a few samples.

    http://zone.NI.com/reference/en-XX/help/371361H-01/Glang/timed_loop/

    JP

  • Unknown process, sending data series to my instruments

    I have a couple of test stations that I develop software to test at the moment.  When I'm actually under them, there is no problem with the serial communication.

    However, if I let any of test stations on without the software running for an extended period of time, I'll check back often to find that one of my series devices (a 2510-AT Keithley) locked.  For awhile, I thought it was defective devices (strange that both had the same problem), until I found that if I left the serial cable unplugged it will break lock.

    I borrowed a tap from a colleague data (the version 9 pins on this) and attached a laptop for the link over the weekend, using PuTTY to monitor communications.  I'd keep a log of what it has, and I enclose below.  The first 3 lines have been sending me * IDN? queries to verify that the data tap and others were working.  I edited on the serial number, just in case, but the rest is the RAW file.  Does anyone have an idea, which could send the rest of the data?  It doesn't seem to make much sense, but there are lots of channels repeated in there, is probably not the right line random noise or something.  The two stations were using the built-in COM1 port of the PC.

    One of test stations I have an Agilent E3646A power connected to the station with a USB-to-serial adapter and a null modem cable.  Sometimes she page and throw up a ton of errors, which are all 'error 511', which the manual says is a framing error RS232.  I put the data on this line valve and sent a few * IDN?  orders with reset and commands activate the remote to check that it worked and concluded that some other process was sending * IDN? queries as well, they just don't have not been correctly formatted (they seem to not properly finish more have some end ASCII gibberish) for the device, so it threw errors.  I've also attached the log of this Putty session.

    I tried to use the technique in this article to find which process accessed the port, but it seems that no matter what either method uses it don't leave it open long enough for me to find.

    I am using Windows 7 64 bit at the time of these PCs, so that means Portmon doesn't work, and I can't find another utility that works in the same way.  Does anyone know of one?

    Anyone know if there is a process OR who could send these signals?  There are only a few of them running in the background.  I have 4 other devices on the first station and 6 on the second station with their own drivers as well, so I can't exclude the software of others.

    I really really to want to have to write the manuals of equipment for these stations and include phrases such as "power Cycle the device each morning to reset" or "Disconnect the serial cable when done for the night" or "ignore the power of Agilent errors."

    I can guess what happens. at least with the Agilient.

    you have failed to use an external hub with its own power supply and you neglected to put a serious surge protection on main power from the PC.  Pretty undesirable power pri is out to actually make windows think that the USB - serial adapter is pluged back in and some device (Agilient IO libraries?) Manager did a scan for USB TMC devices when the connection is "restored".

    Simillarly the PC power supply affects the COM port.  Kiethleys are known to have reported a clear feature "DCL" when they receive malformed commands of the noise.

    NEITHER track will eliminate any VISA request and confirm the electrical noise

    Recommendations:

    • Get a surge / UPS on this machine to guard against junk food to the line managers from air and other large expenses cleanroom.
    • Get bundles of cables with ferrites on them for the serial data lines.

    Alternate:

    • Get a membership to a hair club - you'll get a lot of hair out
  • the data series and daq synchronization

    Hello

    I am trying to obtain simultaneous data to a serial port and a Board of Directors NI USB-6211.

    I want to write the data at the same time and every second.

    At first the I couldn t get the data as I wanted because there were delays in the acquisition, but then I've separated series both daq in two loops and it has been resolved. However now I can´t are able to simultaneously write data in the file.

    Any ideas?

    Thank you.

    Would it not possible to show your code?

    You can synchronize your curls with a "wait until the next ms tick with a value of 1000.  This would cause the two loops to run second never finished when at the same time.

    It seems that you have now a problem of writing data in a file at the same time.  You could put file writing in a third loop and transfer your data from the other two through lines of waiting or functional globals and then write to the file when the two pieces of data are ready.

  • Manipulation of data series

    I don't know how to handle the serial data I receive from a touch panel.

    What I want to do is view the two sets of coordinates, which are made up of two 4-digit.

    What I am struggling with, is the return of cart/line feed (Cr/Lf).

    For example, I get,

    TP TP CrLf = hurry touchscreen

    CrLf 0100 0100 = first game X coordinates where these values can be anything from 0000 to 4,000 and as wise as all coordinates

    0200 0200 first = CrLf series Y coordinates

    TR CrLf TR = touchscreen released

    CrLf 0100 0100 = last set of coordinates X

    0200 0200 CrLf = last set of coordinates Y

    If you drag the stylus on the touch screen, then I may receive many TP CrLf more details before final output all touchscreen.

    If I had all the CrLf but just a CrLf "after TP nnnn nnnn it wouldn't be problem.

    I had a discount using shift registers, but I'm not sure of the best way to go.

    Some advice would be most appreciated.

    Something like that?

  • (table of filling with data series) want table con datos serial

    Hola todos

    Tengo el siguiente problema put los datos back sensores fijado por el deseo series in a table, cada envio una palabra clave recibo 10 siguiente manera, ahora 0224,1023 datos are separo el chain y los convierto en numericos. El problema radica in than recibo los datos y los coloco en el table pero cuando cuando recibo otros 10 mas put in el table continuando siguiente linea desde los datos, lo what I need are my mantenga el table con los datos anteriores y cuando otros 10 reciba to borre el table y nuevo in the linea comienze 0

    in the first image is ve como's van while el pero Necesito UN Québec table me quédé como in the segunda vez as reciba los nuevos datos cada imagen

    the thank su ayuda is not to do

    Hello everyone

    I have the following problem will place two data received by sensors series in a table, each sending a key word to receive 10 facts, 0224.1023 is now following, I separate the string and turn them into digital. the problem is that I recover data and place it in the table but when when I receive another 10 data but their place in pursuit of the next line, what I need is to keep my table with previous data and when you get the other 10, the table and repeat is disabled on line 0

    in the first picture looks like they fill the table, but I need to keep me and the second image whenever you receive new data

    Hola aleramir

    You cuento that no me sirvio por ese lado pero prevalence hacerlo the siguiente forma y works exelente

    despues voy activar el boton don't con el programa no manual, igual manera you thank you answer

  • Read data series and detect the break in series at the same time

    I need to communicate with a serial device that sends messages back, but also sends a break, break, break, break series combo that I need to listen to. I've never worked with before series breaks but the only VI I found which seems to detect pending VISA on event VI with the series Break parameter. I'm not sure that understand how I could detect a break in the series, but also to be reading and writing messages at the same time in the meantime. Isn't this possible?

    If you use multiple loops, I think you can do.  You use 1 loop to check to see if there is data and 1 loop looking for breaks series.  Then use queues, authors of notifications or events to anyone who needs to know what you have experienced.

Maybe you are looking for