ASCII protocol & Labview 7.1 + PCI-2323/8

Greetings, I'm trying to do a simple command and response with labview 7.1 adn a varian multigauge that accepts ASCII Protocol. For now, I would be happy just to get a response back from the instrument. I'm not sure that I'm setting the program up correctly ( see attachment). I'm not getting a response to dat, so I was hoping that someone could give me some feedback.
Here is the data on the multigauge comms. Varian Multi-Gauge Controller accepts RS-232 communication in ASCII protocol:
Baud is selectable (9600 is selected)
Parity is selectable (none is selected)
unit address is selectable ( aa is selected)
All LOWER-CASE characters are placeholders and the command format is:
# {address} {command} {data} {carriage return}
The response is:
{ data} {carriage return}
Example: sending command to read software version is: #aa05t
aa = 2 character hex bus address.
05 = 2 character hex byte value.
t = message terminator character (#13, charage return character).
response is: hhhht, where software version is hh.hh
hh = 2 character hex value
t = message terminator
I also included a manual of the multigauge + generic VISA. Any help would be appreciated.
Scott
Attachments:
rs232talk.zip ‏2286 KB

When you post something like this, you should enter data into the controls and then go to Operate>Make Current Values Default. As it is, no one knows what command you're sending and whether it has the right syntax. You should also include VISA Configure Serial Port to set baud rate, etc. Make sure these settings match what the instrument is set to. Page L-15 of the manual includes some advice that I always recomend. That's to use the built-in windows terminal emulation program Hyperterminal, before doing any custom programming. Do this first and make sure your cable and com port settings are correct. When you do get that working and get back to LabVIEW, wire the error out of VISA Write to the error in of VISA read and wire your error cluster indicator to the error out of VISA Read. Without doing that, you'll never know if VISA Read is giving you an error.

Similar Messages

  • 2.7 year experiance in labview, DAQ, PXI, PCI seeking job

    chennai based
    2.7 year experiance in labview, DAQ, PXI, PCI seeking job
    Attachments:
    sen 3.doc ‏81 KB

    Thanks for your help,
    I've finally got rid of the errors, but when i run the VI while using the potentiometer, i'm not getting any readings on the graphs (on the front panel). I've checked for errors but cannot find any...
    Any help is appreciated,
    Thanks
    p.s. i've attached the VI so you can see what i mean...
    Attachments:
    Pitch Analysis1.vi ‏321 KB

  • HELP: CONVERSION FROM ASCII TO LABVIEW

    I am degitiging 4 chanels biomedical data by POWERLAB. I can save that
    file into ASCII format or POWERLAB format. Recently I am using a
    software to analyzed those data that need a file like labview format or
    HP Vee FORMAT. I DO NOT KNOW THE TYPE OF THOSE FILE. How do I convert
    that TEXT file into LABVIEW FILE? If any body is interested to help me,
    I can send sample data file.
    Thanks in advance.
    Shamsuzzaman
    Mayo Clinic
    Rochester, MN
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    [email protected] wrote:
    >
    > I am degitiging 4 chanels biomedical data by POWERLAB. I can save that
    > file into ASCII format or POWERLAB format. Recently I am using a
    > software to analyzed those data that need a file like labview format or
    > HP Vee FORMAT. I DO NOT KNOW THE TYPE OF THOSE FILE. How do I convert
    > that TEXT file into LABVIEW FILE? If any body is interested to help me,
    > I can send sample data file.
    >
    > Thanks in advance.
    >
    > Shamsuzzaman
    > Mayo Clinic
    > Rochester, MN
    >
    > Sent via Deja.com http://www.deja.com/
    > Before you buy.
    Shamsuzzaman,
    There is no standard LabVIEW format for your file. LabVIEW can read any
    kind of file of known structure. Please explain more about your problem.
    Basically you can read your text file into LabVIEW direct
    ly. Most likely
    POWERLAB stores data into tab-delimited format and you can read it
    without any problems and hope there is no special format in it.
    Send to me your file.
    Sergey Krasnishov,
    Automated Control Systems
    National Instruments Alliance Member
    Moscow, Russia
    [email protected]

  • Comment mettre en place mon système(table xy,LabVIEW 7.1,PCI-7344 et le TL78 )?

    Je suis un nouvel utilisateur de le système Motion Control(table xy, TL78, PCI-7344, Windows2000 et LabVIEW 7.1 ).
    Je voudrais contrôler les table xy(MC)à partir de Labview.
    J'ai télécharger Motion Assistant et des programmes de test et de contrôle.
    Lorsque j'essai "program demo".
    Modal Error indique une erreur 70137
    si je lance "Test single axis" alors il m'indique l'erreur 70129 pourtant
    ma configuration de l'axe est "enable".
    Je n'arrive pas à paramètrer le système, malgré mes recherches sur le site de NI.
    Je ne comprends pas comment exporter les signaux sous Labview.
    je suis perdu!!!
    Que dois-je faire??

    Bonjour Neo,
    Pour bien comprendre comment configurer votre système, ci-dessous le "User Manual" de la carte PCI-7344 :
    http://digital.ni.com/manuals.nsf/websearch/B9EBDE089990585986256A29005C5228?opendocument
    Les erreurs que vous avez reçues sont typiquement des erreurs de configuration. Pour les corriger :
    http://digital.ni.com/public.nsf/websearch/80E248BAE0267A4286256A0F00039331?OpenDocument
    Pour votre programme de contrôle de table xy, veuillez bien lire les documents ci-dessous :
    http://zone.ni.com/devzone/conceptd.nsf/webmain/45BBF7386CF123BC862567F200671EC5?opendocument
    http://forums.ni.com/ni/board/message?board.id=240&message.id=1332&requireLogin=False
    Je reste à votre disposition.
    Cordialement,
    Sanaa T
    National Instruments France
    Sanaa T.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> http://www.nidays.fr/images/081110_ban_nidays09_468X60.gif

  • Labview programming for pci cards

    Hi all, 
    I need to write a program  in labview that communicates with a pci dio 96 card.
    I need to set a bit to 1 (0th port and 5th bit) periodically..
    how can I communicate with the pci card from the labview..
    is there any driver that we can use for this..
    Thanks,
    Vijay 

    vijay shankar wrote:
    Thanks Dennis,
    Actually I dont think I have any drivers installed.. Because, I used the tap test interface in MAX to find that I have to trigger the 5th line of 0th port of a pci dio 96 card to trigger my device.
     I have downloaded and installed Daqmx that suits my labview version and started exploring the options.
    Now, I am struggling hard to figure out how to change my requirement that I have mentioned above into an actual program in labview.
    All I have is a pci dio 96 card installed, labview 8.2 and daqmx that supports my labview version. I have to make one of the lines to 1 and 0 alternatively.
    Can anyone point to a tutorial or some discussion that could help me kick start.
    Thank you,
    VJ 
    Search in the examples\DAQmx\Digital folder inside your LabVIEW installation. There are several examples that should give you enough hints at how to go about that. And if you ever get at other problems there are many many more directories in that example folder. :
    And an example finder to help you look for the right examples can be found in the Help menu.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • I search a driver for modbus ascii in labview 6.i

    i have some problems with the termination characters. cr lf.. because my device not respond

    Hi,
    You can find a ModBus driver using ASCII (and RTU) transmission mode at this URL :
    http://www.saphir.fr/SAPHIRnet/Admin/home.htm
    There is downloadable exe demo. It can help you to test your communication.
    Olivier JOURDAN
    SAPHIR | Certified LabVIEW Architect | Topaze on NI Community | LabVIEW add-ons on NI Community | Follow me on Twitter

  • LabView con Ethernet IP (Industrial Protocol)

    Buenos días, una pregunta:
    Quiero conectar algunas electroválvulas remotas que trabajan con Ethernet IP (Ethernet Industrial Protocol), ¿LabView puede trabajar con este protocolo?.
    Solved!
    Go to Solution.

    The correct discussion forum for this

  • Using LabVIEW to control an object in Blender/ importing an object from Blender and controlling it in LabVIEW

    Hi, 
    I'm just trying to start a new aspect to my project whereby I would control a 3D graphic of a human character using inertial and magnetic sensors. 
    2 potential options I am considering are to create the character in blender, import it to labview (.stl, .dae or any other suggestions?) and control it from there using my 3D orientation algorithms. Has anybody done anything like this?
    OR
    Export the 3D orientation data to blender perhaps using UDP sockets or any other suggested technique anybody has(?) and then control the orientation of the bones of a 'rigged' character.
    So basically if anybody has any experience of controlling a 3D graphic with LabVIEW data all help would be appreciated, better again if it was using Blender! Thanks in advance 

    Looks like an interesting project. I don't have experience with either of your suggestions, but I think the second one is more practical. My understanding is that the 3D display in LV isn't that great (although I don't have actual experience with it). The only modification I would make is to use TCP instead of UDP, which seems to make a lot more sense.
    I'm assuming there should be quite a few examples online for how to write Python code in Blender to receive external commands and translate them to something in your blender scene (movement, in your case) and then you simply have to write the corresponding code on the LV side and make sure the protocols match. I would suggest you create a simple ASCII protocol. One thing to note about TCP protocols is that it's useful to have the beginning of the message encode the length of the rest of the message (let's say the first 4 bytes to encode a U32 number). That way, you read N bytes for the length and then know exactly how many bytes you have to read for the rest of the message.
    Try to take over the world!

  • Communication protocols for RS485

    Is it physically possible to use classical RS232 port on my computer for RS485 communication ?
    Also, does anyone knows about MODBUS or WEST ASCII protocols for RS485, and operation with LabView ?

    Not directly. RS-485 is a differential bus whereas RS-232 is a single-ended bus. The physical transceivers for RS-232 and RS-485 are different, and thus are not configurable. There are some off-the-shelf convertors that go between RS-485 and RS-232. Which model you need will depend on the features you're looking for: connectors, max baud rate, surge protection, power source, isolation, etc."
    A similar question on Developer Zone: "Can I use RS-485 port as RS-232?"

  • NI pci 6251 position control

    Hi
    Im new to this forum and new to Labview and NI pci 6251 as well ;(
    I'm using NI-PCI-6251 (DC Motor ) with Labview to control the position of a DC motor  we developed the program that reads the encoder and display the position of the DC motor shaft
    but the problem is that the counter 0 (cnt0) always increases whether the disc rotating clockwise or anticlockwise??!! and when the desired position is reached the controller does nothing to stop the motor ?
    i don't know what is the problem or why its happening.

    Hi,
    I am also doing something similar.
    The problem is the motor is the DC motor from Quanser. (DCMCT).
    I know the encoder channel of the motor is ctr0 and when I test from "Measurement and Automation Explorer" (Labview>>Tools) I can only read the PFI8 channel.
    The motor read 4096 pulses per revolution and no reading is available from PFI10. As per Quanser the motor should be about to do position control. I have seen lab tutorials for position control in internet.
     I tested both the vi is mentioned above. The "Example" vi reads the motor position in terms of pulses. But when I rotate the motor in the other direction the count increment not decrement.
    Also the quadratureencoderMseries vi did not read the angle position when I set the channel values.
    I have attached the parameters that I set.
    Can any one please check..
    Thanks.
    Attachments:
    encoder issue.JPG ‏357 KB

  • I have got a 1500 Kinetic Systems CAMAC crate and 3922 controller. I want to use it with LabView inst

    alled in PCI-bus IBM PC, which does not have GPIB interface. Which way would be easier for developing my own instrument driver: a new GPIB controller + interface or 2915 Kinetic Sys. PCI-bus in-slot interface? Can the latter interface be used with LabView?
    Many thanks.
    Victor. I have got a 1500 Kinetic Systems CAMAC crate and 3932 controller. I want to use it with LabView installed in PCI-bus IBM PC, which does not have GPIB interface. Which way would be easier for developing my own instrument driver: a new GPIB controller + interface or 2915 Kinetic Sys. PCI-bus in-slot interface? Thanks

    alled in PCI-bus IBM PC, which does not have GPIB interface. Which way would be easier for developing my own instrument driver: a new GPIB controller + interface or 2915 Kinetic Sys. PCI-bus in-slot interface? Can the latter interface be used with LabView?Victor,
    I couldn't find an Instrument Driver for the 3932 crate controler. There is a driver for the 3988: http://zone.ni.com/idnet97.nsf/9b2b33e1993d877786256436006ec498/045f8392cc4d1b01862568ab005fbb49?OpenDocument
    If you look at the driver it isn't too complex. Well ... actaully there are certain differences when using the 3988 GPIB controller that the driver takes care of that relate to correctly passing commands (FAN).
    If the 3922 controller is similar then maybe you can use the 3988 driver and modify it to meet your needs. I'm not familar with the 2915 Kinetic system so I'm not sure what would be easier.
    If you have a GPIB board, then you could try using the 3988 driver with your 3922 controller and see if you can modify the driver to get things to work.
    I
    've only used the 3988 and that was quite three years ago but it might be worth a try.
    Best of luck,
    Kamran - NI

  • My accelerometer outputs a charge proportional to the acceleration to which the accelerometer is subjected to.Can the labview output the waveform in voltage?if not how can i overcome the problem ?

    Im am using a labview RT with PCI-7030 DAQ board and a CB-68LP .This is urgent.can somebody please help?

    I suggest you consult the manifactuer of the devices to see if they sell or can recomend signal conditioning gear to output a voltage or a current.
    Generally speaking, the charge can be measured by using a capacitor (where V=Q/C) but the leakage current that is introduced when monitoring the voltage across the cap will adversly affect the measurements.
    I have designed circuits to do this but it quite un-orthodox.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How do I get LabView to communicate with HP4142B, using GPIB?

    I have a PCI-GPIB card from NI and running Labview 6.1 under Windows 2000.
    I have trouble to communicate with a HP4142B.
    Every time I send a GPIB-command to the 4142B I get an EABO error. The instrument seems to receive the command
    but does not give any answer. There may be some trouble with the EOS character but I don't know how to correct it. Communication with other instuments (i.e. HP34401A) works without this problem together with LabView.
    I have also tried to send commands with the NI-488.2 program but the EABO error remains.
    First I thougth that HP4142B has got a HW error but then I sucessfully used a program called "HP VEE".
    The instument then worked without any trouble so there must be someth
    ing else that is incorrect.
    It is important for me to get the HP4142B to work with LabView and the PCI-GPIB card so I hope you can help me solve my problem!
    Jon Alfredsson
    M.Sc.EE, Ph.D student
    Mid Sweden University

    Hello John,
    This sounds like a classic case of missing termination characters. The termination characters should be specified in the instrument's user manual. HP VEE is probably adding certain termination characters by default. Common termination characters are a carriage return, a linefeed, or both. In LabVIEW you can easily add termination characters to a string by right clicking on it, selecting / codes display, typing in a /r or /n at the end of the string. Alternatively, if you are using the regular 488.2 VIs (not VISA), you can specify different modes on the write commands. Each mode corresponds to the termination methods/characters that will be appended to the command. See the LabVIEW detailed help on the GPIB write VI for more information.
    Regards,
    Ra
    y K
    NI Applications Engineer
    Ray K
    NI Applications Engineer

  • PCI-DIO-96 on Windows 7 64 bit

    I was running Labview 8.5.1 with a PCI DIO-96 card on a PC using Windows XP Professional. The PCI DIO-96 driver was a Traditional DAQ Legacy 7.4.4. The PC died and was replaced with a PC using Windows 7 64 bit. I loaded Labview ok, the PCI GPIB card seems communicates ok. I tried loading TDAQ750 but it appears it only supports Windows 7 32 bit. I also tried NIDAQ951F2 with no luck. Any suggestions to getting the PCI DIO-96 going before i ask our IT to load Windows 7 32 bit? At this point i don't know if Windows 7 32 bit will work.

    Try using the DAQmx drivers instead of the Traditional DAQ.  It is a much better API anyways.  If DAQmx doesn't support that card, go with the PCI-6509.  It is a very good card and I'm pretty sure it can be a drop-in replacement.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Connect PCI-6602 to relay

    Hello,
    I am absolutely new to Labview and the PCI-6602 card. What I would like to do is to use Labview to control a relay through the PCI-6602 DAQ card. I am of course using the CB-68LP connector block to make the hardware connection.
    Since I want to control a relay with a 0-5V TTL signal to open and close, I guess I am supposed to send a digital signal to the DIO lines on the PCI-6602. However, could someone explain to me if there is an example VI that can do this?
    Moreover, what are the pin numbers on the CB-68LP connector block where the actual digital signal will come from? This is not clear from the manual.  I would first like to measure it on a voltmeter before connecting an actual relay to it.
    Eventually, there will be three relays connected and each of them will in turn be controlling a solenoid valve. In some cases, two of the relays should open at the same time while the third one is closed. At other times, only one relay will open.
    I appreciate your feedback in advance.
    thank you.

    Hi,
    I have attached a modified version of the example which only outputs on one line. Notice the change at DAQmx Read.vi. The output will remain high if you stop the program.
    Please clarify if you have further questions.
    Pelle S
    District Sales Manager
    National Instruments Sweden
    Attachments:
    Write Dig Chan1line.vi ‏28 KB

Maybe you are looking for

  • How do I import all my songs from my external hard drive?

    Earlier I backed up my iTunes library by copying to an external hard drive. I want to make sure that importing my library to my new computer is seamless. Thank you

  • Error reporting time spend in modules

    Using Captivate 3. Captivate is sending time to LMS as 0.00 or 0.01. Quiz results, score, complete/incomplete information is reporting correctly. I have tried variations of the publishing settings with no change in results. Any ideas?

  • Hold down dock icon - show windows

    With Snow Leopard, I used to be able to hold down an icon on the dock (where multiple windows were open for the same app), and it would show all of the various pieces of that app I had open.  With Lion you have to click and select open all Windows Ex

  • Installing j2sdk1.3.1_02 on Solaris2.7

    Hi, friends, I installed j2sdk1.3.1_02 on Solaris2.7. But when I run JVM, I got the following error: Error: failed /usr/j2se/jre/lib/sparc/client/libjvm.so, because ld.so.1: /usr/bin/ ../java/bin/../bin/sparc/native_threads/java: fatal: libCrun.so.1:

  • Dreamweaver CS4 strange issues happening

    Suddenly when I do a find and replace and I do a carriage return in the replace portion of the find/replace window to make my edit go to an extra line, the carriage return occurs behind it on the page I'm editing. It doesn't add a <p> tag in the docu