communication serial port to read from an Analog Devices inertail sensor

Hi, I have an ADIS16350 of inertial sensor by Analog Devices. My motive is to read continuous data of the sensor. Firmware sensor has specific commands as follows:

Wil returns OK

RA read a time of sensor

It's going to read the sensor continuously

When I try this in hyperterminal, everything works fine.

However, I tried in the same method labview. However when I send no matter what this command the façade shows an error message. That means if I send 'at' command, instead of return 'OK' I get "ERROR: 61-74-30-43-error" in my opinion, this is a mistake sent by the firmware of the sensor. However just to test the system, I tried to send the command "continuous acquisition" of my program, LABVIEW, LabVIEW close, open Hyperterminal. To see the data is received at the Hyperterminal.

Did someone come acroos a situation? Your comments are greatly appreciated.

Thank you!

Stéphane

Check the stop character that you send with your order.  It is \r return (hex 0D dec 13) of the distribution or the new line/newline (hex 0A dec 10) \n?

Tags: NI Software

Similar Questions

  • Communication Serial Port with PIC

    Dear all.

    I am interfacing the labVIEW to an eeprom controller PIC, where I need to input data user to store in a location memory EEPROM, according to my condition that I've done programming the pic and it works very well with hyperterminal, at the same time I need to do with a labVIEW using communication serial port VISA , but when I did I receive a warning in 1073676294 that cannot be ignored, but I am not able to write user data to EEPROM by labview but I can do it to hyperterminal, please someone help me on this.

    Charron a G

    I was interfacing to pictures for a while, and the example that you have to build from was the same that I used. First, move the initialization OF THE outside of the loop. No need to re-initialization of the COMM PORT every 750ms.  Inside the code example, there is an expectation of 500ms between WRITING and READING (it is hardcoded for now, you brought it out on the ICON).  So time total is 750ms loop over the 500ms wait (more traffic comms), FYI.

    You do not use a return of ramasseherbe (13) or a NEWLINE (10) as a dismissal. You use a SO (14). Unless you're on a triggering a 14 ASCII in the PIC, the PIC will never see the "end of the chain of command" to analyze out. I have attached a good routine of init (IMO) I re - use on all my PIC projects, take a look.

    I use compilers Mikroelectronica MikroCPRO and displayed a complete interface of the UART (triggers on a CR (13)) on their site LIBSTOCK if you want to take a look at the side of the PHOTO of my work.

    http://www.libstock.com/projects/view/250/RS232-interrupt-driven-command-based-interface

    Steve

  • Communication serial port IRP_MJ_READ

    Hello, I would ask you serial port communication. I am currently apply for communication with my engine not to not (Microcon), but it does not work. If I try to connect with the original software, my serial port monitor gives me values

    IRP_MJ_WRITE when I write some values and

    IRP_MJ_READ when I try to read from the serial port

    But when I'm using LabView, I can only send IRP_MJ_WRITE function by using the component to write VISA (if this one works well), but when I use VISA component read my serial port monitor gives me only IRP_DEVICE_CONTROL. Do you have any sugestion where can be a problem? I don't know how to get this function IRP_MJ_READ using LabView VISA component.

    You watch the using PortMon software? The only thing I see here is that the order that you send, there could be a space that you could have made while typing,

    or

    You're still motor control software running step by step when running the labview? In this case, there will be conflict.

    When you use software original stepper motor and when you send the command wirte down the hexadecimal value (see portmon or any other monitoring software) and try to send back the same hex values using labview. Sending a command, sending of hex are the same but just give it a try,.

    Use bytes depending on the port before VISA to read all available data.

    Search for Microcon network drivers driver Instrument in the Web site OR if you want a quick and simple solution.

  • Communication serial port problems

    Hello.  I'm trying to control a pressure controller MKS Instruments 651 via RS - 232 c.  Right now, I just try to establish a basic communication with the device on the serial port.  I can connect to the device with hyperterminal of windows using the following parameters:

    Bits per second: 9600

    Data bits: 8

    Parity: None

    Stop bits: 1

    Flow control: no

    Once I log in, I'm in file--> properties, settings tab and click the button settings ASCII.  I need to check the following boxes (not ticked by default) for communication any occurs:

    Send line ends with line breaks

    The echo locally typed characters

    Add line breaks to incoming line ends

    Force incoming data to 7-bit ASCII

    Once I got it, I can communicate with my device via hyperterminal.  What I want to do now is to use LabVIEW to control the unit, so I need to be able to send and receive data through the connection RS-232 using LabVIEW.  I have been using the basic series write and read vi, but I get no response from my camera.  Looking at the block diagram for the basic reading/writing, I saw that allow termination Char has been wired to false, so I changed to a control and set it to true.  I also changed the termination to a control tank and assign 0xD for the CR.  I can't always get a response from the device.

    I guess I'm still not put in all for the serial port configuration correctly.  Can anyone give me some suggestions on what else to change to match my hyperterminal settings?  Thank you!


  • Having problem of PCI and PCI communication serial port

    Hello guys,.

    I have a problem with my serial port PCI and PCI communication, I use Windows 7 64 bit found no solution please help about this and I am very happy to thank

    B.Regards,

    Hussain SF

    Hi Hussain SF,

    Thanks for posting your query on the Microsoft Community.

    I imagine the inconvenience that you are experiencing and will certainly help you in the right direction to solve the problem. However, I would be grateful if you could answer a few questions to refine the question in order to provide you with better assistance.

    1. You get no matter what error code/message when connecting to the serial port PCI?
    2. What is the brand and model of the computer/motherboard?
    3. What card has been inserted in the PCI slot?

    PCI stands for Peripheral Component Interconnect. It's an industry standard bus to connect devices to a computer.

    A serial port is a serial communication physical through transfers of information inside or outside a bit at a time. The term "serial port" usually identifies hardware more or less conforms to the RS-232 standard, designed to interface with a modem or a similar communication device. The serial port used to be widely used to connect to a variety of devices external and is essentially a two-way communication port. There are still devices using a serial port connection. These are often marked as RS232 and would include devices such as TELEVISION receiver cable boxes.

    The PCI of Simple Communications controller is a generic label given by Windows for PCI cards installed in a PC when the drivers for the device are not installed.

    You probably received this error because you have not installed the driver for your PCI device.

    If your computer came with a motherboard driver disc, put the CD in and install the chipset drivers from Device Manager browse the CD. This would update the drivers for those devices.

    Steps to follow:

    a. right click on the entry in the Device Manager and select Properties.

    b. in the driver tab updated some drivers.

    c. Select Browse my computer for driver software.

    d. click on browse and look for DVD player option.

    e. follow the instructions on the screen and restart the computer after installing the drivers.

    If you don't have the motherboard drivers CD then please download and install the drivers for the chipset of the manufacturer's Web site and see if it helps.

    Get back to us with all the information and results of proposed suggestion. We will be happy to help you.

    Kind regards

  • communication serial port works to the max, but not in labview

    Hello

    I am trying to connect a regulator to oxygen flow (flow Bronkhorst EL) to a laptop through a USB using MAX and Labview series port adapter. After the MAX aperture, I see my instrument on port COM5 and need to change the baud rate to 9600 to 38400. After this I querry the command: 06030101217D00\r\n, I can turn the mass flow at maximum power regulator (looks a little weird order because of the syntax of the instrument, but it works very well). If I write a vi to do the same and send the same string through visa series, I get no results, it seems that the command is not send to the device. I tried to change all settings for the serial port, nothing seems to work.

    I've attached an example vi here, any suggestions?

    Hello

    just a simple misunderstanding, happy that you added the code.

    In MAX \r\n will be always interpreted as send a cr and line break.

    In LabVIEW only when you select \codes view by right-clicking on the channel.

    In your situation, it now sends a-a r another- and a n

  • Communication Serial Port without a VISA

    Is it possible to connect to the serial port without a VISA?

    The thing is that the VISA is required to be installed on the deployed machine. It is not for my client.

    Thanks for any help.

    You can find driver series placed in Non-VISA:

    http://www.MHST.de/downloads.htm

    Benefits:

    • you need not install DURATION VISA on a deployed machine. Place a dll (dll is included) in the system folder - that's enough.
    • There are several additional features that has no VISA
    • works reliably

    Disadvantages:

    • Works for serial port only
    • uses the WinAPI functions
  • Serial port empty read buffer

    Hello everyone. I'm currently programming a vi that takes an input of a device in series string and parses this string. The only question that I have is that (probably) between readings, when the buffer is empty, the vi will be parse this buffer empty and returns the error message because the empty string now is not consistent with the standard chain which is expected. How can I go about fixing, assuming that I have correctly interpreted the source of the error?

    Edit: I wanted to add that snub research tips that suggest to set Visa following control to synchronous. This does not seem to have made a difference.

    Edit 2: Attached the vi as well. Here's what's happening. The device currently playing is an infrared thermometer that has an operational range of 550-3000. When the temperature is less than 550, the output is 'HCC - U -'. This output ends with a carriage return and line feed. When the tempartue is greater than 550, the output is "HUCxxxx" where the x's represent numbers. This string is the reading and analysis. If the Supreme Constitutional Court is found, he's looking for then "- U -'. If found, it appears. Otherwise, "ERROR" is displayed. In the case where HUC, 4 characters after it are displayed and represented graphically.

    To observe what is happening, I have a text box to display the contents of the read buffer, then another to view the parsed string. There is a final text box (output channel 2) which indicates the temperature should register a numeric value. I also threw in a led that lights when the string analysis properly and turns off if the "ERROR" is displayed.

    Here's what happens: when the temperature is below 550, I first see HCC - U - in the view of the read buffer -, U-on the screen crawled and my light. Then, probably the buffer is empty because I see the empty screen, the analysis screen displays ERROR and the led turns off.


  • Questions about serial port read and write at the same time

    Hi I create a user interface for the communication serial port, where there are essentially 2 front panels, where the user enters commands one and the other where the prints of UART is delivered. I thought initially using a state machine but the reading and writing may be independent sometimes and so I can't rely on States. I searched a bit on the forum and he left me even more confused. Help, please.

    (1) in a thread that sessions visa duplicated has been used for writing and reading at the same time, is it recommendable? How will this affect performance?

    (2) essentially when the vi is reading data are it must constantly view as well, however, someone said that it takes too much memory to use shift registers, so how do I go about this? If using a State in queue after the loop of reading it affects the playback loop and be sequential?

    In addition anyway is to move the cursor to the latest data from the indicator

    (3) for the control of the user input, assumes that the user has entered an order in the control and press ENTER, then writing visa is launched, but if it comes in another string and press enter then write must be called again... is - it possible? will detect the previous commands in the control of compensation?

    (4) according to my understand the expectation for the event do not monopolize resources and writing can go in parallel, am I right?

    Thank you. I have attached a very basic vi which took me to the point, but I want to make it more robust. Please help especially in the part of the user interface.

    su_a,

    (1) you can have only one session to a port. Several UART can handle full duplex so performance is not affected.  At flow rates of high data and large amounts of data, buffering and latencies of BONE can become a problem.

    (2) who told you that shift registers using too much memory? Shift registers are usually the best way to transfer data from one iteration to another. String concatenation inside a loop (registry to offset or not) causes the chain to develop and may require re-allocation of memory.  Your VI never clears the string so its cold length become very large.

    Generally, you do not have an active cursor on an indicator.  If you want to always display the most recently received characters and turn on the vertical scroll bar use a property node to keep scrolls to the bottom.  This can be annoying for users if they attempt to manually move the scroll bar and find that the program continues to move it back automatically.

    (3) if the user has changed the value in the chain of command, when he hits enter the modified value event fires.  Simply strike brace does not change the value and does not trigger the event.  Not control need to be erased, but the value that he has to change.  If you want to send the same command again, have a button send a command may be a better choice.

    (4) write is a case of the event.  It is not in parallel with anything.  The structure of the event do not monopolize resources.  The other loop will run while it waits.

    The event loop will not stop when you press the STOP button. Probably it wll take two command: change events of value after JUDGMENT before any loop stops.  Replace the Timeout event (which never expires) with a STOP: value change event and a real wire of this judgment to the Terminal endpoint.  Remove the local variable.  Make mechanical locking when released.

    Lynn

  • How to write constantly to analog output and read from analog inputs

    Hi all -

    I had a question about writing continuously to analog output reading simultaneously an analog input.

    It's my first time to post a message to the community, so please let me know if I made mistakes.

    I use Labview 2011 with a NEITHER-DAQ USB 6215.

    I'm looking to generate a waveform and write it continuously in an analog output. It is then connected to an entry on the acquisition of data, where I am trying to sample the analog signal. (I realize, there is a system of trivial, but I'm hoping to build on it once I have run).

    The task of reading from the analog input works fine, as I tested it in several other cases. I have a problem writing to the analog output.

    For this task, I tried to follow the "Gen Cont Wfm Clck Int' VI to generate the wave form and start the task. I then try to write to the output of the analog timed loop. However, it does not seem to transmit a signal and doesn't give me any errors.

    I have attached the VI but also a screenshot.

    Please let me know if anyone has any ideas. I would really appreciate the help!

    Thank you

    Peter Borgstrom

    We will review your tasks one at a time.  First of all, the task of generation/Analog output Waveform.  Generate you a waveform (I'm unsure of your VI if it is a fixed waveform or not) and send it to a defined output function to produce a waveform continuously, using N-channel and samples of N (where you set not these previously).  You should not put this inside has timed loop, as the DAQ hardware has its own clock - if you simply put it in a while loop (with a stop to break out of the loop), the loop will call the function for the first points of N, wait until all N have been taken out, then call it again to another N points (up to what you press Stop).

    Now, suppose that you have the output connected to a load voltage (say a decent resistance).  You can wire the input terminals of your A/D converter through the same load and set up a similar analog input loop, running in parallel (i.e. in its own independent of the OD loop, while loop).  You pourriez start together (with, say, a merged error since the initialization code line loops HAVE and AO become lines of error in "loops of sampling" described above), but you might want to delay loop (a little) the AI so that the OD has a chance to set the voltage before the bed.

    I hope this helps.

    BS

  • Serial Port problems - carriage return and use as an executable file

    Hello

    I developed an application to send a few simple commands on the serial port and read the corresponding answers of a device that I am in communication with.  I have been using logical Port to watch the line TX of the serial port.

    By using the Visa configure Serial Port I set the stop character property allow true and used the hexadecimal value D trying to make the termination a carriage return characters.  When I sent the order, I'll send the cmd followed by Enter.  No matter if this property is set to true or the hexadecimal value is set to D for carriage return or line break is, the serial port would always send a line break.

    Then I got crafty and the string constant under normal display to hexadecimal display.  The ONLY way I could send a carriage return was manually putting 0x0D after ordering.  So my question is, why the Visa set up the Serial Port is not working correctly, and is there a better way to send a carriage return?

    My next issue is facing the construction of executable files.  I'm using LabVIEW 8.2 and wrote this program for another employee to use on his laptop computer.  I did install runtime Labview 8.2 and led to the executable that I generated.  I did-> the executable by clicking Tools build the executable.  The problem I noticed was that the executable would open and will work perfectly, but it would not send any data the serial port.  I then ran the executable on my laptop (which contains the full version of LabVIEW 8.2) and the serial port has worked well.  I guess my question is... Are there plug-ins that must be installed to use the serial port with the Labview runtime engine?  Or y at - it a step that I failed to do?

    Thank you

    Gary Still

    Not immerse in the first issue. The Knight will probably be galloping until shortly.

    For your second question, after building the executable, you must build the installer and includes support for the VISA. VISA is required for serial communication, and it does not accept American Express.

    It may be useful

    -AK2DM

  • Lack of Z - 400 serial port

    Hello

    I have a number of product Z-400 SG637UC #ABA

    Just updated to the latest version of the BIOS, was 1.17, I think.

    Manual maintenance and each user's guide I can find a reference to the serial port header (15-pin) construction which

    My motherboard has.

    However, I can't understand how to turn it on.  The security settings of the Bios do not list the serial port, and the Advanced Settings tab lists only the floppy drive and not the serial port.

    Are the parties other than the header not installed on the motherboard on this particular product number?

    Do not connect the pins of the rider 2 header and tell the BIOS the material is there?

    PIN 12 of the 15-pin header is labeled 'detect the com' on page 168 of the Z-400 maintenance manual.  I do not think it is a standard pins for communications series name.  Is it being stretched up or down to activate the port?

    I don't particularly want to spend money for the "2nd serial" material, when the first serial port is not working.

    Thanks for any help.

    PM

    AP_M,

    The Z400 has a 2 x 8 serial port header, you have found.  To access the serial port, one needs the HP, the PA716A Option kit serial port adapter.  This kit, described here, has a small PCB attached to a PCI card and cable to the PCB of the card mother Z400.  This PCB contains the RS232 serial port transceiver integrated circuit, so it is necessary to make the serial port work - a straight through cable from the motherboard to a will of connector serial port not working, to not try.

    Option kit that pa716a can be ordered as an option Z420.  The kit is not listed for the Z400, but the Z400 (and many other HP computers) use the same kit.

    To answer your technical questions:

    -IIRC, Windows requires masking devices that are not accessible.  That's why the serial port does not appear in the device without this option installed kit Manager.

    -12 axis, as you can imagine, is a "detect the com' which tells the system that the serial port kit is installed.  He is shot down (the Earth) when the cable attached to the motherboard.

    -If you want to experiment and see if the serial port becomes active, turn off the Z400, then put a jumper between the P52 12 serial port connector pin and ground.  Soil is on pins 8 and 7.  (The pins are numbered with strange pins on one side (row) and evens on the other kind of pin 2 pin 1 opposite.)  To determine which line is even or odd, pin 16 is the last pin and the missing key on the 'same' line).

    Then turn on the system.  After the Earth axis 12, the serial port should appear in the BIOS settings and certainly in the windows.

    * I think this is how it works, I have tried for a long time. **

    Does that answer your questions?

  • cann't communcate with my serial port device?

    I connect controller E-753 of the Instrument of Physik for the command from step of piezo nanopositioning via RS232 serial port, when I communicate with the device using the interface that it comes with it's ok, but I could not able to set it up by the MAE or labview, when I tried to use the test panel Visa I always get return BFFF0015 status.

    Please all help

    Thank you

    Aneece

    Thanks, it's resolved, it was due to a frame, now, I tried to write and read using labview, so that I could not manage to connect, for the resource of visa I wire only the port # COM1, will I have to do the series in order to get. Please advice

  • output ascii 'code' for serial port

    Hi all, I don't know it is a simple problem, but I was try and fight the scourge. If all goes well it will take someone smarter than me almost no time at all. I am trying to contact a relay via the serial port (http://www.controlanything.com/Relay/Device/R45PRO ) box. It has a set of simple controls and looks like it should be easy. Unfortunately, the box is awaiting receive a number (an ' ASCII Code' as their described manual) rather than a normal ASCII character. So, if I try to send this "254" is he talking about listening to a command, the write VISA function it sends 50,53,52 or some such. I searched and found a bunch of examples for fixing such problems on the side of the reading, but none of them does not seem to work for me. I'm now resort to try things bothered as the conversion of a number and a Boolean and then to a string table, but is not do me any good either. I also tried just to send a string constant in hexadecimal and just write FE hoping that will get it in the mode of listening... but then I can't understand how to add a \n at the end character. If anyone has any suggestions, I would be very pleased them. Thank you, mike

    What you're looking for? The same question has been asked hundreds of times.

    First of all, learn how to do a right click. If you did this on your control station / constant, you would have seen the Hex display and '-' Code display options.

    If you wish, you can use a U8 to set a single byte. Use the conversion feature and the output of wire to the entry VISA.

    You can use a table of U8, and either the cast or byte array to a string. Flatten it to a string can be used instead the typecast if you wish.

  • How to trace data sent through the serial port by controlling simultaneously the buttons

    Hello

    I want to plot data by controlling the two buttons at the same time and the draw according to my control using communication serial port, but the problem is that the plot on the graph alternates between the two controls his do not change according to my control for example if I move the potentiometres1 / 1000 and button 2 to 4000 replacing these values on the graph I placed a select control, the problem is still not resolved u can help me please thanks in advance

    Regarding

    Samatha


Maybe you are looking for