Using Instrument I/O Assistant

trying to use Instrument I/O Assistant with my rs232 connection but i dosnt pick up a respone from my device can anyone help!!

Everything is working fine with the coms. i have check it in termial. all i want to do is have it sit there and wait for the message when in get one send it of and wait for the next time. I have got it working to some extent but if it dont get a swip in the timeout time it errors the code. see attached
http://forums.ni.com/attachments/ni/170/246328/1/labview%20photo1.JPG
Message Edited by Ajb181 on 05-08-2007 10:11 PM
Attachments:
labview photo1.JPG ‏1452 KB

Similar Messages

  • Instrument I/O Assistant (sending command from labview to arduino)

    Hi,
    I am a beginner in Labview. I would like to control the intensity of AC loads using labview. In this case, i would prefer to use instrument I/O assistant. The instrument I/O assistant in labview will have to send a command to Arduino. The intensity will be controlling by using slider in labview. How to write the vi for this example? Please advice.

    feliciacpw92 wrote:
    Hi,
    I am a beginner in Labview. I would like to control the intensity of AC loads using labview. In this case, i would prefer to use instrument I/O assistant. The instrument I/O assistant in labview will have to send a command to Arduino. The intensity will be controlling by using slider in labview. How to write the vi for this example? Please advice.
    In the thread for your other post, you were told that LabVIEW installs by default example programs on how to use LabVIEW with serial port.
    Have you bothered looking at that?
    You need to do some work on your own.

  • Instrument I/O Assistant Crash

    I am using Instrument I/O Assistant to read data from a scale through a Serial->USB conversion, using LV2012 SP1 (I've also tried this on LV2010 with the same results).
    I configure the baud rate, parity bits etc, and that seems to work fine.  
    I add the "Read and Parse" step or a "Query and Parse" step, and then try to run the Instrument I/O Assistant.  The Instrument I/O Assistant window closes.  It doesn't throw an error, or a warning or anything.  
    Needless to say, the vi where I use the I/O Assistant does not run either.
    Any thoughts as to why this is happening?
    Attachments:
    Scale.vi ‏39 KB

    Personally, I think not having the assistant is not such a bad thing. What happens when you use the simple serial example? What sort of converter are you using (ftdi, etc.)? What os and version of VISA?

  • Instrument I/O Assistant blank

    I have been having problems getting a code to work. So, I purchased LabVIEW for Everyone (a book) to see if I could figure out how to get the code to run right.  (here is a link to that thread )
    I just redownloaded and installed NI-Visa. The book says to use Instrument I/O Assistant to configure a device (PmodsGPS in my case). When I insert the assistant, I get the a gray blank screen. (see below) what does this mean? Why do I not see any options to configure?

    Thanks Dennis.
    I believe the book recomends it to avoid having to use the write functions and PMTK code. It basically says to use it to make life simpler. This is a beginners book and it really doesn't get into Visa functions very much. I was hoping it would dive a little futher into them. 
    I still don't know why you had me close one string and then open another config file only have insert another write function. I know I'm lost, but I was hoping this might shed some light on the whole situation...

  • I want to communicate a RS485/2-wire device through COM1. I tried Instrument I/O Assistance to write to COM1(hex string with or without end bye:0D0A), something happened on the bus, but is not defirrential signal, and device didn't recognised them.

    I am new to LabView, so please bear with me...
    I tried to communicate with an RS485/2-wire device through COM1.  I used Instrument I/O Assistant (and Advanced/Basic Serial Write and Read examples) to write command (HEX string) to COM1,  
    tried writing HEX strings with and withour end bye (is 0D0A the correct end signal for HEX string?).  Both didn't get device's responce.  Looks like the device didn't recognize the command.
    I monitored the transmitted signals on the bus, they were not differential as supposed to be.....
    What is the possible reason to cause this? Please help...
    The hardware connection is OK, because I am able to communicate with the device through COM1 (with the same command) using different software application.

    How are you sending the hex? Is your string control set for hex display or normal? If it's set for normal, then if you send something like 'AD', then you aer sending the ASCII characters 'A' and 'D' and that's not the same thing. I don't believe the I/O assistant can send hex but you can modify the basic serial write and read to do so. Just right click on the string control and select 'Hex Display'. You can also enter the data in a numeric control (set for dex display) and use a type cast or an array of U8's and use the Byte Array to String function. Hex data usually doesn't use any kind of termination characters such as CR/LF.
    If communication is working with another app, then as you said, the hardware is okay and it's not a problem with differential signaling.

  • Instrument i/o assistance

    How can I use instrument i/o assistance for a current vs potential graphic using 2400 , a resistance and GPIB?

    duplicate post

  • Installation of Lab view 8.20, DAQ Assistant has disappeared & Instrument I/O Assistant cant be used

    After upgrading to Lab view 8.20 and on a 8.20 new install I
    notes’ that
    DAQ Assistant has disappeared from the tool pallet completely.
    Also that Instrument I/O Assistant cant be used or
    configured and produces an error
    “NI Measurement & Automation Explorer or the Instrument
    I/O Assistant is not correctly installed. Please install these from the Driver
    CD”
    I have checked both of these and all parts are fully installed
    and I cant fined what part of the Full version of Labview would course this
    problem.
    Would a completely new installation with default settings
    clear the problem, what has coursed these tools to be not avalible.

    Hi Trevor
    You need to load on the Drivers for DAQmx, if you have a CD you can load them on from there otherwise the link to download NIDAQmx 8.3 is:
    http://digital.ni.com/softlib.nsf/websearch/7feaee6a4b4aa836862571c00064e6ca
    There is a order in which you must load things on for everything to work correctly,
    LabVIEW --->> Modules & Toolkits --->> Drivers
    This should solve your issue
    YatinM
    NIUK

  • Can I use the instrument I/O assistant express vi to communicate with a USB connected instrument ?

    Can I use the instrument I/O assistant express vi to communicate with a USB connected instrument ? My PC is running Windows 2000 et Labview7 express.
    where can I get information or examples on the assistant and USB communication ?

    Yes you can - the Instrument I/O Assistant communicates with message-based instruments through VISA. VISA 3.0 supports USB instruments and VISA 3.0 is the version of VISA that installs with the Assistant.

  • How do I program Instrument I/O Assistant to read a variable in the input string?

    How do I program the Instrument I/O Assistant to read a variable in the input string? I can manually type in the string using the Instrument I/O Assistant using the "Write" or "Query" tools but I do not know how to send a variable input to the Instrument I/O Assistant so that variable can be used inside the "Write" string. For example, I have a power supply whose current I want to set to X Amps. I can type the command "PC10" to program the current to 10 Amps, however I want to be able to program it at any arbitrary current. How do I feed the value X into the code for this purpose?

    You can't. The assistant was designed to be a quick and dirty way to do some basic communication with an instrument. You can turn it into a VI (right click and select Open Front Panel) and modify it so that your write string is an input to the VI or use it as a template and create your own code with VISA Read and Write primatives.

  • How to send multiple commands throught the Instrument I/O Assistant

        I am using the Instrument I/O Assistant to set up an instrument driver.  I am only using two rs 232 commands. The way I have the Instrument I/O Assistant setup is: first I have a default instrument setup step then I use a write step with the first command, then I read and parse, then I do a write command again with the second command and finally I read and parse again.  All of this works fine inside the window but  when I run it in my program  only the first  command's response it outputed . The second command's response is not outputted it just sends a null. Can the Instrument I/O Assistant only handle one read and write, or is my logic wrong?
    Thanks for your help
    Ian

    Hi Ian,
    You should be able to perform multiple reads/writes with the Instrument IO Assistant.  What termination character are you using?  I have seen cases where different termination results in different parsing, which may explain why you're only receiving a null character on your second read.  Thanks!
    Regards,
    Anna M.
    National Instruments

  • Instrument I/O Assistant Help - Parsing Errors

    Hello All - 
    I am having trouble working with a TSI DustTrak DRX - which does not have its own driver so I had to make one.  At this point, all I want to do is send a command to the instrument and get an indicator to repeat what the output is.  So far no luck.
    1) I think my driver works. The instrument is connected via ethernet. The instrument has a static IP.  In MAX when I look under "Network -Devices" it appears there. "Validate" results in a successful connection. If I click on "Open VISA Test Panel/Input/Output" I am able to enter commands (e.g., rdmn\r returns the instrument number) and "Query" and the correct answer comes up. It should be noted that the number of bytes returned for different commands are different, and also that the measurement data is always of variable length, so I often get the "Timeout expired before operation completed" error.  For a simple read instrument number command, the number of bytes is predictable, but for the measurement data, it is not, unfortunately.
    2) When I put an "Instrument I/O assistant" on the block diagram of a new VI, and add a "Query and Parse" step with the same command (rdmn - no \r this time), I again get the expected value (or when I query the measurement, rmmeas, I get the expected output string). Again, it should be noted I get the "Timeout expired before operation completed.   VISA Status code : bfff0015" error. Once I close then reopen the Instrument I/O Assistant configuration window (though not before) I can parse the data, and the token appears as a potential output of the VI. Here I can declare the output as either String or Number.
    a) If I declare the output as a string and create a string idicator, an empty string is returned.
    b) If I declare the output as a number (it is "8533", so this should be OK), I get the following error (even without creating an indicator before running): "Error 1 occurred at Scan From String (arg 1) in Untitled 5:Instance:0->Untitled 5 Possible reason(s): LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @."  I know from MAX that the returned value is actuall 8 bytes: \r\n8533\r\n . So, there are no unallowed characters here. And there are no paths involved - no read/write.
    Some other info:
    1) If I send start or stop commands to the instrument in MAX or the Instrument IO Assistant, I can get the instrument to turn on/off as it should, so I'm clearly comunicating to the instrument correctly.
    2) I get the same behavior if I parse the returned measurement string  - \r\n385,0.013,0.014,0.015,0.020,0.035,\r\n from MAX - as a set of numbers (that is, with "Error 1 occurred at Scan From String (arg 1) in Untitled 5:Instance:0->Untitled 5 Possible reason(s): LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.")
    Any help would be appreciated!
    Thanks.

    Hi James -  Thank you very much.  I actually found the problem and was able to fix by changing how the output text was parsed - the \r\n in front and back was confusing it - and making sure that I flushed the read buffer after reading, just in case. I also had to modify so that the first character was read and discarded before reading (and using) the rest of the output string.
    Now for a rookie question:  I've got it set up as a working VI now - how do I declare which variables are inputs and outputs when I put it in another vi?
    Thanks.

  • Instrument I/O Assistant problems

    Hi,
    I am having trouble using the I/O assistant through my parallel port.  It is not writing to it.  The VI example, Parallel Port Read and Write Loop, works just fine.  Is there a way to use the I/O Assistant instead?
    Thanks,
    Ryan

    Hi Ryan,
    What sort of problems are you having?  You should be able to use the Instrument I/O Assistant to communicate through the parallel port.  This tutorial, Instrument Control in LabVIEW Tutorial, shows how to set up the I/O Assitant.  If that's not working properly, what errors are you seeing?  Have you run NI-Spy to see where those errors are occuring?  Are you sure that you are sending the correct termination?
    Let me know if you need any other help,
    Meghan
    Applications Engineer
    Message Edited by Meghan R on 07-10-2007 02:26 PM

  • Instrument I/O Assistant Task with Device Driver

    Hello All,
    I got some messag pop-up hint while using Tools»Create Instrument I/O Task in Labwindow/CVI.
    => "The feature requires the Instrument I/O Assistant.
    => Please install the Instrument I/O Assistant from the NI Device Drivers CD..
    I want to practive to create Instrument I/O Task.
    Is there any download entry on NI's web site for this?
    Much thanks,
    nonomiya

    Hi Nonomiya,
    You simply need to install the Instrument I/O assistant from the device
    driver CD that ships with CVI. It should allow you to use these tasks.
    As far as something that will act like the assistant and let you create
    those tasks in CVI without actually installing the Instrument I/O
    Assistant from the device driver CD, there's not much available.
    Hope this is helpful,
    Regards,
    Matt S.
    LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.

  • Instrument I/O Assistant with PXIe-1062Q

    Hello,
    I'm using a PXIe-1062Q with LabVIEW 2009 installed on it. In the Measurement & Automation Explorer the chassis is visible, as well as the two PXIe-6363 cards I built in. Even th self test of the 6363 works without any failures.
    My Problem is, that after if I insert an Instrument I/O Assistant 1.01 in LabVIEW, and click on Select an instrument, the two PXIe-6363 don't appear in the list. Only Com1 and LTP1 is listed.
    What shall I do? Thank you very much for your support!
    Kind regards, Michael
    Solved!
    Go to Solution.

    The 6363 is programmed with DAQmx functions. You would use the DAQ Assistant.

  • Instrument I/O Assistant and Graphing

    Does anyone know how to use data taken from an Instrument I/O Assistant Input and put it into the y values of a graph??  I'm having issues with this because it returns values like "v 0" and "v 256" but I need just the number value to get a graph to work.  Any advice would be very much appreciated.  Thanks in advance!
    Solved!
    Go to Solution.

    Hi Rach_77,
    In order to get rid of the "v ", you can use the String Subset Function and set the offset to 2.  This will take away the first two values and just give you the number.  From there, you will just have to convert the value to whatever type you would like.  I hope this helps!
    Kim W.
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Billing Status C in Sales Ord not getting reversed on creating Credit Memo?

    Dear SD Guru's I have a small query, i have such a scenario. I create sales order for a saleable service material from (01.02.08 to 29.02.08) through order type (ZOOH) Raise invoice in advance for 30 days on 01.02.08 through billing type (ZOIN) say 1

  • Condition table field order

    Hello folks, Is it important to list the fields in a condition table in the proper order ? I do not think so and like to clarify with you pls. regards Ravi

  • How can same vendor code be used for domestic & import purchases?

    Hi We have a vendor who was initially supplying domestic goods but now we are also going to import goods from him. The Client doesnt want two separate vendor codes since they cannot get composite balance for domestic as well as for imports under one

  • Attach email script to database update code

    I need to send a very simple email to a predetermined recipient when my Access database is updated. How do I attach an email script to it? Thanks.

  • Adding Multi-Window Slideshow

    I have four images on the home page of this site. I want each of these to be its own slide show independent of the other. Here is the page: http://test.worldwideflavorsllc.com This is my first website so please bear with me. I was referred to the fol