Using VI Clear in LabView 7.0

Hello,
we programmed a software with LabView 6.1 which uses the serial port over VISA 2.0.0.
Now we have LabView 7.0 with VISA 3.0.1 and the problem that the VI "VISA Clear" has a deviant behavior as before.
The serial communication don`t work now, if we use the "VISA Clear". Does anybody know if there is anything modified in this VI between VISA 2.0.0 and VISA 3.0.1.
We found nothing. Can i use any other VISA VI to "simulate" the VISA Clear?
Thanks and best Regards
P.Frank

Patrick:
Yes the behavior changed between NI-VISA 2.6.x and 3.0.x. This was due to a change in the VISA specification. Shame on us for not putting anything about this change into the NI-VISA readme file.
Old behavior: If the I/O protocol attribute was 'normal' (default), then viClear would just return an error. If the I/O protocol attribute was '488.2 strings', then viClear would send "*CLS\n" to the instrument. This was wrong because IEEE-488.2 defines "*CLS\n" to mean something different from "selected device clear", which is what this operation is intended to do (think of GPIB).
New behavior: viClear will first flush (discard) the low-level serial input and output buffers. It will then send a serial break. This is consistent with an IEE
E spec whose number I can't remember, but it defines a serial equivalent for 488.2 communications - in other words, a serial break should cause a device clear. The viClear operation no longer sends "*CLS\n".
Again, sorry for not mentioning this change in the documentation. We've tried to make the operation as close as possible to the industry standards, and no one I talked to at NI or anyone else in VXIplug&play or IVI thought this change would be a big problem. So I hope you can find a good solution to your problem.
Dan Mondrik
National Instruments

Similar Messages

  • How do we use if statement in labview?moreover can i use if statement inside for loop?

    how do we use if statement in labview?moreover can i use if statement inside for loop?

    The if statement in LabVIEW is the Case structure. You can find that on the Structures palette right next to the For Loop. If you're still on the same subject about terminating a for loop early, then what you do is enclose your functions inside the loop with a case statment and make one of the case's empty except for one or more constants that you might have to wire. Hopefully, the attached picture will explain what I mean. Also, as I mentioned in one of your other posts, I think this technique is not as good as using a while loop. The array in the attached example is the same size no matter what and you may have to handle stripping extra or invalid elements.
    Attachments:
    For_Loop_with_Case.jpg ‏21 KB

  • Why we use different clearing account for GR/IR and planned cost clearing a

    My client ask for using same account for GR/IR account and all planned cost clearing account.
    i try to convince it should be different accounts but he needs a logical answer.
    Why we use different clearing account for GR/IR and planned cost clearing accounts?

    Dear friend.
    u just tell him while doing GR it will debited n  while doing IR it should get credited.hence we  need to take diff G/L account or same account.
    regds
    nasir

  • How to implement a dual booting PXI system using windows 7 and labview RT

    Good Day
    My name is Mariano Ocana from the University of Manitoba, and I want to implement a dual system using windows 7 and labview RT in a PXIe-1082 chassis with a PXIe-8102 embedded controlled (the chassis came with windows 7 installed). What are the steps to use both systems (windows and RT)  in the same chassis?, in the NI help comes an example implementing a dual system using windows xp and RT, it is the same procedure?.
    Thank you in advance for all your help.
    Regards
    M. Ocana

    Greetings, Mariano.
    The real issue you have to contend with is whether or not you have a LabVIEW RT license.  If the 8102 controller was purchased Windows-Only, you likely do not have a license to run LabVIEW RT on the controller - you can purchase one, I think it's about $500, and at that point you can request a LabVIEW RT Configuration CD (that's not what it's called, but the sales guy will know what I'm talking about).  The Config CD is a CD that will partition your controller correctly with both FAT32 and NTFS filesystems (in the appropriate way) to allow you to run Windows 7 and LabVIEW Real-Time on the controller correctly.  Once done, you can then switch within the BIOS between LabVIEW Real-Time and Windows in order to dual-boot.  
    Either way, you likely need to contact NI sales to either purchase an RT license (if one was not received at the time of purchase) or to request a Configuration CD (it might also be called a dual-boot install CD or similar).
    -Danny

  • Transaction Codes used for clearing Open Items

    Hi Gurus,
    I want to know all the T.Codes used for clearing normal transactions and Open Items. Please tell me when to use which code (viz., while clearing vendors, customers, WH Tax, etc)
    Your earliest reply will be of great help. and naturally i will award you
    Thank you

    Hi,
    F-03     Clear G/L Account
    F-04     Post with Clearing
    F-30     Post with Clearing
    F-32     Clear Customer
    F-39     Clear Customer Down Payment
    F-44     Clear Vendor
    F-51     Post with Clearing
    F-54     Clear Vendor Down Payment
    F-91     Asset Acquis. Posted w/Clearing Acct
    F.13     Automatic Clearing without Currency
    F.19     G/L: Goods/Invoice Received Clearing
    F13E     Automatic Clearing With Currency
    F13L     Autom. Clearing Spec. to Ledger Grp
    Regards,
    Eli

  • Getting the data in file using DAQ assistant in Labview

    I am using SCXI 1000 chassis, SCXI 1125 input module and SCXI 1320
    terminal.
    I am using DAQ assistant in labview to obtain temperatures and store it in
    a file. The experiments run the whole day and I need the whole data
    generated during this time to be stored in a single file, but I am unable
    to store it in a single file.
    Can someone please give me some insight as to how can I achieve this?

    Hi Mr,
    It would be helpful to see your code to see exactly how you are acquiring the data. Are you doing continuous buffered measurements? Or are you performing single point temperature measurements in a while loop?
    Either way you will want to use the "write to spreadsheet" VI in your loop. Simply wire your data into the "write to spreadsheet" vi and se the "append to file" input to TRUE. This will make the data add on to the end of the file with each iteration of the loop. The "write to spreadsheet" VI is located in the file IO pallette in LabVIEW.
    Thanks,
    Sal

  • Build a DLL in LabVIEW & Use the DLL in LabVIEW

    I am trying to build a DLL for the simple vi with LabVIEW and want to use the DLL in LabVIEW. is it impossible?
    I wrote a vi and it have 2 terminals. one is the input for numeric dbl data type and one another is the output for numeric dbl 1D array data type.
    It was built with the Application builder for LabVIEW 8.0 and DLL was created successfully.
    I want to use this DLL in new vi with LabVIEW.
    Call library function used. I wrote a new vi to use that DLL.
    In config dialog I config each parameter for dll and connected terminals. but it doesn't work
    pleas refer to the attatched file and let me know what I missed.
    Attachments:
    Array1D.zip ‏60 KB

    At first I kept scratching my head wondering why someone would want to do this. Create a DLL in LabVIEW to call it from LabVIEW. Seems redundant. But, perhaps it's an exercise or perhaps it's for testing the DLL...
    In any event, calling the DLL worked for me in 8.2. How are you configuring your Call LIbrary Function node? I have it set up as follows:
    return type: void
    iteration: Numeric, Signed 32-bit Integer, pass by value
    array1D2: array type, Signed 32-bit Integer, 1 dimension, "Array Data Pointer" format
    len: Numeric, Signed 32-bit Integer, pass by value
    Then I called the DLL like this:
    Message Edited by smercurio_fc on 03-16-2007 12:57 PM
    Attachments:
    Example_BD.png ‏2 KB

  • How to generate a chirp(linear FM) signal using dds theory in LabVIEW FPGA.

    how to generate a chirp(linear FM) signal using dds theory in LabVIEW FPGA.
    attachment:a sine signal using dds theory. Hope to get some help. Thanks!
    Attachments:
    FPGA DDS SineGen IP.vi ‏42 KB

    you need to increment the "accumulator increment" during the duration of the chirp.  the "accumulator increment" controls the frequency of the DDS cycle.  by increasing it's value, you are increasing the frequency.  the math for increment values follows the same math as determining the frequency to increment value.
    Stu McFarlane
    Viewpoint Systems, Inc.

  • I just purchased a MacBook Pro and I can not use my Clear broadband.

    I just purchased a Mac pro book and I can not use my Clear broadband. A message pops up saying the operating system is running in 64 bit mode . Please switch to 32 bit mode.  How do I swich the mode and will this cause problems. There must be other MacBook Pro operators that use Clear broadband as their internet connection.

    Never heard of them but I Googled and took a look. Seems as if they offer either a USB modem or a 'home' modem - which do you have?
    If you're on a newer Mac (and I see that you are) and running Mountain Lion you cannot start up in a 32-bit kernel. I'm not sure if thise is directly related to the question, actually, as some applications will actually let you 'open' in 32-bit mode. If you're using an application that runs the modem software, try selecting it and doing a "Get Info" (Command-I) from the Finder and see if there is an option to "Open in 32-bit mode".
    Good luck,
    Clinton

  • How to use crystal reports in LabVIEW

    Hi, Can anybody tell me how t use crystal reports in LabVIEW. If any material if you will be very helpful.
    Regards,
    Rajashekar

    activeX

  • How can i use activeX Control in labview?

    how can i use activeX Control in labview?
    please describe me step by step.
    thanks.

    Well..that was quite helpful..but now I'm encountering certain problems. I've attached the VI I've made.
    I don't need sound at the moment so I dropped it. (Although I tried to play it..but all I could hear was a very annoying sound.) Secondly I don't want to display any date or time..so i dropped that property too.
    Now when I run this Vi...the webcam turns on, the screen of videocapx pops up..then the webcam light goes off..and another pop up appears saying..labview is not responding..and i have to close it reluctantly.
    I haven't placed the stop capture property in this vi. i checked it by placing it too..but that doesn't work.
    I would like to notify that my actual task is to acquire image and then compare it with another one already present on my pc. I want you to please help me out..solve my first query then I'll proceed with the latter part.
    Attachments:
    activexvideocaps.vi ‏20 KB

  • How to measure voltage changes using a NI-9219 with strain gauges and use the data in labview

    I am updating an old LabView/Data Acquisition system that uses strain gauges to measure two forces (normal and axial) as well as two moments (Pitch and Roll). I am having trouble reading the voltage changes over my strain gauges using my NI-9219 as well as filtering the data with both a lowpass and smoothing filter. The program attached has the project and should have all the sub-vi's used in the program. This program was written on LabView version 8.5 and is being updated to a 2013 version of LabView. Also, the hardware previously used was a combination of a NI SCB-68 and NI USB-6251. If anyone could help me it would be greatly appreciated! 
    Attachments:
    New SSWT.zip ‏751 KB

    Hi Coffeyfj, 
    Did you ever had this set up working? The first thing that I would do as I mentioned in the previous comment would be to use one of the LabVIEW examples. I recommended to you using the (strain - Continuous Input.vi). If you can read any voltage changes with the example vi, then we will know the problem we are having is in your code. If you cannot read any voltage changes using the example I mentioned, we can start trouble shooting the hardware connections. Are you connecting the excitation voltage? If yes, Are you making the right connections. Please refer to page 19 of the following document (half and full bridge modes)
    NI 9219 Operating Instructions and Specifications - February 2009
    http://digital.ni.com/manuals.nsf/websearch/4197ED4BD126E0B486257546005851CA
    Regards,
    William Fernandez
    Applications Engineer 
    National Instruments 

  • How can I use USB interface in Labview?

    Hi.
    Does labview allow to USB interface?
    I have been seen allowing GPIB and RS232.
    I'm beginer at Labview and wanna use USB interface for my target system and pc.
    I wanna know how to labview interfaces from target system to pc.
    And if Labview doesn't provide USB interface module, how can I use USB?
    Is using a USB at Labview hard to beginer?
    Plz, answer to my quetion.
    sorry, my English is very poor.
    thx for reading my article.

    You can access devices connected to the USB port, but not in the same way as you would a GPIB or RS232 device. There are no USB drivers like there is VISA for GPIB or serial. Rather devices that plug into the USB appear to the systen as some sort of standard resource like a printer, disk drive or IO board. LabVIEW then interacts with these devices as it would any other device of the same type.Look at it this way, if you have a USB daq device you will access it through MAX the same as if it were a plugin card. Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Can I use C code in labview?

    Hello, I've got a fairly complicated program I've written in C that
    requires two doubles to be passed to it and it spits out two integers
    as a result of a very detailed calculation. Is there a way to have
    labview call this C function? I've tried searching the NI.com website
    but all I could find were examples where labview was being compared to
    C in an attempt to show how they are equal. Any advice/links to
    relevant information or tutorials would be greatly appreciated.

    You have two possibilities:
    Compile your C code into a DLL and call it with "Call Library Function Node".
    Use the "Code Interface Node".
    The LabVIEW Bookshelf (under help) contains a PDF document name "Using external code in LabVIEW". It will probably answer all your questions. Good luck
    LabVIEW Champion . Do more with less code and in less time .

  • Can I use IF-RIO with LabVIEW 8.20

    I am going to upgrade my LabVIEW to 8.20 but I am not sure whether the driver of IF-RIO can work with it properly.
    Does anybody know this?

    Hi,
           My customer get problems when using PCI-5640R in LabVIEW 8.2, but they could work in LabVIEW 8.0. Is there any latest NI-5640R driver support LabVIEW 8.2? Or PCI-5640R only works in LabVIEW 8.0? 
    Operation system and environment:
    LV 8.2
    LV FPGA 8.2
    NI-5640R 1.1
    NI-RIO 2.1.3
    Display error message in LV 8.2 FPGA complier server.
    An internal software error has occurred. Please contact National Instruments
    technical support at ni.com/support with the following information:
    Error 1003 occurred at Open VI Reference in
    nirviGetModInfo___nirviEIOImplementation_modGen.vi​->nirviGetModInfo___nirviE
    IOImplementation_modGen.vi.ProxyCaller
    Possible reason(s):
    LabVIEW:  The VI is not executable. Most likely the VI is broken or one of
    its subVIs cannot be located.  Open the VI in LabVIEW using File>>Open and
    verify that it is runnable.
    VI Path: C:\Program Files\National Instruments\LabVIEW
    8.2\resource\RVI\StockIO\private\StockFPGA_io_modG​en\nirviGetModInfo_StockFP
    GA_io_modGen.vi
    Please refer the attached reproducable example code.
    Best Regards
    NITW AE
    Gary
    Attachments:
    UsingFilterCore.vi ‏550 KB
    filt20070509104003.zip ‏255 KB

Maybe you are looking for

  • Heating, Longer Startup issues after upgrading to Windows 8.1

    It has just been about 1.5 years I have purchased this laptop and the way it is behaving now is killing me. There was absolutely no problem while I was running Windows 8(which was my preloaded OS). But after I upgraded to Windows 8.1 I am facing nume

  • What is Remote Desktop Client Update v 3.8.2

    Why do I need Remote Desktop Client Update 3.8.2

  • Submit button: no response

    After I add my QT file and settings, and choose my destinations, I click Submit and nothing happens. No error, no crash, no compression. It's like it doesn't recognize the button as a trigger to start working. I hesitate to reinstall because I've nev

  • Folders in Business Area have lost their Owner

    I have several Business Areas that have folders which have lost their ‘Owner’. I need to update the Owner to ‘APPS’ in the business areas where the current owner is NULL. Can someone confirm that the only place I need to update the Owner for Discover

  • How do I limit a Zones use of memory

    Hello I have a number of non-global zones running, and I would like to prevent these zones from exhausting the SWAP thereby rendering every zone inoperable. I have activated rcapd to take care of the RSS part. Someone mentioned using process.max-addr