Need to control waterbath temp using labview via RS232

HI,
I am new to labview. I have labview 6.1. I need to control a thermo RTE7 water bath temp.  controler using labview.
The water bath has to be connected to computer via RS232 port and the commands have to be given via binary values.
The users manual for the bath has "hex" bytes that are to be converted
to binary values to be passed to bath. If anyone has done this before
or anyone can help me on this please let me know. Thanks,

Use simply the recommandations given in the RTE manual. You don't have to convert to binary : that's something done by the hardware.
For instance, to send the temperature setpoint to the controler, you have to send a byte string such as
CA 00 01 F0 02 01 2C DD, where CA 00 01 is a header specific to the type of serial link you are using,
F0 is the set temperature command,
02 is the number of bytes expressing the temperature that you are about to send
01 0C is the temperature in tenths of degree (here : 30°C = 300 tenth = 010C$
DD is a check sum byte.
The corresponding labVIEW program is as follow :
Of course, do not forget to initialize the serial port before writing the string !
Message Edité par chilly charly le 10-21-2005 06:21 AM
Chilly Charly    (aka CC)
         E-List Master - Kudos glutton - Press the yellow button on the left...        
Attachments:
Water bath.png ‏4 KB
Water bath.vi ‏28 KB

Similar Messages

  • Need help writing host program using LabView.

    Need help writing host program using LabView.
    Hello,
    I'm designing a HID device, and I want to write a host program using National Instrument's LabView. NI doesn't have any software support for USB, so I'm trying to write a few C dll files and link them to Call Library Functions. NI has some documentation on how to do this, but it's not exactly easy reading.
    I've written a few C console programs (running Win 2K) using the PC host software example for a HID device from John Hyde's book "USB by design", and they run ok. From Hyde's example program, I've written a few functions that use a few API functions each. This makes the main program more streamlined. The functions are; GetHIDPath, OpenHID, GetHIDInfo, Writ
    eHID, ReadHIC, and CloseHID. As I mentioned, my main program runs well with these functions.
    My strategy is to make dll files from these functions and load them into LabView Call Library Functions. However, I'm having a number of subtle problems in trying to do this. The big problem I'm having now are build errors when I try to build to a dll.
    I'm writing this post for a few reasons. First, I'm wondering if there are any LabView programmers who have already written USB HID host programs, and if they could give me some advice. Or, I would be grateful if a LabView or Visual C programmer could help me work out the programming problems that I'm having with my current program. If I get this LabView program working I would be happy to share it. I'm also wondering if there might already be any USB IHD LabView that I could download.
    Any help would be appreciated.
    Regards, George
    George Dorian
    Sutter Instruments
    51 Digital DR.
    Novato, CA 94949
    USA
    [email protected]
    m
    (415) 883-0128
    FAX (415) 883-0572

    George may not answer you.  He hasn't been online here for almost eight years.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Error -107380724​6 when trying to control a circulator in Labview via RS-232

    Hi, I'm trying to control an F32 refrigeration/heating circulator through LabView via an RS-232 cable but am having trouble. I keep getting the error - 1073807246 at property node (arg1) in VISA configure serial port. What does this error mean and how can I correct it? I have already specified the values for Baudrate (4800), parity (even), handshake (RTS/CTS), data bits (7), and stop bit (1).
    Thank you,
    Hung

    It is rare to get a timeout when writing. I usually get this when I am reading a port. What value did you use for the timeout when you configured the port? I think the default is 10,000 ms, i.e. 10 seconds. If it were timing out, you would notice the code hanging for 10 seconds as the serial I/O function tries to run to completion.
    To avoid timeouts, check the following in your code.
    1) Make sure the configured timeout is long enough to handle the data stream sent on your write. If you are sending a long stream of data, you should test the time it takes and make sure the timeout is larger than the longest time for your longest data stream.
    2) When you are reading a port, make sure the number of bytes you request is equal to or smaller than the number of bytes being sent from your serial device hanging on the other end of the cable. Otherwise, it will always use the entire alotted time (the timeout value) attempting to read the data.
    3) Verify that the response time of your device is not abnormally slow. Some devices don't interrupt processes very quickly. In fact, some devices put a very low priority on the serial port and may not respond at all while executing certain functions. You need to set the timeout value to be long enough to account for the device's response time when reading a response from your device.
    If you don't know what to use as a timeout value, always start with a long one and try to handle timing variations in your code, e.g. read or write the data in chunks perform sanity checks as you go. Long delays in the response of your code will point you to a bug in the handling of serial port communications. You will get a long delay everytime the serial command cannot complete due to an unreasonable request, e.g. telling it to read 100 bytes when the device can only return 16 bytes for the requested command.
    You can use the NumberOfBytesAtPort property to help you determine when data is available for reading. Also, in a loop that may be used to poll a serial port, try to use a wait (the wristwatch timing function). This keeps you from pummeling the serial port to hard with futile requests.
    Another good way to avoid serial timeouts is to use a termination character. If your device always expects a as the last character in a command, or if it always sends a as the last character in a response, then configure your port to terminate a transmission automatically upon receiving the character. I think the default termination character is (linefeed character) it you elect to enable this feature in your configuration.
    jc
    Mac 10.4
    LV7.1
    CLD

  • How do i open and control other programs using labview?

    I'm presently trying to use labview to try to open and operate another program,but having much difficulty.The external program i'm using is called the Foundation program.
    This Foundation program will use VHDL programming to create a virtual chip and then synthesising it.This program will then simulate the output of this VHDL program to verify that it is working as desired.Then the last stage is to download the whole VHDL program into a FPGA chip using a xilinx cable.
    All this need to be done using a labview program - to open the Foundation program and then extract the saved file and then to execute the download command to cause the VHDL program to be downloaded onto the FPGA chip.How do i go
    about doing all this?What is the first step i must do.Also all this have to be done thru networking..looks like its too difficult..I really need help.
    grays

    I haven't done VHDL so pardon my ignorance.
    LabVIEW can call external DLL via "Call Library Function" or C programs via "Code Interface Node", both located in "Advanced" function.
    If your program is a DOS program, use "System Exec.vi" found in "Communication" function. If you need to format your DOS command prior to sending it, use the "Format Into String" function in "String" function palette.
    Lastly, if you're trying to extract data, assuming it is text, use "File I/O" functions. If the data is binary, use "File I/O -> Binary File VIs".
    Hope that answers most of your questions.
    Shan Pin Koh

  • How to control TTL device using LabVIEW?

    I have a device which requires TTL (+5V) to control it to be on/off. How can I provide this TTL to it using LabVIEW? I guess I should install a PCI board in my computer to connect to this device, but how to do my LabVIEW coding to control it?

    Hi,
    First of all if your board is NI board after corect instalation you need to view this board in the section Devices & Interfaces from the NI program Measurement & Automation Explorer.
    Also if the board is NI board or has the divers for LABView you need to find in the LabView the functions to command your board.
    Other posibility is if your board is no't compatibile wi NI, in this case you need to extract from DLL, the function to command the board.
    By

  • Controlling pxi 7350 using labview software

    Hi,
    So i am a complete newbie when it comes to labview having only used it to control virtual instruments before and now i am the point where i want it to interact with real world items. Ok so here goes..... i have the latest labview development software and have also purchased a pxi1033 with a pxi4065 digital multimeter and a pxi 7350 motion controller integrated within.
    my problem however is that i want to be able to control my motors via the umi7772 interface but cannot seem to find the correct symbols on the labview software to utilise them, i would like to use labview to create a program that will turn the stepper and evaluate what is on the dmm and then turn accordingly this is way above my level on labview currently but if anyone has any ideas then any information is greatly appreciated.
    cheers
    james

    Hello Jamest6, 
    I have found some useful documentation that will help you get started with you 7350 and LabVIEW. 
    First of all here is a community example that you can take a look at. It is possible to download the example itself from the bottom of the page.
    Read Analog Input (AI) values from NI-Motion device 73xx : https://decibel.ni.com/content/docs/DOC-5617
    Then you can access these knowledge base articles for some more guidance : 
    How Do I Use the Digital Input/Output Lines on my 7330, 7340, or 7350 Motion Controller Card? : http://digital.ni.com/public.nsf/allkb/2D238C3BF101620C862573A60081BFFE?OpenDocument
    How do I control the analog ouputs from an NI PCI motion controller in Measurement & Automation Explorer?: http://digital.ni.com/public.nsf/allkb/04B940903BDD987C862579320083C6FF?OpenDocument
    Also using these manuals for both prducts will be of help to you : 
    NI 7330/7340/7350 Motion Controllers and
    P7000 Series Stepper Drives: 
    http://www.ni.com/pdf/manuals/372324d.pdf
    NI UMI-7774/7772 : http://www.ni.com/pdf/manuals/373359c.pdf
    Another great source for looking at or using example VIs is the  LabVIEW's Example Finder.  Go to Help » Find Examples... When that window pops ups, double-click Toolkits & Modules in the folder list, then double-click NI Motion Assistant.  I'm guessing the "Straight Line Move.vi" or "Blended Move.vi" would be most helpful to you, but you could read the descriptions of each example listed for a little bit more information about what the examples are doing.
    Hope these are useful! 

  • 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

  • How do I control serial power using LabView?

    I need to use LabView to alter the voltage coming from the serial port. Is it as easy as writing to the serial port? I know that if you write to the serial port that it'll produce a binary number, does this binary number correspond to a voltage.

    If you want to create a scalable voltage value coming from the serial port you must have a Dig -> Analog conversion circuit.
    If your goal is to vary a voltage from 1 - 10 vdc, then you must create:
    1) a an external circuit that will convert/buffer digital serial interfaced binary values to analog values (ni makes these things)
    2) labview code that transfers info to serial port. (driver/etc)
    hope that helps!
    did that answer your question?
    Chances are if you have seen VI in the forest it hasn't fallen.

  • NVIDIA control (Shadowplay mostly) with LabVIEW via ActiveX - Does anyone have documentation?

    Hi Everyone,
    I'm looking to capture my monitor video at around 30fps. ShadowPlay works well with my graphics card, and I've found that there is an ActiveX Library on the PC. The attached screenshot shows an example code for 5 seconds of capture. 
    Shadowplay only captures one monitor but I want it to capture both, or make two videos (one for each monitor) preferably. Although a possible work around would be recording one at a time but being able to programatically change between the two. The Shadowplay library is: ShadowPlayServerLib and the NVIDIA Library is: NVI2Lib (I presume this is NVIDIA but could be wrong)
    I can't find any documentation on the activeX commands so I'm struggling to know what inputs and outputs of the property nodes should be. Does anyone have any? A search of the internet brings up my own forum post on NVIDIAs website: 
    https://forums.geforce.com/default/topic/805560/geforce-experience/shadowplay-activex-documentation-...
    Any help on the NVIDIA/ShadowPlay side of things would be great, alternatively any ideas for capturing video at 30fps (I tried to use .NET to capture the screen shots to png files but it only managed 2.5fps without saving them)
    Many thanks
    Attachments:
    NVI class.png ‏27 KB
    shadowplayActiveX.png ‏32 KB
    ShadowPlayCapture.vi ‏12 KB

    Hi Woody247,
    Here is brief overview to help using LabVIEW with ActiveX:
    http://www.ni.com/white-paper/2983/en/
    Here is an interesting example that could be useful to your application's functionality 
    https://decibel.ni.com/content/docs/DOC-41144
    Regards,
    Mark 
    Applications Engineer Intern
    National Instruments UK and Ireland

  • Control Step Motor in LabVIEW via Step Motor Driver

    I am looking to control a Step Motor (P/N 4023-828) with a Si5580 Driver, both from Applied Motion Products, with a LabView VI.  Applied Motion provides a simple utility program which accepts SCL commands to drive the motor and recieve information about the motor from the driver via a serial connection.
    Preferably, the LabVIEW VI would have an input field, and a running list of output responses.  I am kind of a novice with LabVIEW, but I know how to create simple VIs.  Any reference to tutorials which explain setting up this type of control would also be appreciated.
    Thank you

    Hello Spike22283,
    From your description, if the driver you received from Applied Motion
    Products is a DLL and you know the API for the driver (the inputs and
    outputs for the functions defined in the DLL), then you can use a Call
    Library Function Node in LabVIEW to get the set up you desire.
    In particular, you would first configure the Call Library Function Node
    to call the particular function in the DLL.  Then wire a string
    control into the Call Library Function Node, which would be the input
    command to drive your motor. Then depending on the data type of the
    return value of your DLL function, you can wire an string indicator to
    the output of the Call Library Function Node and see the output
    responses.
    As a reference, I would suggest looking at the shipping example Call DLL.VI (Help >> Find Examples >> Search for "DLL"). 
    This example VI allows you to browse examples of external code (C and
    C++) data types and how they interface with LabVIEW. Each data type has
    an example VI that demonstates the use of the Call Library Function
    Node. To open the example VI for a particular data type, select that
    data type from the list on the left and then press the "Open Example VI
    for Current Data Type" button. The function prototype, the function's
    source code, and any specific details about this example will appear in
    the External Code Information cluster.
    Hope that helps.
    Wendy L
    LabWindows/CVI Developer Newsletter - ni.com/cvinews

  • Control Micromaste​r Using Labview

    Hello
    I am trying to integrate the control of Micromaster 430 into an aplication in Labview.
    I use "Starter" and "Drivemonitor" with the RS232 serial cable directly to control the micromaster, but I want to control it with Labview.
    Does anybody know a library in LabView to control the micromaster?
    I have see the USS parameters, but I am not sure that I can adjust the paramerts of the speed.
    Thanks

    Hi
    Yes, Micromaster 430 is a Siemens device. The problem is not making the serial communication; the difficulty is that the communication is carried out under the USS protocol.
    I have some information about the USS protocol, but it is a communication binary data of variable size. I don’t understand entirely the structure of this protocol.
    So I seek help, albeit in another language such as C
    Thanks

  • Can I control PIC programmer using LabVIEW

    Can I program a PIC microcontroller entirely in Labview Environment using a commercial PIC Programmer?
    Could everyone give me any advices? Thank you

    Here is a link to another post asking the same questions.
    Here

  • When I place a 'write to measuremen​t file' express I get an 'Error in prop page constructi​on: Control Label: Streaming' Using Labview 8 on XP. Any ideas?

    When I place express 'write to measurement file'  I get an error
     'Error in prop page construction:
    Control Label: Streaming
    Couldn't find control/constant on the instance.'
    Help!!!!!
    Please.
    Regards
    Derek

    The error happens as soon as I place the symbol.  The symbol is there and the properties are all accessible, but will not run.
     I enclose word doc with error messages on.
    Many thanks in anticipation
    Derek
    Attachments:
    LabviewA.doc ‏86 KB

  • Interfacing Zigbee with Labview VIA RS232

    Hello all! I have a question that might be pretty simple. I am currently a student and am just getting into LabView for a senior project that I have to do with a team. We've run into a bit of a problem though. We can't get the Zigbee that is plugged into the RS232 board to be seen by MAX, and since we can't get it to show up in MAX I have a feeling we're not going to be able to get it into the VI.
    Does anyone know how to get the information that's coming in via the Zigbee to be placed into a blank VI?
    Thanks in advance!  

    I'm sorry for taking so long to get back to you on this but my team kind of gave up on this project for a little and have come back to it only to find that we've hit the same roadblock and can't figure this out at all.
    Let me try and explain what our project is doing so that hopefully it'll be easier for you to help me. We're going to be pulling brain waves off of a person those waves are going to be stuffed into an ATD that is built into the MC9S12 microcontroller. From there the output of the microcontroller is going to go into pin two on the Zigbee. All of this is completely devoid of a computer. Then on the laptop's side we're going to have a Zigbee plugged in to the RS232 chip and it's going to be picking this data up. I'm trying to get this data into LabView and then display the brain waves onto a waveform graph. The main issue right now is getting the digital data into LabView somehow. I mean the Zigbee is plugged in via USB (on the RS232), but I don't know what I need to use to get it into my program.
    I've checked the resources on the Learning Center and perhaps I'm just blind but I cannot find anything on there that pertains to my question and none of the online courses I've seen have anything on VISA programming with the Zigbee module if that's actually what I need to do.
    Furthermore, after we figure out how to get the Zigbee into LabView my team is going to have to figure out how to split the three signals that are being broadcasted to be split and sampled at different times.
    Got a feeling my team and I might have bit off way more we can chew right about now. :/ 

  • EMG based DC motor control using labview

    I have a project where i need to use my EMG data to control DC motor
    using labview.I've already got the EMG signal by using ADinstrument and
    import the signal to labview. The problem is i don't know how to connect
    the signal with DC motor. This motor will start to move when it detect
    the signal exceed certain value and stop when it less that value. I'm
    still new with labview and i'm using labview 8.0. Can someone help
    me?thanx

    Please check out our Biomedical User Group - there are similar project discussions going on there and links to the NI Biomedical Starter Kit - a free download for doing biomedical data acquisition, signal processing, and other tasks.
    Steve
    Visit the NI Biomedical User Group at:
    www.ni.com/biomedusers

Maybe you are looking for

  • BizTalk Map: Grouping CRM Response XML based on the ID field in Custom XSLT

    Hi, I will receive a CRM response as below.  <ns0:RetrieveMultipleResponse xmlns:ns0="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:ns2="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns3="http://schemas.microsoft.

  • Navigating tabs in Safari

    I would like to say goodbye to Firefox now and start using only Safari. However there's one function that does not seem to work in Safari which I've been using a lot in Firefox. Navigating the tabs with keybord shortcuts Cmd+1/2/3/4/5 and so on to ch

  • EPMA File Generator not working on ASO database

    Greetings, a colleague of mine is having trouble using file generator in EPMA on an ASO database with MDX formulas. He is getting an error, unrecognized application type Essbase (ASO). He used on 11.1.1.3 and, 11.1.2.2. I know there was a defect in 1

  • Should I by a new MacBook Pro

    I have a MacBook Pro it is about six years old. I recently tried to update Itunes and I could not becasue the OS is outdated its OS X 10.5.8 . Also I noticed that the battery is not keeping a good charge like it used to. So I was wondering should I l

  • Error Item Category 04000 not allowed in accounting transaction 0300/0001

    When we are posting a Incoming payment document with debit to -bank charges refund and bank account ,got the error Item Category 04000 not allowed in accounting transaction 0300/0001. Please advice. Edited by: mysap query on Feb 24, 2009 2:56 AM