NI-VISA error string

Hello:

Is it support in the library of NI-VISA (4.6 and more) to get the string describing an error message returned by a function? NOR-DAQmx has this kind of facility, for example.

Thank you

-Ilya.

I found this:

ViStatus viStatusDesc (ViObject vi, ViStatus State, Bruno [desc])

The viStatusDesc() operation is used to retrieve a readable string user that describes this status code. If the string cannot be interpreted, the operation returns the warning VI_WARN_UNKNOWN_STATUS code. However, the output desc string is valid regardless of the return value of status.

-Ilya.

Tags: NI Hardware

Similar Questions

  • VISA error message

    I recently spent Dev Suite 2009 to 2010, and since then, I get a VISA error set up a Serial Port (Serial Instr) .vi after that property Serial Instr node is executed:

    VISA: (Hex 0xBFFF0011) insufficient location information or the device or resource is not present in the system. The resource refers to a USB port on one of our DUT, TXUSB. I know little about the VISA, but thought that it was set up in MAX and don't think that that would get changed during an upgrade. MAX is indeed the place to set up the names of these resources?

    Thank you

    JVH

    Dev suite is a set of several applications and drivers. What precisely do you have installed? If you upgraded your version of NI-VISA, you may need to update MAX. Do you not see the com ports it?

  • Express dialogue VI file modifies the error string

    Hello

    today I got a strange error message form the express VI of the file dialog box (with the name of the new folder dialog box):

    1055 error has occurred in the new folder dialog box-> check if the directory exists.vi-> configure the directory path.vi-> load PS config-> program.vi Triax file.vi

    Possible reasons:

    LabVIEW: Object Reference is not valid.

    After some research, I discovered, that VI is not the source of the error, it has just changed the information received from the error in terminal.

    Is this a known problem in Labview 2011? I have not found anything.

    The expressway screws work is that they generate a real VI that will be executed whenever you change the configuration and that VI is saved as part of the VI call. You can watch the VI generated by VI right-clicking and selecting Open the front panel, which will be asked if you want to convert. If you do this and look inside the real VI she calls, you will see that it performs an unconditional call for a VI that modifies the error string. I would say this call should probably not do if it the error was true, then I would call it a bug.

    In practice, I'd say the best option is to call the primitive file of dialogue yourself or call errors to merge and put the initial mistake of wire on top or wrap all express VI into a case of error structure.

  • Upgrade of the CVI / Win: now receive VISA error: insufficient location information...

    Hi all

    I am faced with the following question:

    We replaced our old computer laboratory with a new model and took the opportunity to also move to a more recent operating system (from Win XP to Win 7 64 bit) and to the current version of the CVI (2013 SP2) and its runtime of all device drivers (2014 versions of VISA's most recent...).

    One of our data acquisition software (written several years in CVI 2009, 32-bit) now at startup displays an error message:

    VISA error: information about the inadequate location or the device or resource is not present in the system.

    Unfortunately, for me this information is detailed enough: we have six tips of NOR, even, we used before. MAX indicates all the boards, if at first glance it is not so obvious to me what to learn from this error message, or how to continue...

    Any advice is welcome

    After you open a support request our kind local support informed me today that there is a known issue, CAR 242354, supposed to be fixed in VISA 15.

    Kudos to him

  • Adding new SCSI controller: "error string: invalid operation for the '0' device.»

    Hello

    I have a problem when I try to add a SCSI controller to a virtual machine.

    I have this error:

    Error string: invalid operation for the device '0'.

    Lack of details: InvalidDeviceOperation

    Here is my code:

    my $info = Description-> new (label = > summary of "" SCSI controller 2 ' = > 'LSI Logic parallel' ");

    my $controller = VirtualLsiLogicController-> new)

    deviceInfo = > $info,

    scsiCtlrUnitNumber = > '7'.

    sharedBus = > VirtualSCSISharing-> new ('noSharing'),

    busNumber = >-1,

    key = >-1,

    backup = > $backing_info,

    controllerKey = > 100,

    );

    My $devspec = VirtualDeviceConfigSpec-> new (operation = > VirtualDeviceConfigSpecOperation-> new ('add'),)

    device = > $controller,

    fileOperation = > VirtualDeviceConfigSpecFileOperation-> new ('create').

    );

    My $vmspec = VirtualMachineConfigSpec-> new (deviceChange = > [$devspec]);

    {eval

    $vm_view-> ReconfigVM (spec = > $vmspec);

    Util::trace (0, "Controller has been created. \n") ;

    };

    I don't know how to handle, or even how to solve problems.

    Any ideas would be greatly appreciated.

    Kind regards

    Jeremy

    I finally found a solution.

    It seems that it fails if you give a marked as mandatory parameter (scsiCtlrUnitNumber, hotAddRemove)... Theses parameters seem to be set automatically, a dump of the device which will show.

    Here's the code used:

    My = $controller_spec

    VirtualDeviceConfigSpec-> new (device-online VirtualLsiLogicController-> new (key-online 0

    device-online [0],

    busNumber => $scsi_controller.

    sharedBus => VirtualSCSISharing-> new ('noSharing')),

    operation => VirtualDeviceConfigSpecOperation-> new ('Add'));

    My $vmspec = VirtualMachineConfigSpec-> new (deviceChange-online [$controller_spec]);

    {eval

    $vm_view-> ReconfigVM (spec-online $vmspec);

    };

  • trying to deform stabilize 4 k images and then reduce to 1080 p before exporting it but error "string stabilizer requires clip dimensions to match sequence settings try nesting.

    I have a 8 min long 4 k sequence where all the video clips are the same size k 4. I can warp stabilize just fun but when I go on change settings for the sequence to 1080 p and then right click on each clip to scale to the framework I get error "string stabilizer requires clip dimensions to match sequence settings try nesting" the reason why I want to warp stabilize the 4 k images rather than 1080 p images is because with 4 k I have a budget of high culture, I can get away with before I got to the bottom of the scale, string stabilizer settings I use are in the jpg I have attached. I tried visualization of nesting videos online and I can't find what I need. As the now the only viable option I must deform stabilize 4 k and export under 4 k and then open a new project and import the stabilized 4 k images exported and reduce the sequence to 1080 p. I'll do that if I have to, but it will take a lot of time coding without a doubt. Any help is greatly appreciated.warp.jpg

    If the images do not match the sequence settings and you want to use the chain, you'll nest.

  • literal error string not ending whenever firefox opens a page.

    Every time firefox opens a new page, the error appears. He said: error Javascript at the top of the window for error - and the error is 'incomplete string literal. It is very annoying, some pages have several instances of the error window popping up above the other. I rebooted, no change program. I'm ready to give up and go to the Chrome (which has no error)

    This problem may be caused by an extension that is not working properly.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.

    If it works in Mode safe mode and normal mode with all extensions (Firefox/tools > Modules > Extensions) off and then try to find which extension is the cause by allowing an extension at a time until the problem reappears.

    Close and restart Firefox after each change via "Firefox > Exit ' (Windows: Firefox/file > quit;) Mac: Firefox > quit Firefox. Linux: Firefox/file > exit)

  • VIsa error code: 1073807195

    I have set up a debug for coding environment. I use c# mode for remote debugging. The program running on my laptop and camera and GPIB Board are on another machine. When my code (laptop) run this sentence: mbSession = (MessageBasedSession (ResourceManager.GetLocalManager(":GPIB0:16:INSTR"). There is a mistake: the interface type is valid, but the number of specified interface is not configured.  VISA-1073807195 (0xBFFF00A5), ErrorInterfaceNumberNotConfigured error code. But I can't find the instrument by NIMAX (on another machine). So I guess I have to use my laptop to install the device control and GPIB card directly. Am I wrong? Now the problem is that my laptop can't install a GPIB card and I have to use this mode for remote debugging. How can I do? does anyone have experience?

    Hardware solution: use a USB-HS-GPIB adapter

    Software solution: try "VISA of distance." See How can I check my VISA from another computer device?

  • VISA: Error-1073807252 (0xBFFF006C in hexadecimal)

    Get following VISA reading in a series base error message write and Read.vi:

    Error-1073807252 (0xBFFF006C in hexadecimal)

    Possibble reason (s):

    VISA: (Hex 0xBFFF006C0 an overrun error occurred during the transfer.) A character not read in the material before the arrival of the next character.

    Had a look on the forum, but could not get a clear answer on how to solve this problem.

    I did not explicitly define the IO buffer size front and applies default 4096. I've now increased the size of the buffer using the size of the buffer IO set VISA sub - VI and it solved my problem. Not sure why I have not encountered this problem before.

  • After repeated close features, I still get the VISA error "the resource is valid, but the VISA cannot access to this.

    I'm currently building an application on a device cDAQ, which involves the use of a scale. The scale uses the RS232 communication, but is connected to an RS-232 adapter / USB and plugged into one of the USB ports on the cDAQ (COM 10). I am contacting the scale using the basic functions of VISA: VISA Open > VISA Read > clear VISA > VISA family. I created an application using the scale that worked correctly, but now whenever I try to access the scale - whether through MAX, a VI or a version rebuilt in the same application - I get the error "the resource is valid, but VISA can not currently access."

    The scale has three options for data transmission: "No. Data Output" "data output continues" and "Normal output when you press the Print button. I have it set to "data output continues, I don't know if this information is useful.

    The c-data acquisition is a NEITHER cDAQ-9138

    I have tried several things to get rid of this error:

    -Restart the cDAQ

    -Functions "Close VISA" running repeatedly on COM Port

    -Completely unplugged and powered off the coast of the scale

    -Connect the scale on a different COM Port

    -Repeatedly in the course of execution 'unblock port' VISA functions on COM Port, as a colleague has suggested that perhaps the problem

    None of them have worked.

    Does anyone have any suggestions of reliably, get rid of this error?

    I have attached a vi showing how I try to read from the device. Any help would be appreciated.

    A colleague of the Department of electrical engineering of the company has solved the problem. The scale has a material defect that will constantly try to communicate with a VISA session, even if the session is closed for a long time on the computer. Essentially, the VISA session on the scale does not, stop even if she ends up on the computer. He says it's a mistake he has not seen in 3-4 years.

    How to fix the error is to unplug everything from the balance and leave it unplugged for at least 30 seconds to make sure that all of his equipment off completely. When you plug the scale, it will be sensitive to a new VISA session. I tried it and the balance works again through VISA.

  • myRIO VISA error-1073807192

    Hello world

    My problem is this: my myRIO can see successfully a Hokuyo URG - 04 LX module that I have connected to the USB host port. However, when you use VISA resource open, I got the following error:

    -1073807192: VISA: (Hex 0xBFFF00A8) is denied access to the resource or to the remote machine. This is due to the lack of sufficient privileges for the current user or the machine.

    KBs online suggest that it is a security issue to do with the address IP, but MAX shows the myRIO security settings allow communication on all ports.

    So, at this point, I'm stumped! Does anyone have any suggestions?

    Additional information:

    The myRIO detects not that kind of default device, I had to follow this tutorial to learn first how to get LabVIEW to recognize a connected device ttyUSB as a FTDI chip and then deviate from the tutorial slightly so that it supports the class of device Communication USB (ttyACM), which is the type of device class the URG - 04 LX adheres to.

    The code I used is:

    In the file/etc/mdev.conf, under #typical of devices, I added the line:

    ttyACM [0-9] * root: ATS 666

    In etc/rc5.d/, I added the S10SetLnUSB file that is provided in the tutorial, except all the entries pointing to ttyUSB were replaced by ttyASM:

    #! / bin/sh
    #echo '==> SymLnk ttyACM0 creation. "
    #ln s/dev/ttyACM0/dev/ttyS2
    n ='ls

    / dev/ttyS * | kind | tail-1 | tr ' ' ' | AWK ' {print $2} "
    num = 'expr $n + 1'.
    ln s

    / dev/ttyACM0 ' / dev/ttyS$ {num}.

    Finally, the tutorial recommends using this command to recognize the addition of the script:
    #chmod a + x /etc/rc5.d/S10SetLnUSB


    At this point the myRIO can successfully see the connected device.

    I reformatted back to the standard driver implementation myRIO plus all additional drivers additional NI-VISA (5.4) such as the passport of USB of NI-VISA. It turns out that after all debugging, all you have to do to get a class of devices of Communication (CDC, ttyACM) module to get recognized within LabVIEW RT is to do the following:

    1. Download your LabVIEW RT remote target visible in MAX.

    2. Plug the module USB to the USB of your target remote host port control.

    3. SSH in LabVIEW RT.

    4. Make sure the device you are using is a CDC. You can do that by typing the command #dmesg, and get a response that looks like this:

      [173.342694] usb 1-1: new USB full speed device number 2 using xusbps-ehci
      [173.635010] cdc_acm 1 - 1:1.0: ttyACM0: USB ACM device
      [173.652955] usbcore: registered new interface driver cdc_acm
      [173.652977] cdc_acm: driver model USB abstract control for USB modems and ISDN cards

      Your real answer my vary slightly.


    5. Run the command #rmmod cdc - acm. If the command line returns does not return a response, the device driver has been deleted successfully.

    6. Go to NOR-MAX on your host machine and refresh the list of devices and Interfaces for your remote target. The material should now appear.

  • All my instruments back VISA errors

    I recently added the cryogenic temperature controller pilot Lake Shore model 336 in the folder instr.lib under program files of National Instruments. When I tried to run one of the example programs accompanying the driver, LabView gave:

    1073807346 error occurred while VISA opening to edge the Lake 336.lvlib:Initialize.vi-> Lake Shore 336 write Curve.vi

    Because I was working on an another VI at the time I just ignored the error and planned to fix it later. The other program, which had a servo error since last week-free motor, are also starting to give an error:

    Error 1073807343 has occurred to clear VISA

    Improper installation of the Lake Shore drivers affect somehow my other instruments? I am running LabView 2012 and have NI-VISA 4.6.

    Thanks for any help.

    Lakeshore pilots apply their own version of VISA?  Sometimes conflicting versions of VISA can cause problems.

    Lynn

  • Subset of the Serial error string

    Hello world

    I have a simple program. I used arduino to transfer a string to labview.

    And in Labview, I want to chain of subset. But she works only first string and the strings later be not subset.

    Can you help me find my error?

    Thanks for reading

    Here is my code and my mistake

    Here is my video: https://www.youtube.com/watch?v=Gm5nOrZ3iyo

    Here's my arduino code:

    #include
    #include
    int i = 0;
    LiquidCrystal_I2C lcd (0 x 27, 20, 4);  set address 0 x 20 for a 2 line display and 16 characters LCD

    void setup()
    {
    LCD.init ();    initialize the LCD
    Serial.begin(9600) (9600);
    attachInterrupt(0,irt1,CHANGE);
    attachInterrupt(1,irt2,FALLING);
    Print a message on the LCD screen.
    LCD.backlight ();
    LCD. Print ("Hello, world!");
    Serial.Print ("Hello, everyone");
    Delay (1000);
    LCD. Clear();
    }

    void loop()
    {

    While (Serial.available ())
    {
    tank r = (char) Serial.read ();
    if(r=='t')
    {
    lcd.setCursor (0,0);
    LCD. Print ("you're a robot");
    Serial.Print ("you robot\n");
    }
    ElseIf (r = ' a')
    {
    lcd.setCursor (0,0);
    LCD. Print ("you're human");
    Serial.Print ("you human\n");
    }
    }
    }

    Sub irt2()
    {
    Delay (1500);
    i ++ ;
    If (i %2)
    {Serial.print ("ngaysinh010071992\n") ;}
    on the other
    {Serial.print ("ngaysinh123455\n") ;}
    }

    I advanced and did a cleansing of your diagram.  See if that makes sense.

  • Visa errors

    When I try to use the IO Assistant Express VI... I can configure and talk with my instrument very well, but when I try to run the VI I get following error thye.  -1073807246 error in the property node (arg 1) in Untitled 1 Untitled 1:Instance:0->... Possible reasons: VISA: (Hex 0xBFFF0072) the resource is valid, but the VISA cannot currently access.

    I tried everything I can think of without success.  Anyone have any ideas?

    You close hyperterminal?  Or at least close the com port in hyperterminal?

    I asked "is another program using the com port.  I don't have to ask "is another device using the com port.

  • Display error string indicator messages

    Hello world

    This time, my dilemma is as follows:

    I work in a machine control application where I provide a display of error messages to show the machine Operteur some text links to the fault. I intend to use an array of strings and a logic to select the message to be displayed as a result of the fault using index string array to display the message in an indicator of the chain. Now, one of the requirements is that if by any reason the machine has a fault, all the defects that are displayed in the GUI at the same time, here is where my problems start. I show you a message by line, so I intend to use the end of the constant line with a string concatenation. I did a few tests with my idea, but the messaes fault shows a fixed line according to the position of entry her concatenate, I need the error messages to be displayed in the order that they appear.

    If someone did something like that before, or has an idea how do or if there is a better way to do that I have in mind (as explained above), I'd appreciate the help. Thank you!

    See if it works.

Maybe you are looking for