serial output unreadable communication

Hello

I'm reading the data via the serial port of a microcontroller based device. I use basic_serial_write_and_read.vi from the example section. the output I get is not readable (see photo).

Any ideas on what could be bad?


Tags: NI Software

Similar Questions

  • How to check if "PO output for communication" uses XLM or OracleReports

    I need to change the purchasing document "Exit IN. for communication", but I must first identify if it uses XML Publisher report or reports of the Oracle.
    How can I check that using the client?

    Any help is welcome.

    Rodrigo

    Hello

    OK, here's what I did to customize the presentation of PO:

    1 create new templates in BI Publisher:

    1.1 Please download the original models:
    In my evolution, I used the original models of Oracle as a starting point. If you get their first:

    Logon with respo XML Publisher administrator and navigate to 'Models' > search model whose name "Standard purchase order Stylesheet" and click on it in the result of the research. Click the download link to download the file .xls on your local drive. You can repeat that for all other models that I mentioned earlier, depending on which layout you want to change.

    I do not recommend to change the original files. In case of problems you can always return to the original version of Oracle.

    1.2 now to create your own templates:
    In XML Publisher administrator, you can create a new template. As model name, use a meaningful name with a prefix such as "XX" or something that you usually use for your own developments.

    The rest of the fields in the template definition must be equal to the standard models (so just copy & paste the values from there). And you can download the original .xsl file to the beginning.

    2 let know to use your own XML Publisher templates:

    connection with a PO administrator/super user responsibility:
    2.1 (by purchase) > Setup > organizations > Options purchases > control tab > set "Output PO Format" = PDF
    2.2 (by purchase) > Setup > purchases > Document Types > find the 'Purchase order - Standard' Document Type > define the presentation of the Document Type = "XX purchase order Stylesheet" (put the name of your custom here template!)

    Repeat step 2.2 for other Types of documents, such as agreements to cover and if necessary press coverage.

    3. test:
    Now try the PO output for communication. If everything has worked, you should see a purchase order as a PDF with the same layout as before. Now it's time to start customizing the layout.

    4 customize the page layout:
    You must change the XSL templates. You need some knowledge of XSL - FO, but with some programming experience little, you will have the concept quite easily. In fact, the XSL - FO offers many possibilities to model your page layout.

    BUT: Change the XSL template to change your "LAYOUT" only, not the data of the report part. Of course you can text coded hard and calculations in your XSL, but dramatic changes of the portion of data are not really possible with this.

    If you want to do, then search on Metalink, there is a document that explains how to customize the data for printing of PO. I don't have the Note in his hand right now...

    BTW. XML Publisher is the former name of the product, Oracle has renamed it BI Publisher. In EBS, it is still often referred to as "XML Editor". You can see the two names as synonyms. You pay more attention to the version of BI Publisher, which is integrated into EBS is different from what you can have as a stand-alone versions.

    Best regards
    David.

  • Simple serial using RS232 communication

    Hello

    I did some research on how to read and write with the serial RS232 port. The only example I found was a test program that is really involved. All I do is pass 7 bits of information that are going through a digital communication kit then read the same 7 bits of information after the kit Comm. (bits, parity of 7 bit stop bits not included... ect).

    So I just need to

    -Desired TX 7 bits of information comm kit (in addition to the necessary stop bits)

    -Information cross kit comm (short delay)

    -PC receives the same bits of return.

    Any help would be appreciated!

    IM using CVI version 9

    The byte field should be the data you want to send the kit of comm.

    It's something you need to know.

    Status fields give you information on the question of if the function call completed successfully.

    Most of the time 0 means success and error average of negative values. But you should read the function for each function to be sure about this.

    When you receive an error code you can use the GetRS232ErrorString function to get a verbal description of the error.

    number of bytes written, as its name implies, represents the number of bytes transferred to the COM port. You wait for the value to be equal to the number of bytes to send to your application.

    Hope this helps,

  • customization of report output for Communication with rtf custom model-IN.

    Hi all

    I'm working on the output PO for Communication report purchase R12. I have to add a custom report template. To do this, I followed the steps below...


    (1) download the xml data file Standard to set data Source Data Standard purchase order (PO_STANDARD_PO.xml)
    (2) model rtf created, based on the data in the xml file that I had taken the definition of data
    3) has created a custom template for the definition of standard data with this provision of the rtf.

    (4) makes configuration changes in the tab control purchase and the purchase of Options of Types of documents.

    In the setup of purchase Super User RESP, I did the below configurations

    (a) organizations-> Purchasing Options - > output Format to the Document Format in the tab control in PDF format
    (b) procurement-> Types of documents--> and given of my custom here layout

    When I run this report ended with error as Exceptionjava.lang.Exception: error during PDF generation: null


    Please me advice how to proceed further or have you missed all the other things


    Kind regards
    Goussard

    for this, a patch is need to apply, we have applied the patch and problem solved.

    The metalink note I mentioned is * 1192234.1*

    Thanks for the update and for sharing the solution!

  • PO: output for Communication.

    Oracle Apps Version: R12.1.3

    We can print the attachments as well as the purchase order out of communications report.
    (The attachment contains specifications of the provider element record).
    The specification of the attachment to the category of Document type provider while attaching the document to PO.

    Concerning
    Srini

    Text type accessories of the note of the type of provider are printed.

  • Serial communication - ignore parity error

    I have a question about how LabVIEW opens a serial port for communication. I communicate with a device that uses a protocol owner. It sets and clears the parity bit to indicate the nature of the response. For example, the orders are sent with the parity bit higher while responses are sent with the weak parity bit (unless the answer is at the end of the transmission, in which case the device sets the parity bit high to indicate).

    My problem is the way that LabVIEW opens the serial port for communication. Using Portmon, that I captured the control indicators, that it sends to Windows to configure serial communication:

    IOCTL_SERIAL_SET_LINE_CONTROL   Serial0 SUCCESS StopBits: 1 Parity: MARK WordLength: 8IOCTL_SERIAL_SET_CHAR  Serial0 SUCCESS EOF:0 ERR:0 BRK:0 EVT:0 XON:11 XOFF:13IOCTL_SERIAL_SET_HANDFLOW  Serial0 SUCCESS Shake:1 Replace:44 XonLimit:64 XoffLimit:64
    

    Note the values 'Shake' and 'replace '. In my view, they are originally bytes with parity errors is removed. A separate RS232 Comm Debug tool that I use with success looks like this:

    IOCTL_SERIAL_SET_LINE_CONTROL    Serial0 SUCCESS StopBits: 1 Parity: NONE WordLength: 8IOCTL_SERIAL_SET_CHAR  Serial0 SUCCESS EOF:0 ERR:0 BRK:0 EVT:0 XON:11 XOFF:13IOCTL_SERIAL_SET_HANDFLOW  Serial0 SUCCESS Shake:0 Replace:80000000 XonLimit:128 XoffLimit:128
    

    Notice the difference in values. By using this tool, Windows does not packages with parity errors - that's what I want. Is there any way to change how LabVIEW opens the serial communication port to achieve?

    I tried to change the parity, where the ILO is defined differently, but I think that I am running in a race condition; LabVIEW can not run the code and change the mode of fast enough parity before the next byte of data is sent by the device.

    Ravens fan: the parity bit, in the proprietary protocol, that I use, is not used for parity checking. Basically, the protocol uses a 9-bit serial communication. The parity bit must be paid or compensated according to what byte do (if it is a command, if it is the end of transmission, etc.).

    I found an old post on this page which seems to answer my question (my apologies for not completely research before posting... I learn the right use/search phrases that I find more information). I download the 3.4.1 version of VISA now.

  • communication series with VISA

    I'm trying to communcate with a power supply via a serial connection.  Communication works very well in Hyperterminal and putty, but I can't seem to run in labview.  It times out when trying to read the data.

    Hyperterminal parameters are the basis of everything and it works fine

    9600 baud

    8 data bits

    no parity

    1 stop bit

    no flow control

    Send "VOLT?" with CTRL + J for line break

    Returns under the voltage at the output of the UUT.

    I wonder if I send you the incorrect order in labview.  Any help would be great.  I have attached the VI, it's my first try at comms series so it's pretty baisc and I do not know I'm missing something

    You are not sending the line break.  You send only "Volt"?

    Make a right click on the string constant, visible display style and make \codes show.  Then enter \n at the end.  Now you send VOLT? with the line break.

    In addition, remove the shift regsiters on the son of reference and error.  (A single time-out error will keep your VI to run again until you stop and restart the VI)

    And put a close VISA outside the loop.

  • Serial RS232 between existing Instrument and reading software provider

    Hello.  I have an instrument with software supplier for the acquisition of data from the instrument to a PC through serial RS-232 communication.  I would like to acquire data in LabVIEW instead of via the provider software.  The seller has given virtually no support to help me find a way to communicate with the instrument - they offer only their software as the only solution.

    I'm trying to find a way that I can transfer data with provider software and basically understand the format of the communications and the commands that are required to send to the device.  Two things that seem like possibilities are:

    (1) use a type of "spyware" or "monitor" for serial ports to capture and display the communications that occur between the instrument and the PC/software.

    (2) connect the COM1 port, from my PC (by which the software provider would communicate) to COM1 port on my computer and the insrument for a 3rd COM port on my computure.  Use hyperterminal or LabVIEW to read it as the instrument and software try to pass each other by reading iteratively to a port and then in writing as to the other port.

    No one has tried this before?  Any suggestions on who could work or work better/easier, or any other ideas?  I don't even know the port required parameters (baud, etc.), so I need to guess at those if I tried option (2), above.  I've never used any software serial port "monitor" before, so I don't really know what to use or else it might work for option (1).

    Thank you.

    Hello

    As mentioned, Microsoft Portmon's looks like your best bet.  Here is a link to where it can be downloaded:

    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896644

  • RT - cRIO Console output - Custom output / system Message?

    Hello

    A cRIO has a console output that sends messages system, informing the user that is running, or if there are system errors. This can be seen through a browser or by connecting a monitor the the cRIO. See attached screenshot of the output in my browser.

    Is it possible to programmitcally send messages to the screen? cRIOs did not have a UI other than that, so it would be nice if the application can send messages to the screen for debugging/status information.

    Thank you

    Hello Jacques,.

    We actually have this feature. You can use the String Debug function for the output in the console of any of our targets in real time.

    http://zone.NI.com/reference/en-XX/help/370622K-01/lvrtvihelp/rt_debug_strings/

    You can also disable the console if there are some details that you do not want show and using write serial output.

  • Download Serial settings saved in Max loaded in LabVIEW

    Is there a simple way to obtain or retrieve Configurations saved in MAX in LabVIEW series?

    We have several devices that communicate well RS - 232 that require different settings. The connection of these devices agreement can change from one test to the other. I want to do it is using MAX to determine what equipment is connected to which serial ports, record communications at MAX settings and load them in LabVIEW to make the connection. I could write some code to allow the user to do this, but why reinvent the wheel.

    I have attached to my list of software incase a new version might be able to do.

    No indication in it would be greatly appreciated.

    Thank you

    Tessa

    You don't have to do anything to get the parameters set in LabVIEW. As long as you do not use the VISA to configure the Serial Port, the settings will persist and you have to just do your reads and writes with the correct resource. In other words, if you set baud rate to MAX for Com1 to 56000, in LabVIEW if you write to Com1, it will happen at 56000 baud.

    This has been the case for versions of VISA much older than what you show.

  • Using "Exit IN. for Communication" at the exit just XML?

    Hello

    I'm redrawing the existing model of the XML editor used for the formatting of the PO and I was wondering if it was possible to get the output of a purchase order system .xml? I tried to change the output format of competing demand "PO output for Communication" to XML - but when it is run this again tries to generate a PDF file. Is there a way to get this XML output or this application stores its intermediate XML data in a temporary table?

    I go about it completely the wrong way?

    Any help to this much appreciated; I couldn't see anything on Metalink.


    Thank you
    Tim

    We do it:

    1. give the user Core Apps (which needs to be a buyer) to run concurrent demand "PO output for Communications.
    2. Once you have your purchase order, do not approve it_ - leave it as incomplete
    3. go in run a new query > PO output for Communication
    4. Enter the PO number and set: Print selection = gcnew, PO number = incomplete IN. you just created, Test = Debug
    5 the application
    6. in the end, the request will be error
    7. display the wrong job log
    8 do tools > print to open the newspaper in the browser
    9. scroll down until you find the tag. Start the copy from there (including this tag).
    10 stop the copy to the tag (just before begins...
    11 copy the selection
    12 paste the selection into a new text document, but put it in the first line:
    13. at the end of the text that you pasted in (last piece should say.
    14. manually type
    at the end of the text you pasted.
    15 save in an XML file.

    You can then use this XML to connect to XML Publisher...

    I have screenshots in a word doc if you would like to you.

    Of course, I'm also about 4 weeks late on this reply, then you've probably done the job and settled on something else now!

    EDIT: Sorry - just realised it's exactly the same thing as 364177.1 Note!

    Published by: jimr on August 25, 2009 16:19

  • wrap a vi with indicators in a stand-alone block

    I am a rookie in Labview, so this may be a common problem with the rookie.  However, I asked this question to more experienced Labview users and left without solution.  This post is a little long and it actually contains 2 little issues - apologies.  I hope it's really a matter of rookie and not a limitation of the language.

    When I started to work with Labview, I imagined being able to create virtual instruments for my test equipment automate my experiences.  I started with a power of BK1687B with a USB interface, but no .vi manufacturer.  The manufacturer provided a sufficient description of the commands on the virtual serial port PC, and I was soon able to write a work .vi who put a photo of the front of the power supply on the Panel before Labview and superimposed with digital display to reflect the appearance of the real power.  I created a while loop around the code to have it regularly interview the real instrument and update the virtual instrument Labview to read the same as the real power.

    I have already created controls to change the voltage & current in a separate all parameters in a loop outside the while loop for virtual food (modeling of the interface for the conduct of another program). Then I ran into my first problem - how do they communicate over the setting of control while in a loop (the rest of my modeling program) in all loop the virtual operating power supply?  I tried (successfully) so he can work with local variables, but when I went to create a subvi, Labview want to shoot all the indicators of the power supply sub - vi - what a mess!

    Then, instead I have re-written this with global variables for exchanging control signals, and it has worked and reduces the complexity. but using these globals is far from my vision of how I want to get this job.  I want a way to I/O well defined and easily identified in my block diagram of a single block that represents the virtual BK1687B power supply (see attached figure).  I don't want the communication to do with a bit of invisible global variables, I want signals are grouped between my virtual power PSU and the part of the control program which will use power - I want a thread for this function (I could make do with separate and on the son of cluster).  The problem is that I want those signals to pass in and out of the main loop of the program and the loop program of power supply via internal cluster updated cables at each iteration of the loop of the program.

    Question 1: How do you pass variables through the while loop in both directions with the updates that occur at each iteration?

    Question 2: How to wrap the .vi for feeding complete with all its indicators, controls and graphics of decoration as a block (its own thread) that can be loaded and connected on another program?

    In general, I would like to be able to separate from the rest of the exploitation of the virtual instrument of power supply control program.  I want the provision to have its own representation of the façade which includes all its indicators, controls and graphics of decoration pulled into the program as I load an icon representing the power supply in the block diagram.  I can't find how to make this encapsulation full virtual food.  Encapsulation is also partially inhibited by not being able to wire connect the input and output signals communication in the virtual instrument.


  • How to contact encoder Kübler

    Hi, I need to communicate with an encoder Kübler RS485 using commands Esc (00P)for the position). I have been using VISA VI with other instruments for a while with no problems. I have computers with windows Vista and XP and it seems that these commands need in real time which is not compatible Win XP/Vista. Any help will be appreciated. Thank you to

    Dear sisco79901,

    Encoder of what model you are using? It is the closest, I could find:

    http://www.clrwtr.com/PDF/Kubler/Kubler-9081-absolute-encoders.PDF

    And for this and other models that I have watched, configure you the hardware configuration by setting some lines either high or low before feeding the encoder.

    Can you provide a link to the technical data sheet or manual for your specific encoder? I have also found not any reference to these commands Esc in any of the Kübler writings that I have watched so far.

    If you send commands to control lines specific in respect to this low voltage or high, you can use any device which will output the appropriate voltage (MIO DAQ card for example) and DAQmx driver in LabVIEW.

    If you need to send these commands via RS - 485, then you can always use the driver NI-VISA, because it supports serial RS-485 communication.

    How can I enter the escape (ESC) character in LabVIEW 6.1?

    http://digital.NI.com/public.nsf/allkb/86256A47004E16D186256A3E0051653A?OpenDocument

    Inserting Non-displayable characters in strings

    http://zone.NI.com/reference/en-XX/help/371361B-01/lvhowto/inserting_non_displayable/

    Send the escape character

    http://forums.NI.com/NI/board/message?board.ID=170&message.ID=255093&requireLogin=false

    Best regards

    ~ Nate

  • Win 2000 on Tecra M1

    Does anyone know, if Windows 2000 is put on the laptop next would create a problem with device drivers - specifically for the serial port (RS232, communications). I wonder, as I work with old technology and require a TRUE - no USB converters series series connection. I was wondering if XP can be taken out of SERVICE with respect to the software of automatic analysis on comms ports. Someone kindly help.

    HTTP://UK.COMPUTERS.TOSHIBA-EUROPE.COM/CGI-BIN/TOSHIBACSG/PRODUCT_PAGE.JSP?SERVICE=UK&PRODUCT_ID=46011&DISC _ MODEL = 1

    CUJO.

    Hello

    I think that there should be no problem to install Windows 2000 on the M1, because Toshiba is provide drivers for this laptop for XP and also for the year 2000. You can find them on the download page for the driver.

    Good bye

  • Passing of cRIO to myRIO

    Hey!

    I currently have a system configuration using cRio-9012, NI 9477, NI9263 and NI 9205.

    This system has the following inputs and outputs:

    1. entries: receives 2 analog pressure sensor values

    2. output: connected to a circuit of pilot digital outputs 7 runs hydraulic/pneumatic valves

    3 outputs: 2 analogue signals to a driver running variable hydraulic/pneumatic circuit

    The LabView program has 3 independent control loops that do the following:

    Loop 1 and 2: receive entries from the respective pressure sensor and control variable valves (based on input from the user (front)).

    Loop 3: Turn on and off the 7 remaining valves according to user input (front)

    At present the cRIO system I use manages the whole system perfectly, but I'm attached on a laptop more and intend to use the cRIO for a different application.

    So my request is myRIO would be able to replace the cRIO for my application? I also want to add sensors / additional outputs and communication also.

    Please go through my request!

    The only potential issue I see with moving the project to the myRIO is the plug that you may need on your I/O. For example, the module 9477 is capable of 5 to 60 v output where the myRIO is only skillfully 3.3 v, LVTTL output. In the end, it comes down to your specific needs, I/O - I linked the manual and specifications for the 1900 myRIO below. I would recommend dominant to ensure that it will meet the requirements of your application.

    User Guide and myRIO-1900 specifications

    Side software, there shouldn't be too many adjustments to do - the myRIO has the same architecture as the cRIO treatment.

    Kind regards

Maybe you are looking for

  • Text on the screen problem

    I'm having a huge problem with FCPX. A computer captured as ProResLT and looks great desk gets all warped when they are imported into FCPX. No travel or transcoding took place. Reference is made to the original file (which seems well). I've included

  • Satellite L30 (PSL33E) does not recognize second memory slot

    I'm trying to upgrade a L30 for a friend. It came with 1 memory module 512 MB PC2 - 4200. I tried to add a 1 GB PC2-5300 SODIMM in the second housing and it does not pick it up. I replaced the 512 with the 1 GB and he found. Put the 512 in the second

  • GarageBand 10-1 is not installed

    Downloaded the new GarageBand (I'm upgrading from a 5.1), but even if you download (and the App Store said that it has "installed), under the applications, it is still showing version 5.1.  I tried to download version 6, thinking maybe the upgrade ne

  • HP Envy 4500: scanner/copier

    When I scan or copy - the scanner cuts about 1 inch of the document.   I need be able to scan/copy/print throughout a document from edge to edge.  This machine is not that? I just bought the scanner/printer and I scanned the printed document as the i

  • Games Pogo charge once I log on the main clubpogo main site

    I pogo games all the time.  We recently received a new computer and I can log on and get on the site, but when I click on the game I want to play he gets up and tells me Internet stopped and mentions a DEP site.  It also lists the following files are