Working with VISA resources in Labview 6

I am having difficulties programming through VISA in Labview 6.0.2. I have installed MAX 3.2, and have configured my two devices going through USB:
1) an Agilent 82357A USBtoGPIB adapter connected with an Agilent 53131A Universal Counter
2) a USBtoRS422 converter registered as serial COM4 connected with a Rainin Peristaltic pump
I can open communication with both devices from within MAX, and send/receive data with no problem.
When I try to program in Labview 6, I cannot communicate with either VISA device, even though I am using VISA instrument IO vi's with the configured VISA resource name from MAX. I'm not sure what I'm doing wrong.
Is there an incompatability between MAX 3.2 and Labview 6.0.2, or have I configured something wrong?
Thank you for the assistance.

Hello,
I think we can defeat the problem with Device 1 fairly quickly. If you have established that you can communicate with the device in MAX, I think we simply have a small programmatic change to make in LabVIEW. I am interested in having you attempt using the VI I have attached, which allows you to specify the bytes you would like to send in an array, and then simply sends the corresponding the string of ascii characters (the characters corresponding to the values in the array); this way we can be sure to send exactly what we would like. The following link has an ascii table in it, which you can use as a reference when putting the values into the array: (where the first byte specified will be the first character in the string)
http://www.ni.com/pdf/manuals/371253a.pdf
Simply change the VISA resource name to reflect your device and give it a try.
As for Device 2, let's try using the same VI (attached) and write a command which the device is known to understand. A simply query would be approprite, where you can write using the attached VI, and then read using another VI which literally only has a VISA Read function in it (and a resource control or constant connected with your resource specified).
One thing to verify before reposting is whether the devices you have use EOS (end of string) and/or EOI (end or identify) termination of GPIB operations. For EOS, a character is sought by the listener to indicate the end of a transmitted string, such as a linefeed or carriage return (or both). EOI termination is defined by the talker asserting the EOI line when the last byte to be transmitted is sent; the listener knows it has received the last byte of that transmission.
Definitely repost; it is likely that we are only few programmatic changes and perhaps a spec check (for the devices) away from dependable communication
Thank you,
JLS
Best,
JLS
Sixclear
Attachments:
WriteByteArray.vi ‏14 KB

Similar Messages

  • No VISA Resources in Labview but all present in MAX

    Hi,
    I am unable to find any VISA resources from LabVIEW, however, all NI hardware is available and working in MAX. I have just installed a PCI-8433/2 as well as a NI PCI-8512 CAN/HS Card. As part of the installation I believe MAX was upgraded to version 4.6.2. I will attach the max configuration report for those who are interested. I am working with LabView 8.2. I also uninstalled an agilent GPIB card and as a result the NI-GPIB card is the sole controller and is GPIB0... instead of the agilent card.
    I have had a similar problem before that was a result of a corrupted database, but I was unable to find this problem on the forums this time and I am not getting any errors. Just an empty VISA Resource control.
    Any suggestions would be greatly appreciated.
    Nate
    MAX Configuration Report
    12/27/2010 1:35:05 PM
    MAX Summary
    My System
    Data Neighborhood
    CAN Channels
    NI-DAQmx Tasks
    V1P1V2P2
    V3P3
    Devices and Interfaces
    GPIB0 (PCI-GPIB)
    Instrument0
    Instrument1
    Instrument2
    Instrument3
    Instrument4
    Instrument5
    Miscellaneous VISA Resources
    GPIB0::INTFC
    GPIB0::16::INSTR
    GPIB0::2::INSTR
    GPIB0::22::INSTR
    GPIB0::7::INSTR
    GPIB0::10::INSTR
    GPIB0::27::INSTR
    GPIB0::3::INSTR
    Network Devices
    NI-DAQmx Devices
    NI USB-9481: "Dev2"
    NI USB-9481: "Dev1"
    NI-XNET Devices
    NI PCI-8512 CAN/HS
    CAN1
    CAN2
    PCI-8433/2
    Port1
    Port2
    PXI System (Unidentified)
    Serial & Parallel
    COM1
    COM6
    COM9
    LPT1
    Scales
    Software
    IVI Compliance Package 3.3
    LabVIEW 8.2
    LabVIEW Run-Time 7.1
    LabVIEW Run-Time 8.0.1
    LabVIEW Run-Time 8.2.1
    LabVIEW Run-Time 8.5.1
    LabVIEW Run-Time 8.6.1
    LabWindows/CVI Run-Time 9.0
    Measurement & Automation Explorer 4.6.2
    Measurement Studio for VS2005
    DotNET
    Common
    NI LabVIEW SignalExpress 3.0
    NI Spy 2.7.1
    NI-488.2 2.46
    NI-CAN 2.7
    NI-DAQmx 8.7.2
    NI-PAL 2.5.3
    NI-Serial 3.6
    NI-USI 1.0.2
    NI-VISA 4.6.2
    NiVisaServer.exe
    NIvisaic.exe
    NI-VISA Runtime 4.6.2
    NI-XNET 1.1
    IVI Drivers
    Advanced
    Instrument Driver Software Modules
    Simulation Driver Software Modules
    Simulation Driver Sessions
    Driver Sessions
    Logical Names
    -Nate
    Solved!
    Go to Solution.

    Now that IS odd.
    Can you show a couple screen shots from MAX?
    First expand the software tab and post a png of the screenshot (I'm not yet convinced you do not have SOME driver issue)
    Next select MAX>TOOLS>NI VISA>VISA Options- Wait for the new screen then expand Mysystem General settings and select Aliases.
    You could also try "Clear all aliases" from there and reboot.
    Jeff

  • How use USB with VISA resource name?

    Hi, 
    I'm new at LabVIEW and I'm working on a code that has to acquire data from a measurement device.This device only has a USB output so I have to work with it. As far as know the block that is used to refer a external port is VISA resource name. I have installed a driver that recognizes the serial ports, and they appear in the list of VISA resource file at front panel. So I figured that installing the product's USB driver so the USB's ports would appear. I installed and nothing of USB ports. I don't know it is that simple or working with USB ports is a little bit harder. I've tried a lot of things and nothing worked so here I am.
    PS: I have noticed that the driver's version is 64 bits (my pc is 64 bits)  and my LabVIEW version is 32 bits, so could that be the problem?
    The device by the way is Digital Analyzer WT500, Yokogawa.
    Thank you.
    Solved!
    Go to Solution.

    Victor,
    the suggestion of Instrument Driver is to make more easy using the instrument. 
    Normally, you should install a windows drive from manufacturer (if it isn't installed, the instrument will appear like a pendrive in device manager) and the NI VISA. But for some instruments, the manufacturers have API's that uses NI VISA to communicate with your equipments.
    So check if your instrument appear correctly in device manager (as indicated by Yokogawa). If not, check if Yokogawa has an appropriated driver for this instrument and install it. 
    Is it clear?
    If you prefer, contact NI Brazil Support by website or by phone (11)3149-3149 Ext 3.
    Ricardo Ramos
    Engenheiro de Vendas - Sul
    National Instruments Brasil

  • Need guidance for working with the available example labview VI

    Hello,
    I'm working with the pulse signals and the pulse signals will be effected by the motion artifacts.There is similar thread available on labview here  Adaptive filtering to cancel out noise from an pulse signal  for removing the motion artifacts from pulse signals.so,I am planning to use the vi posted in the thread as LMS block by block(example) with sampling rate of 100Hz and number of samples needed=100 using DAQPad-6015/6016.
    But I am confused with the channels of DAQ as the author(who bulit this vi) says the channel0 for signal and channel1 for reference signal as shown  in the attached image.
    1)If channel1(aio) of DAQ is feeded with the analog input of pulse signals then what is the input needed/feeded to the channle1 of DAQ.
    2)Can I directly use the vi by changing the sampling rate of 100hz and number of samples=100 or anything else is needed for this requirement.
    Can someone explain me the required input to the channels and settings with the DAQ. thanks.
    Attachments:
    LMS_example.JPG ‏127 KB

    Hello,
    can someone explain how the DAQ channels settings are to be done.
    thanks.

  • Why havent they updated the software to work with vis

    Ive got a xfi fatality and cant install ANY of the great software which makes the card what it is.. I cant believe creative havent be on the front foot with this!
    Now my card is pretty much useless, yeah i got the drivers but so what..all those nice tweaks and stuff i cant use!! pi$$ed off

    The answer is yes it will work with every driver and audio consoleincluding and after the 2.3.000 release. The upax package is basedaround?a driver dated the 6//07 this driver has its own audio console. This driver?I believe is?without a doubt an unreleased beta. If you use laterdrivers you may find a bug when using the speaker tab in the game modeconsole but apart from than that there is nothing else I can find. The coder has worked on the 6/0/07 driver itself without a doubt to iron outbugs in the game mode probably caused by Vista incompatability, its a neat job. The THX?console has had a rework and actually looks better than the old THXconsole which always looked oddly out of place anyway. I suspect the gamemode bug could be fixed?if the 05/03/07 driver could be?reworked?by the samecoder. There is substantial?directory and file structure differences between the Creativeversion and the upac so it is not just a simple fix the guy has really done a good job. The upac works best with the 6/0/07 driver but if you can handle a small bug in thegame mode console then there is no reason not to use a later driver.
    Message Edited by Alexiussooty on 03--200708:44 PM

  • Interested in working with an experience​d LabVIEW Developer?

    Look no further! I'm based in Southern California, but I have a global reach. We can use whatever project management (Basecamp) tool that you are comfortable with, or we can use plain email communication if that is your preference. The point is that I value flexibility and will work with your company to satisfy your organization's needs. I prefer small projects that are challenging, and have well defined specifications or requirements. If your requirements are not well defined and you need assistance with that we can work that into the contract.
    Please see my LinkedIn resume for further details about my credentials. I thank you in advance for your consideration.
    Otman Estrada
    Message Edited by Otman on 07-26-2009 03:12 PM
    Message Edited by Otman on 07-26-2009 03:18 PM

    Sorry, the position has been filled and I should have informed everyone sooner.
    --MS

  • Anyone worked with activex controls within labview

    I am working on an new project and the instrument has an activex/Dcom control. Any ideas on how to work with this in my laview (8) environment?

    Sounds like you are having a control which can be embedded.
    You can create an empty ActiveX container on the front panel (Container palette). Rightclick it and select "Insert ActiveX Object" and browse for your control. If you did not register it, you will have to switch to "Create Object From File" and browse for the ocx/dll-file.
    The rest is standard ActiveX interfacing using property/invoke nodes.
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Nomad Jukebox Zen Xtra: Need help getting it to work with Vis

    Does anyone know if the Zen Xtra will work with Windows Vista 32-bit's? I have tried installing the software that came with my MP3 player on my laptop that runs with Vista and it just doesn't work. Are there new drivers that I need? Please help!

    i just found another, easier way to make you zen xtra work with windows vista
    go to the support page and download the oldest driver, i think it's version .30 or somehting like that
    install that- it should prompt you to overwrite a newer version of the driver, if it does, say ok
    vista might then ask you if it installed correctly, say no, and run the installation in compatibility mode
    then download the oldest version of nomad explorer, and install that
    instead of using the preset instalation directory, select browse
    i'm not sure if this has any effect, but i think some of the folders are renamed for vista
    when the installation is finished, select "restart my computer now"
    if you wait, it may not work properly
    this should get nomad explorer running properly with vista
    if you don't like this program and prefer creative media source organizer, you can now transfer your music to your harddri've and update your firmwar, without having to worry about external storage, a dual boot system, or any of those messy options

  • Sync write with Visa 2.6/LabVIEW 6i

    I setup a vi with 2 parallel paths; one sends 100 bytes at 300 baud to COM 2, and the other 100 bytes at 9600 baud on COM 3. The path for 9600 baud should complete before the 300 baud path, but no matter what setting I select for VISA write (sync/async), the 2 paths will not run separately.
    What am I doing wrong?

    LabVIEW-man:
    You're not doing anything wrong, at least not based on what you've said here. Asynchronous Serial VISA writes aren't really completely implemented in NI-VISA 2.x but we're working on a better implementation for our next version (NI-VISA 3.0). Fortunately, there are a couple of possible solutions (workarounds) for you in the meantime.
    1) Put each VISA Serial write in a separate VI in a separate LV execution system. You can set this in the VI properties. LV will then call each VISA Serial write from a different thread. This is not the most elegant solution because it requires you to redo parts of your code.
    2) Assuming this is Win32, go into MAX and choose Tools>>NI-VISA>>VISA Options. Change the Minimum Async Transfer field from 102
    4 (the default) to something lower like 64. NI-VISA will then perform the Serial writes in separate threads even though LabVIEW makes all VISA calls to viWriteAsync from the same thread.
    Regardless of your platform, you should probably call VISA Set Buffer Size with mask 32 (I/O output buffer) and set it to a non-zero value. The default is 0, which tells VISA to not return from a VISA Write (sync or async) until all data bytes have been sent from the OS to the UART. In this way it is equivalent to other buses (such as GPIB) and if you are doing a query then you can immediately start your VISA Read operation. If you set the output buffer to a non-zero value (the exact value really isn't important because most OS's ignore it), then VISA will let its Serial write operations potentially return sooner. You should then call VISA Flush Buffer with mask 32 to guarantee that the data has been sent. This last part will likely *not* change in 3.0 because most users prefer knowing that th
    e data has been completely sent.
    Hope this helps,
    Dan Mondrik
    Senior Software Engineer, NI-VISA
    National Instruments

  • How To: Get Your Creative Zen Working With Vis

    I am an owner of the now outdated Zen 20gb HD0005. Upgraded to Vista Business recently and have not been able to get the player working, the installation cd wouldnt work and neither would the updates at uk.creative.com There is a way! Go to http://us.creative.com/support/downl...ame=Windows+XP (from the US Creative download archi'ves), download the driver to your desktop or where ever. The driver is originally for XP, however, once it is downloaded right click the setup file and select properties. In the new window go to the Compatibility tab and select: Compatible with Windows XP Service Pack 2And, at the bottom, check that the box next to 'Run As An Administrator' is also ticked. Click Apply and then OK and run the setup. It should now (at 67% through the installation) update drivers (this may seem to hang, please be patient!) and then will ask you to reconnect your player. Unplug it, click ok, then plug it in at the end of installation, go to my computer and you should hopefully see that your Zen is under 'Other Devices' I hope this is help to some of you with the same problems as I had!

    it seems that it now detects the player but wont run in organiser, only in Explorer. Only thing i can think of is burning songs to disc and then adding them to comp again, unless anyone else has any suggestions?

  • Vision builder AI 2011 incompatib​le with Vis created by Labview 2011 ?

    Hi,
    I have some issues to drive some motor by a Vi created under Labview 2011 using an inspection built under vision builder AI 2011
    The step for running  a Labview Vi said me that it only support 2010 VIs or earlier ? How two NI softwares 2011 can be incompatible ?
    So I try to save under a old version but this vi is part of a huge LLB...Is it possible to save this LLB as a 2010 version without saving all subvis .ctl etc.. ? I am a little confused...
    Thank you for your help

    You should be able to save the top level VI for previous to LV 2010, and all VIs from that LLB will also be saved to a LV 2010 version LLB that can be used by VBAI. There is a restriction that any VIs from a toolkit that you have to pay for (i.e. Vision), even if they are in your LLB will not be saved for previous, but driver VIs (i.e. Motion, DAQ, NI-IMAQ) if they are in your LLB will be saved in the resulting LV 2010 LLB.
    I realize this isn't ideal and VBAI will be supporting LV 2011 or a future version later. Another option will be to use the VBAI API in LV 2011 to have VBAI do just the image processing portion of your control system and do Motion, or other functionality in LV environment and control VBAI from LV using the VBAI API (this allows you to load inspections, run them, get images, and results, etc.), which does support LV 2011.
    Hope this helps,
    Brad

  • Speakers don't work with Vis

    I have a set of four/fi've including woofer 4. FPS 000 FourPoint Surround. Yes, I know that they are old (2002) but they work fine in with my previous system, XP. Purchased a new Dell with Vista and only two of the four work now. Dell says to toss them, they are outdated. Is there some kind of patch or something I can download as I hate to get rid of good speakers I have two plugs, a black/green. There are two ports on the back of the tower, black/green. Whichever is plugged into the green port, I have sound from those two speakers only, white noise from the plug plugged into the black. When I configured my speaker setup on this computer, I can hear all four they way that I should. Once I put in an audio/dvd, sound only from whichever two are plugged into the green port and white noise from that which is plugged into the black port.
    Any thoughts would be most appreciated...

    Hey Adam,
    Dell spent several hours, three differnt times in "Screen Sharing" trying to configure the speakers through the control panel In the control panel, they all work fine. As soon as you play an audio/dvd, it then goes to sound only at of the plug plugged into the green port and hissing (white noise) out of the plug plugged into the black port. Dell told me finally that my speakers are not compatible with Vista as I did not experience this problem when I had them hooked up to my previous system, XP. I am pretty sure my previous system had Sound Blaster card, my new Dell has what I told you, the "Integrated 7. Channel Audio."
    What I don't understand though and Dell really could not answer this either is why when the speakers are plugged in, both plugs plugged, why is it that they work fine when configured in the control panel but then as soon as I insert an audio/dvd, it returns just to the two plugged into the green port

  • Have you worked with ICCP Protocol and LabVIEW?

    I was reading about ICCP for SCADA systems, a network protocol for real-time data managing. Does it exist any tool for LAbVIEW and this protocol? Is it possible to use DataSocket instead?

    Andreas you are right. I contact a Trados re-seller and this is what he said finally.
    Please find the response from SDL’s technical team on your requests.
    I believe I have encountered a query of this nature a few years back. Oracle Corp. apparently developed a product that facilitates the translation of some of their Oracle Forms products, and I believe it was engineered to integrate with or leverage the TMs and/or Termbases of a now legacy version of Trados. The last time this came up, I was unable to get sufficient information about the Oracle application to determine which version of Trados was required, but if they are looking for .mtw file type support, then I believe MultiTerm 5 was the last version to use that extension.
    Clearly the Oracle Translation Hub has not been updated to maintain compatibility with our more recent technology, and therefore I suspect that the prospect here is out of luck.
    It seems that you could not buy TM server as the last version using .mtw extension is multiterm 5 which is now obsolete. (and Oracle has not maintain compatibility with SDL)
    I would suggest to take the following course of actions:
    1. Ask Oracle which version of TM they were using to integrate with Oracle Translation Hub. (was it multiterm 5?)
    2. To improve your translation process, you could still apply SDL translation technology by purchasing Trados and TM server. Could you check what format you could export the Oracle forms to a file and then translate the document by referring to a centralized TM server?
    3. What would be the desire automation?
    Do you have any idea which version of TM they were using?

  • Filter Express VI - How to make it work with single samples? (LabVIEW 8)

    Hi there,
    I'm trying to update some older code by implementing some sort of FFT.  Currently, my program acquires X data points, averages them, and spits out the Mean value into a graph (Signal as a function of wavelength) (Spectrofluorimeter).  This is done a number of times with the instrument moving to a different wavelength between each sample scan. I've tried to incorporate the Filter Express VI but it does not seem to be doing what I'd like it to.  I have it wired to my Signal Acquisition Express VI with the Filter set to Low-pass 100 Hz with the result being passed through the "Mean" VI and then graphed with the Build XY Graph Express VI.
    When I graph the Power Spectrum, I am seeing that the maximum observable frequency is always 1/50th my sampling rate (regardless of my low/high/bandpass settings).  For example: my # of samples is set to 100, and my sampling rate is 8000 and I observe a maximum frequency of 160 Hz.  If my # of samples is set to 100 and my sampling rate to 6000, the maximum frequency is 120 Hz.  If I try the Filter Express VI with very basic wiring and just hook up a battery to it, I see all sorts of frequencies all the way up to my sampling rate divided by 2 (i.e. 8000 -> 4000 Hz) so this seems very strange to me.
    I'm not sure what is causing this and perhaps its a limitation of the Filter Express VI and I'm supposed to filter using a different method?  I was thinking that perhaps I would need to store all of the dynamic data and then wire it to the Filter Express VI once the entire scan was completed and filter that way but I'm not sure how to save or buffer this dynamic data.
    I'm hoping this is a common problem and someone would be so kind as to offer me any suggestions!
    Thank you for your help!

    I think I should clarify that these aren't necessarily "Single Samples".  I take X number of samples at a specific wavelength, filter that, then take X number of samples at a different wavelength, filter that, and the goal is to have a frequency filtered data set at the end.

  • Has Creative released Driver that works with Vis

    I have Creative Soundblaster Audigy 2Z and am running Vista. After installing, uninstalling, and reinstalling the "updated" drivers for Vista more times than I care to remember in March, April and May, I'm wondering if Creative has gotten a handle on this. I'm now running KXproject, but would like to use the soundcard that I paid for. Any info would be appreciated.

    I am aware that they have released updated drivers. I was hoping that someone knew that they actually worked.

Maybe you are looking for

  • Fx TimeCode In Premiere CS5.5 - Non Linear Evolution (Jumps Every 24 Frames) ?

    Hi, Can anyone please provide some feedback on an issue I am having with an fx TimeCode that I have placed in a video clip of a sporting event? I have set the TimeCode to SMPTE format with the source set as either "Cip" or "Generate" and the TimeCode

  • Is there a way to wipe an iphone remotely, phone is lost

    how do i wipe all info from an iphone remotely, phone was lost

  • Command line set of retention?

    Greetings. I'm in a situation in which several thousand users are spread across about 12 POs. I have to manually verify that many of these users are flagged for retention using the MA GWarchive product. Right now, I have to do this via the GUI in Con

  • Upgrading to windows 8 on my cx420

    Hi all! I checked it with the Upgrade Assistant (the one you could download form the Windows 8 Homepage), and it said that my laptop is compatible with Windows 8 Pro, and I tried it. But I can no longer use my ATI Graphics card. When I click the hotk

  • JDBC to XML

    Hi all, I am new to java development. I,last, used the .NET for software development. Now, I got a problems of retriving the ResultSet with XML format. For .NET is ok. It retrives the data with DataSet Type. The DataSet itself is XML format. So, we d