Jump to content

tengels

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by tengels

  1. When trying to communicate over a serial port I get "port settings conflict" error in the MAX.

    After selecting the correct serial settings (57600 Baud, 8bits, no parity 1 stop bit) and saving the port settings the device still doesn't working correctly.

    As I open a VISA session in MAX I see in the "View all settable Atributtes...." that the baudrate did not changed to 57600 Baud. Only when writing in the VISA session the correct baudrate with the property node (write) the communication for that session works.

    However when refreshing the MAX or leaving the MAX the settings are changed back to 9600 baud.

    When programming in LabVIEW I can't get a reply back. It looks like that the application uses the wrong baudrate.

    (Used several examples from NI where baudrate is configured.)

    Does some one encounderd this problems before and is there a work arround for it?

    I'm using LabVIEW 8.5

    MAX 4.2.1.3001

    NI-VISA 3.1

    Hope someone could help me

    Theo

  2. I have some questions concerning Profibus communication between a Compact Field Point system and a Siemens PLC.

    The following hardware is used:

    NI cFP 2120 controller

    Siemens S7 314 MPI

    Has somebody tried to read data from a Siemens PLC over the RS485 ports with profibus?

    If yes, could we get the (Siemens) command set so we can try to retrieve data from the PLC (using NI-VISA).

    Or has somebody already programmed a solution, could we then have an example of how it has been programmed.

    Has somebody solved this problem of communication in a different way? What was the solution and how much time / money did it take.

    Hope someone could help me with this problem.

    Already thanks for the effort.

  3. If I remember correctly The footer (and of course the header) height is automatically increased, if your entered Text requires it.

    In this case I want to decrease the footers height. I already tried to decrease the margins of the page, this helped a bit but not enough.

    Maybe I should use a word template instead of programmaticaly change the height.

  4. You would for sure need any sort of activeX. The report generation toolkit does nothing else. If you are familiar with the win-API and MSDN you can find the needed property node and class-hierarchy yourself. Ohterwise check the report-generation toolkit, especially the vi's found in <LabVIEW>\vi.lib\addons. If you have the toolkit installed there are a bunch of useful vi's there.

    Indeed there are lots of usefull Vi's in the addons library but not one to change the hight of the footer. I've only looked shortley at the msdn website but did not found anything in the short time I had. Still hopes that someone has an example or detailed description with activeX.

    Thanks for the reply

    Theo :throwpc:

  5. 2 of them that I use a lot, besides the Ctrl + Double Click on subVI.

    1) Ctrl + Drag'n'Drop a Block (or a selection of blocks) duplicates it, even if it is a variable, property node, reference or whatever (and does not create a new one as with Ctrl+C, Ctrl+V)

    2) This one I discovered accidentally while performing an operation in 1). If you hold down Ctrl + Turn the Mouse Wheel Up/Down inside Structures like Case, Event, etc. (where there may more than one case), LabView will loop through the structure showing each case as you move the wheel.

    Please, notice that I use LabView 7.1. Don't know for other versions.

    5303[/snapback]

    An extra thing I miss here is the Ctrl + E to switch between Block diagram and front panel :thumbup:

  6. I would agree with regis. The sensor needs something to tell it that the string is complete.

    If it is not a LF or CR it could be a non printable character like  hex 03.

    Hyperterminal may be appending a nonprintable without you realizing it.

    One of the programs I use is called port monitor.

    It shows exactly what is being written and read from the serial port.

    you can download it here

    http://www.sysinternals.com/ntw2k/freeware/portmon.shtml

    I would start portmon and then use hyperterminal and see what characters are being passed back and forth.

    good luck.

    4515[/snapback]

    Thnx mballa with the monoitor I found out there was a non printable character. With the character the program works fine now.

    greetings Theo

    :thumbup:

  7. just out of curiosity, are you sure there's no need for a termination character?  <cr> or <lf> can be appended to your command string if necessary.

    Regis

    4451[/snapback]

    Accordingly to the manual the carriage return and line feed are optional.

    theo

  8. Hi there,

    I need some help!!! I want to read a displacementsensor through serial communication.

    But i get a timeout error when the Visa is sending the string to the displacement sensor.

    I've tried to enlarge the timeout with a property node. Still no result.

    The string I'm sending is correct because it works if I use program hyperterminal to communicate with the sensor.

    Please HELP somebody, I am probably doing something wrong and can figure it out. :headbang:

    The VI is attached.

    The error will occur in the VISA write (error 1073807339)

    THNX

    Download File:post-1757-1112791619.vi

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.