Communicat​e with LIN device via RS232

Hi,
We have a project to communicate with a card containing the LIN bus. I seek a solution to communicate directly with the card via the RS232 port. I think use an rs232 adapter and a rs232-LIN transceiver directly to the card. The links below containinformation of material:
http://www.mikroe.com/eng/downloads/get/1276/max23​2_manual_v100.pdf
http://www.mikroe.com/eng/downloads/get/1507/lin_m​anual_v100.pdf
I want to know if anyone has used this solution before. Do you think this is feasible.Thus, the problem is that Labwindows allows easy implementation of code ofcommunication with the card (functions, examples ...).
Thank you for your opinion about this solution.

Hello,
Sorry for the delay. Can you describe me your solution. I thought of another alternative. Can I communicate directly using the rs232 port, a LIN  transceiver and a power adapter (rs232 to TTL). Can you tell me what library I should use because I do not know really what is the principle.
Many thanks

Similar Messages

  • Agilent 34401A multimeter to PC with Labview driver via RS232

    Hello!
    I am trying to measure a voltage with Agilent 34401A multimeter connected to PC via RS232 cable. I installed the driver. When I am starting Read Single Measurement.vi. It gives me an error:
    Error-1073807346 occured at Visa Open in Agilent 34401.lvlib: Initialize.vi->Agilent 34401 Read Single Measurement.vi
    Possible reason(s):
    Visa: (Hex 0xbFFF000E) The given session or object reference is invalid. 
    I would like to ask, how can I adjust my system to use RS23 with Agilent 34401A, if it is possible? If not, should I get GPIB card and cable?
    Thank you!
    Yulia.

    LabVIEW already comes with a driver for the 34401 pre-installed, so I'm not sure I understand what you installed. The pre-installed driver is in the Instrument I/O >> Instrument Drivers >> Agilent 34401 functions palette.
    As for the control that Dennis is referring to, it's the VISA control.
    As for the VISA version, you should have received a set of driver CDs along with LabVIEW. That will have the minimum VISA version required. Don't remember off the top of my head which version it is. Probably something like 4.1.
    Attachments:
    visa.png ‏42 KB

  • OfficeJet 8500-A910 unable to establish two-way communicat​ion with the device

    I have an HP OfficeJet 8500 A910 installed a couple months ago.  On first install the HP software could communicate with it from two computers--one XP and one Win7.  Now I can scan to the locations I setup before and print from both computers, but when I try to run the HP software that was installed and working on either computer, I get "...unable to establish two-way communication with the device".  I have tried all the troubleshooting and downloaded the diagnostic tool.  I have disabled both the Norton and Windows Firewalls. 
    Any suggestions would be appreciated.

    I have a similar problem. Brand new HP Officejet Pro 8500A Plus, wire-connected to router.
    I am unable to print/scan/fax on my Windows XP when Symantec Endpoint Protection is turned on.  I have to disable it to be able to print/scan/fax. 
    I can do all capabilities with my Win7 computers.  This seems to be a Win XP related problem.
    I have checked for HP PML service...not listed.  I show HP Port Resolver and HP Status Server and PML Driver HPZ12 started.
    Doesn't bode well for keeping Viruses and other malware at bay.  Any suggestions?

  • The computer is unable to establish 2 way communicat​ion with the device (Officejet 8500)

    My printer is printing with lines running through it and sometimes in yellow (even though I'm only printing in black & white) I was going to try to use the troubleshooter but it's unable to establish 2-way communitcation... Can you let me know how to establish this communication or do you have any ideas why my printer is acting up this way?
    Thanks so much for taking the time today to be on this forum!

    Hi, try aligning the printer. Follow the instructions provided in this link to align the printer.
    http://h20564.www2.hp.com/hpsc/doc/public/display?​docId=c01615965
    You might need to reinstall the printer software to establish 2-way communication. You can download the latest software from this link.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloa​dIndex?softwareitem=mp-110033-1&cc=us&dlc=en&lc=en​...
    If my answer was helpful please click on the "Thumbs up" button on the left to say "Thanks".
    Click "Accept as Solution" if it solved your problem, so others can find it.
    Although I am an HP employee, I am speaking for myself and not for HP.

  • Hp officejet 4500 g510n-z computer is unable to establish two-way communicat​ions with the device

    Control panel shows the printer is ready and online.  Error says computer is unable to establish communication with the device?  Solution Center says 'disconnected'? Windows firewall is disabled.

    If you are using Snow Leopard, Lion or Mountain Lion and have HP software for pre-Snow Leopard (either from a CD not marked as compatible with 10.6 -10.8 or you recently upgraded to Snow Leopard, Lion or Mountain Lion and had the HP software on your Mac before you upgraded - even if you did a standard uninstall of the old software or installed new software over the top of it) you must uninstall the software using the 'scrubber' option:
    Go to Applications/Hewlett Packard/ click on HP Uninstaller
    Click on Continue
    Highlight your device on the left pane
    Press and hold Control + Alt + Cmd keys on the keyboard simultaneously while you click on Uninstall <<<< This IS the Scrubber Option, there is no button labeled "Scrubber"
    There will be a pop up that asks if you are sure you want to uninstall ALL hp software. (At this point, if you continue, any HP printers you have installed will need to be reinstalled)
    Click Continue and let it finish
    Restart your Mac
    Now reset the printing system:
    - Sys Prefs, Print & Fax
    - Right (control) click in the rectangle listing your printers and select Reset Printing System.
    WARNING - this will delete ALL of your printers!
    - Select the plus sign to re-add it. Look for the printer, select it and wait until the "Add" button becomes available. Click it.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • HP Laptop Computer, computer is unable to establish two way communicat​ion with the device (printer)

    HP Laptop Computer, Windows 7-64bits, no changes made to the system before issue occured.
    Printer: HP Photosmart Plus all-in-one B210a series.
    When I click onto my Ink Levels for my printer in my computer it goes to 63% and stops. Then it says; The computer is unable to establish two way communication with the device. All systems are up and running and there is no reason I should be having a problem.
    I can print, Fax and Scan, I don't get blank paper from printer, printer is not jammed, nothing in Queue to stop it from printing. It just won't show my Ink Levels from my computer.
    This question was solved.
    View Solution.

    @marymay222, I will be glad to assist you on how to uninstall the software and drivers for the printer. 
    1. Click on the start menu
    2. Choose all programs
    3. Select the HP folder
    4. Highlight the printer name
    5. Select the UNINSTALL tab
    This will uninstall the software and drivers. After it completes, reboot the computer. 
    When it comes back on, insert the CD, if you still have it. If you do not have the CD, you can download the drivers from the website. 
    http://www8.hp.com/us/en/support-drivers.html
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • VISA: Communicate​ion with "imar sensor " via serial port[

    Hello
    I have problem in communication. I have one sensor imar sensor that can be easily communicate in Hyperlink but if I send same command for example "show conf" it doesn't responses It is connected with rs232 in com port 1.  it will be nice if you give me some suggestion thanking you
    regards
    Solved!
    Go to Solution.

    Yeah I can't open that (needs to be 2010 or earlier - see my first post)
    Is 57600 baud rate the one specified in the manual for your device? This needs to be absolutely correct for the serial communications to work properly.
    "If anyone needs me, I'll be in the Angry Dome!"

  • Unable to communicat​e with serial device using hex

    Hi... I have two instruments, both manufactured by the same company (Inficon), both that provide the same basic function which is rate control of vapor deposition...  Both instruments use RS-232 serial communication (baud rate of 19,200, 8 data bits, 1 stop bit, no parity, no flow control).  The only fundamental difference between the two instruments is that the instrument I will call #1 communicates serially using simple ASCII text while the second instrument (#2) communicates using HEX numbers...  Using VISA serial write and read, I have for a long time been successfully communicating with instrument #1...  I send it (serial write) a certain ASCII text command and the instrument responds with a message I successfully read back (serial read)...  That works fine...  Now I have a need to do the same "write a command and read a response" with instrument #2... I'm working with an engineer at the instrument company who has supplied me with the precise HEX messages I need to send, messages he has tested on an identical instrument #2 at his factory but so far, what works for him does not work for me...  I write the HEX string.  I get no errors but also I get NO BYTES available to read at the serial port...  Note, he is NOT using LabVIEW at the factory but is instead using a proprietary serial communication executable the factory uses internally...  He and I have resorted to having me try the simplest HELLO command in HEX that is, in fact, exactly the following
    0200480149  <--- in HEX (first two bytes are Length of command with LSB first, MSB second, the next two bytes are the command itself, in this case H1 (HEX for ASCII "H" is 0x48 and this company then uses 0x01 for 1 rather than the actual HEX for ASCII "1" which would be 0x31. Then the last byte is a checksum which is simply the HEX add of the two command bytes, 0x48 + 0x01 = 0x49...
    The bottom line I am confident the above 0200480149 (HEX) would work if I was sending it correctly but somehow I am not...  
    It's the weekend right now and I've been reading NI support posts here and I already have a couple of ideas that I intend to try on Monday...  One is I will try HyperTerminal to see I can communicate that way...  Second, the code I am using is ALMOST identical to the very basic Serial Write/Read code that can be found at (this is being done in LabViEW 7.1)
    C:\Program Files\National Instruments\LabVIEW 7.1\examples\instr\smplserl.llb\Basic Serial Write and Read.vi 
    But the ALMOST might be important...  I just noticed that I "Enable Termination Character" set to TRUE (default).  That may be causing my problem so the first thing next week I will set that to FALSE and see if my problem goes away...  But I'm trying to get a jump start on this problem (I am under time pressure to get this working) so I thought I would ask for your help...
    I also am not sure how to set up the string control that is inputting this HEX input message...  I have set it as "Normal" and also as "HEX display"...  But either way I set it, I still get "0 bytes at port" when I get to the READ portion of the code so neither "Normal" nor "HEX display" is working for me... 
    So other than trying HyperTerminal and also trying to set the "Enable Termination Character" to FALSE, can anyone suggest what I might be doing wrong???  I am pretty sure it is a formatting issue (such as sending that termination character) and I need to get it figured out soon... Any other ideas???  Any help would be much appreciated...  thanks.... bob...

    Hi...  Thanks for the response...  Find the very simple code I am using attached...  Do note that the string indicator out of the VISA read does open up with default values of 0D0A (CR LF)...  I didn't put those in and I've left them there to show what the defaults were when this code was first saved, just in case you think those values being there matter...  ??  Anyway, again, the code is attached...  Note also I have left the code with its "Enable Termination Char" set to ON (default) in the Configure VISA serial subvi.  I am not at work yet and will set that to FALSE later but you've more or less convinced me that is not going to solve my problem as that is tied to terminating the READ and does not impact the Serial WRITE...  And I appreciated the input on Portmon...  I downloaded it and will give it a try when I get to work which will be soon...  But I wanted to attach the code as you requested...  Holler back if you see anything that might help me with my issue...
    Oh, one last thing...  The manual for the instrument explicitly says that it uses "one start bit, 8 data bits, one stop bit, no parity, no flow control"...  What got my attention there is the explicit mention of "one start bit"...  Nothing in Windows or LabVIEW allows me to alter how many start bits there might be so I am assuming ALL serial comm uses one start bit and they just chose to mention it here???  Or might the start bit settings be an issue????  I am just searching... 
    Last, this code is in LabVIEW 7.1 and I really do use COM4 as I use a Keyspan serial port expander on the PC because we needed more serial ports...  That part has been tested and In fact, the other day, while in the middle of this problem we took the serial cable and hooked to what I above called the #1 instrument and talked to it just fine over COM4, same cable and everything so I think that part is good...
    thanks... bob... 
    Attachments:
    Talk with Cygnus.llb ‏35 KB

  • Communicat​e with HID device

    I need to communicate to a USB HID device.  I have some sample code written in Borland showing the different function calls I need to use including HidD_GetHidGuid, SetupDiGetClassDevs, SetupDiEnumDeviceInterfaces, etc., all of which are part of the HID library that comes with the Windows DDK.  I added the HID.lib and header files to my project, but I get compile errors on multiple items in the header files.  For example, the code:
     __checkReturn
    __drv_maxIRQL(PASSIVE_LEVEL)
    NTSTATUS __stdcall
    HidP_GetCaps (
       __in      PHIDP_PREPARSED_DATA      PreparsedData,
       __out     PHIDP_CAPS                Capabilities
    generates the error message "Declared parameter 'HidP_GetCaps' is missing".  This error message indicates that CVI thinks this is an old-style parameter declaration.  I think that really means that CVI doesn't understand the _drv_maxIRQL(PASSIVE_LEVEL)" macro and is treating it as the function name.  I can't find any explanation on MSDN of where this macro is defined.   I'm starting to think that it is intrinsic to VC++.
    Going a different direction, I found some references to a KB article on using VISA to control an HID device.   The KB mentions creating an INF file for my device and using that driver instead of the standard HID driver that gets installed by default.  I am going to be distrbuting my program to multiple non-technical users.  I can't ask them to go through the process of uninstalling a default driver and then installing the correct one (some of them may not even have admin privileges on their PCs).
    This leads me to several questions:
    1) Is there a way for me to include the HID library in my project so I can just use it?
    2) Is there a way to use VISA for this without creating a custom driver for the device?
    3) Is there an easier way to do this that I'm missing?
    Tony

    Hi,
    Before purchasing any file, you need to know which device you are working with.First, you need to know the device. Then you need the name of the chip providing USB communication (VID, PID). Generally, the chip manufacturer provides DLL files or source code to develop what you want. You should also know if the device is supported by VISA.
    Can you answer the previous question?
    Thanks

  • Windows has encountere​d a problem communicat​ing with a device connected to your computer

    Hello,
    I realize there are other threads with this error, but I've tried all the solutions suggested, and have a few additional notes that seem to be unique to my situation.
    I have a Toshiba Satellite L675 laptop and am running Windows 7 64bit.
    I restored to factory settings 3-4 months ago (was getting a blue error screen about twice a day).  It ran fine for a month or two, but then started freezing up if I left it idle for prolonged periods of time (10-30min).  It seemed okay as long as it was in use and it wasn't a blue error screen, it just froze on whatever was showing on-screen.  
    It recently started freezing completely (no ctrl-alt-delete or anything) within about 5 mins of turning it on even when in use.
    I tried to restore to factory settings again, but partway through I got the error mentioned in the subject title, and a
    Status: 0xc00000e9
    Info: An unexpected I/O error has occurred
    There are no removable devices connected, no discs in the DVD drive, etc. etc.  I'm very handy, but not necessarily a cpu whiz.  Is there any way to determine if this is a HD issue?  Ram?  I assume if I can narrow it down it's worth replacing a part, but I'm not sure that I want to pour money into a laptop that has little value if I'm guessing at solutions.
    Also, I upgraded to 8GB RAM about 2 years ago, but it ran fine until a few months ago so I'm not sure if that could be related or not.
    My wife has an identical laptop.  Would it harm anything to swap her HD (or RAM, or whatever you may suggest could be the problem) into my laptop to see if it works?
    Thanks.

    There are many models of L675. Do you both have the exact same model number? If so, there shouldn't be a problem doing that. It'd be a good way of seeing if the issue is the hard drive or not.
    - Peter

  • When I am connected to iTune with my device via my computer, I cannot view what is on my device, so I cannot add or remove audiobooks.

    Ever since I upgraded my version of iTunes, I am having a problem transferring purchased audiobooks to myiPhone 4S and my iPod Touch.  I can see them in my purchased list, but I cannot transfer them to my devices.  iTunes appears to recognize the device (syncs, etc), but then I am stuck!

    Thanks I will try that. I just have to remember everything. Oh I think I can find all purchases under the one spot on my itunes. Thanks so much you helped with 2 problems and one I didn't even think of until just now.   Sorry I am in a goofy frustrated mood...lol.

  • Unable to establish two way communicat​ion with this device

    I have an HP Officejet 6500A Plus E710n-z. When I try to check the ink levels, it gives me this message on my computer. It used to work, but now it doesn't. My husband's computer is also hooked to this printer, and he cannot check the levels either.

    Hi,
    Does it happen again after you reboot your PC
    Although I am an HP employee, I am speaking for myself and not for HP.
    ***Say thanks by clicking the "Kudos! Star" which is on the left***
    **Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.**

  • I have VISA3.0,do i need any further instrument drivers to communicate with my device?

    If I get Visa 3.0,will that be sufficient to communicate with my device via matlab or will I need
    further instrument drivers?

    Hello,
    It is not very clear what you want to do. For what I understand you have an instrument that you are connecting to a gpib, or serial or tcp port in your computer. Matlab should be able to do the link between VISA and the instrument. Are you using NI-VISA? Are you using LabVIEW or any other software?
    If you are using one of our GPIB cards or serial cards, then you would also need the driver for that hardware.
    Hope this answers your question. If it doesn�t please provide more description like if you would like to call a Matlab script through LabVIEW or something like that.
    Thank you,
    Ricardo S.

  • Fluke PM6304 controlled with LabView via RS232

    Hi,
    we're going to control our Fluke RCL Meter with Lab View via RS232.
    Does anyone has experience and show sample code?
    I failed already to make a terminal connection between my PC and the PM6304
    Thanks for comments, maximint.

    Okay, here goes. Once upon a time there was just serial and gpib. Each used completely different hardware,protocols, etc. and there were separate drivers for each. Years ago, a new instrument type was introduced. Based on a VME backplane, these were instruments on a card called VXI (VME with instrument extensions). So, a whole new low level driver was required. The makers of VXI, realizing that the first VXI instruments were the same as their GPIB instruments without a display or power supply, thought that it would be nice if the software that had been developed for the GPIB instruments could also be used for the VXI version. Several vendors, including NI, came up with something called VISA (Virtual Instrument Software Architecture). This was an API that united GPIB and VXI. If you wrote an instrument driver with VISA Writes and VISA Reads, it would work with either type of instrument. The VISA driver itself would determine the actual type of bus and handle all of the low level details. One of the goals of all these vendors was to also make it easy for users to change from GPIB to VXI instruments. While this didn't really happen, the idea of VISA caught on and became very popular and sort of a standard in many places. Eventually, other common forms of instrument busses were added to VISA. Among those are serial, ethernet, usb, pxi. All of the instrument drivers written by NI now use VISA.
    I downloaded the driver for the instrument you need and had a look at it. It really doesn't have much, it's very old, and uses the GPIB functions (not VISA). Since there were so few functions, I went ahead and replaced the GPIB Reads and Writes with VISA Reads and Writes. That will give you a start. You will also need to add some code to initialize the serial port. A great place to look to see how this is done is with an example that has shipped with LabVEIW for years. The HP34401 DMM driver that is on the instrument driver palette is a VISA driver with special support for serial. All of the serial setup is done in the initialize subVI. The type of interface is determined and if serial, baud rate, parity, etc. are setup. Another important setting is a termination character. Serial instruments usually require a CR or LF at the end of each command. You will need to determine what your instrument requires.
    Attachments:
    flpm6304.llb ‏141 KB

  • HD 4600 - Can't communicat​e with monitor via HDMI

    Hi, I have recently purchased a Toshiba Satellite S50-B-15U and I'm trying to connect it to my 3 year old AOC monitor
    via HDMI (the Toshiba doesn't have a VGA port). However whatever I try I can't get the laptop to communicate with
    the monitor. The graphics card in the Toshiba is a HD 4600 with a version 10.18.10.4061 driver.
    Someone on another forum suggested that an older version of driver (9.18.10.3165) would cure the problem but when I try and install this on the laptop it keeps saying I have the latest driver and it will not let me change to the older version.
    I should add that the laptop communicates fine with my TV via the same HDMI port and cable. Also, the monitor works
    fine via VGA to my old tower PC. Any suggestions appreciated
    Solved!
    Go to Solution.

    Satellite S50-B-15U (PSPRBE-02V051EN)
    Any suggestions appreciated
    If you're really stuck, try out an adapter.
    -Jerry

Maybe you are looking for

  • Pictures not in 4:3 ratio got truncated in landscape mode in iPhone 4S

    I have some screenshots taken in the computer in various ratios, not 4:3. When I view them in my iPhone 4S in portrait mode, I can see the whole pictures, although there are some black background above and below the picture due to the ratio. When I v

  • Why can't I feedback with older versions since latest sucks

    Installed 8.0, would not show windows & tabs from last session. Went back to 3.6, can't feedback. You also have 9.0 now. Hello! Perhaps you RnotListening. P.S. I have also downloaded Opera since .............. what did you say? Sincerely ''[Personal

  • .osx file extension works on MacBook Pro but not Mac Pro

    So I have a file that was created, I believe in Macromedia Flash (not certain) but it has a .osx extension on it. It works just fine on my MacBook Pro, but won't work on a Mac Pro. Both have Leopard, both have most of the same software on them... Can

  • HT1222 Locked out after running Security Update 2014-002 for Mountain Lion

    Accepted and ran Security Update as normal on MB Air 2013.  All previous Updates already installed.  After restart try to put password in, and it comes back asking for password again.  Have restarted, shut down and waited 5 minutes, restart again and

  • How I can make a note on an image in the IMAQ browser?

    Hi, I searching for the way to add a text on a thumnail image in the IMAQ browser. I just ran Browser Example.vi and tried to add a note on a thumnail image using IMAQ Overlay Text API. And also tried adding Overlay Text on the source image and then