VISA series 2012

Hey all,.

I worked with LabVIEW 2011 to develop a program to drive a motor via the VISA series block. I've updated since for 2012, and I had problems to get the LabVIEW program to reward the engine. I have a 3rd third-party program installed that I can use to send signals of the motor base, so I know all drivers are installed correctly and there is no communication error between the engine and the computer controller.

Anyone had this problem before? My suspicion is that there may be a compatibility problem with communication between the versions of labview 2011 and 2012 series.

Any help is greatly appreciated!

Hi Phil,

Thanks for the screenshot. At first glance, it doesn't look like something fishy is going on. That being said, let me know when you run the example of shipping if you are able to see the available COM ports.

Another thing to check is to bring visa installed on the new machine. Under the record of National Instruments, you can check in your Start menu. If it isn't there, you can download it here http://search.ni.com/nisearch/app/main/p/bot/no/ap/tech/lang/en/pg/1/sn/catnav: of, n8:3.1637, ssnav:su... . Also you can check and see if the COM ports appear in measurement and Automation Explorer? Let me know if one of these suggestions solves your problem, otherwise we will continue troubleshooting.

Thank you

Doug W

Tags: NI Hardware

Similar Questions

  • Visa series read write

    Hello..

    I have no problem with reading series. I want to playback multiple visa series... Fist read I want to read the data of 5x8bit uC then if visa data read isnot "NOT" I'm going to send data to the CPU as the character ' end then read data from uC to new but is leght data 2x8bit data...

    Please, help me...

    This is the number of bytes you want to read. You already said you first want to read 5 bytes. If you use VISA set up the Serial Port and the stop character allow to true, you can set a number of high bytes and playback will end when the stop character is detected. The character of default endpoint is a line break. If you set it to false, you can use the bytes VISA to the Serial Port to determine the number of bytes in the buffer is and read this number. This makes the basic example.

    Did you do any debugging serial communication base? I suggest that you use a program like Hyperterminal/Procomm/Putty/.etc before trying to write your own program. It is also difficult to give detailed advice without knowing how you have set the serial communication of the microphone.

  • I use VISA 5.3 for reading my serial device... my standard equipment is WELL this device will send four messages for only one comand I need all four messages to display at the same time in VISA SERIES READ BUFFER

    I use VISA 5.3 for reading my serial device... my standard equipment is WELL this device will send four messages of single command given to this instrument... and I read messages through VISA series READ... during the race, the VI buffer displays the messages individually...  I need all four messages to display at the same time in VISA SERIES READ BUFFER, in order to find more than this block, I should add from the palette of function.

    Disable character of endpoint detection or make four readings where you concantanate simply the strings together.

  • VISA series operation does not work when the PC software performs

    Hello everyone.

    I'm using LabVIEW to communicate with a control via VISA series. I can communicate with this box in most areas very well, as surveillance data function I use without any problem. The only thing I have a problem with the unit is calibrated. Calibration is achieved by opening a binary file and transfer the data of 16 bytes at a time during the series with the help of a 16-byte write the command that has this structure: [command, in this case 'P'] [2 bytes from 3800 HEX address] [16 bytes of data] [checksum 1 byte]. I'm correctly calculate the checksum, and the documentation says that the box must respond to all orders less than 100 milliseconds.

    When I try to do, the zone responds with one E several times (E is supposed to say checksum error, even if I am calculating correctly), then no longer responds to nothing. The strange thing is that this box comes with a software that allows to calibrate it and that the software has no problem with him!

    I tried using SuperMon to capture what the software sends on the series and compare it to what I pass, and from what I see, it sends the same data that I do, only he works and mine is not. I also tried using SuperMon to manually send the writing 16 bytes of a calibration function at a time, and he seems to have the same problem.

    It seems that their software works, I do something wrong. Here is a screenshot of my code that I am using. Any help would be greatly appreciated!

    I contacted officials of the control box and have solved the problem. Control box delay needs 5 to 10 milliseconds between each byte, not all orders than I had initially thought. Thanks for all the useful answers, and especially the number of split tip, which really cleans my code!

  • VISA series Loopback speed and precision with double loops and a queue

    I'm working on a test of communication between 2 PCs. I test communication series RS-422 ports by using a simple loop. PC2 wrote continuous data at 38400 baud to PC1 (LabVIEW test code is here). PC1 reads the data and writes the data to the same port as soon as possible. PC2, reads the data and compares to what should be returned. I can get the highest speed is a speed of about 37300. Because it is continuous, finally that I get an error because the buffer overruns (read and write buffers are 65KO).

    It seems that VISA writing takes a lot longer than the VISA read. I do read/write asynchronous operations. I've read a fixed amount of data (1024 bytes) and then queued data to write in another loop. My timeout is set to 0.5 seconds, which is much time opf at 38400 baud (4800 bytes/second). I played a bit with these numbers, and they are the best I can get. If I increase the data read to 2 KB, the queue members increase. If I'm going too low, I start getting the data in the input buffer overrun.

    Anyone had experience with this type of test? The code is attached. Please take a look and see if I'm doing things correctly.

    Michael

    I do not know if this explains a gap between what you expect and what you found in 0.8 seconds, but you have added another level of complication in using the digiboard.  You don't have a real serial port, but a simulated serial port which is hung at the end of a USB bus.  The digiboard software creates a virtual experiences, and so its driver software and firmware on the side of the Board of Directors of the USB bus must manage some translations to go a number of compote, transfer on the bus and decode the Compote number so that it knows which 8 physical ports that it must send the message to.  You can see delays in translation at each end so something in the USB itself Protocol where it needs group information.

    If you have another, a different brand of the serial ports, you can use, you might want to try one of these to see if you get similar or different results.  But I don't think it's a good idea to try to test the limits of a serial communication device using hardware that adds the other layers of the communication protocol and therefore complicated results.

  • VISA series and the time elapsed in a timeout

    Hi people,

    Still new to LabView, please bear with me...

    I have a VI that is sitting and wait a certain string of characters arrive on the port series, but I need a timeout that is not based on the VISA expiration time.

    I expect a bunch of text via the serial port for ~ 45 seconds, then my input string will compare the matched string and move to the next VI.

    In case of no matching strings, the serial port can continue to send data serially, or may be inactive (no-determinisitic because this test is to see if a computer system started successfully). But once the VI starts, I should have 60 seconds to find the match, or set the bool 'selection' to fail.

    I tried to put my loop of time inside the main loop, outside, with or without SRs, and now I am at a loss. I looked at the VI has highlighted and the serial activity is active the timer has expired for 60 seconds.

    Please take a look at the joint and thanks for taking a peek at this post.

    I'm not entirely sure I understand what you are trying to accomplish. However, here are my thoughts:

    1. You have attached the VI waits 60 seconds before checking the serial port for waiting bytes ONCE then read bytes if available and leave immediately. It's because you have while the loop around the elapsed time and it should run completely before moving on to the serial communication loop.
    2. I assume that you have configured the port series and characters of endpoint set, etc. in a main vi
    3. Please try the VI updated seal and let us know if this helps

    Thank you

    Charles Chickering

  • VISA series misery...

    Hi guys,.

    I'm working on a small project, some electronic controls the temperature, some pumps and electricity consumption, I am using rs232 and trying to control LabVIEW.

    When I use teraterm to communicate all right, I can't get labview to work properly with the series, it keeps freezing and now refuses to connect to all me gives error - 1073807360 (VISA unknown system error) explanation of Nice useful error there.

    I want to receive data from dome which are sent every 100ms or so on-screen and also pass setpoint values to the material when the front panel controls are changed.

    I tried to have the reception running all the time which worked, but my data kept get out of sync so I couldn't index to extract useful data, so I changed the code and hardware so that the device sends data only available me when it receives the 'W', but now my labview does not connect.

    I have attached the code, I send 'hxxxE' then set temperature, I will send 'lxxxE' to set a curent, I send 'A' to turn on the pumps and peltier and 'a' turns off,

    and now I have to send 'W' to request the data from the hardware (although I can get rid of this and I have the hardwaresend all the time if it's easier)

    The data comes from the hardware store like: "Val1:xxxVal2:xxxVal3:xxx."

    I would apriciate any help... Thank you


  • Issue of Visa series?

    Hello

    Currently I use VISA to interface with RS232.

    My question is that I see a difference in execution time of each image eight envoys

    by VISA.

    For example,.

    Serial bus status: baud rate: 9600 data bit: 8, Stop bit: 1

    I used the example "basic series read/write example.vi.

    So if I write '1' data, I see the performance of 16ms in my application

    with data up to "12345678", eight data I see him getting same 16ms.

    However, as soon as I increase given to 9 characters, "123456789."

    I see the time pass to 32ms about.

    So my question is who made series VISA application makes Group of eight chassis

    entry, write to read from HW or HW? This is why I see the execution time

    increase by nearly twice the 8 characters?

    Thank you in advance,

    Do

    No, I don't have a problem.

    There are a few minor differences, but not time to double

    that may be acceptable.

    Thank you.

  • Ohaus Adventurer Pro - VISA series help

    All,

    I'm having some problems with reading/writing series of VISA live. I can't get the weight to the request by sending a 'P', then a return transport, then a line break. I'm back in my VI below, 0 bytes to the port when I run my VI with emphasize off execution. When I turn it on, I can read the weight very well.

    I can use the Hyperterminal program very well without any hitch at all.

    I'm using LabView 2010 and Windows 7. I'm a litle confused.

    "Basic series write and Read.vi" that ships with LabVIEW shows how to implement the delay between writing and reading orders... just as an info.

  • resource of visa series empty

    Saludos, comunidad of nor

    Estoy having a problema con el resource name United Nations vi, exactamente mi problema valere appears the list of com ports, pero utilizando UN programa para testear el series works correctamente, lo cual me not of q are labview problema y no led pilot del puerto.

    EH estado buscando in el foro pero no. huh sown mucha information.

    agradesco su ayuda photos...

    (poor) English translation:

    Greetings or community

    I'm having a problem with the name of resource of a saw, exactly my problem is it seems to empty the list of com ports, but using a program to test the series works properly, which told me q problem isn't the driver and the port of LabVIEW.

    Huh was looking at the forum but have not found much info right.

    agradesco in advance for your help...
    Published by ferock

    If you have verified that:

    1. VISA has been installed
    2. Serial ports appear in MAX?
  • Visa series parallel read with arduinos, data are delayed

    Hello

    Currently I use two arduinos asynchronous data read from sensors of temperature and humidity. Each arduino send back 4 floats, separated by commas, with a stop of "\n" character In labview, data gets broken upward and then pushed to live plots. In addition, the data gets written to a file - arduino #1 and #2 Arduino have their data sent to different files. It is important to note that the arduinos have different rates by which they send data on the comms series. Ideally, we would like that the data of every arduino to enter and update locations independent real-time each other.

    I'm having a problem where data do not seem to be displayed in real time. I can touch a thermocouple and then ten seconds later, the temperature will change. This delay seems to grow over the short program, which is a problem since we use a direct result of the plots to determine when to start various processes of cooling.

    I wonder if due to different data rates the thrust arudiunos, if there is some kind of buffer somewhere that has a "backlog" of the fastest arrduino data and must wait for the slower arduino data until it does nothing. It is obviously a problem of data flow, but I'm pretty green with LabView and was looking for some advice or pointers. I want to mention that the arduinos send data quickly; they send every two seconds or more.

    Hello MrScientist,

    can you please try to use two separate while loops, one for each COM port, because if they're in the same loop, it can happen that they block each other.

    A second option is always read all the information on the COM port and made a ring buffer and filter information of these buffers.

  • Problems with the VISA series connection (missed the ticks in the data)

    Hello

    I designed a DAQ card with USB connection. The USB connection works in virtual Com Port mode.

    The main vi a while loop. The sampling time is defined by the user and the hand while loop iterates of this time of the sample (for example, 5ms, 10ms or...). Communication of the data is made in the present while loop using VISA read or write tools. Data are stored in global variables so the other could read or change.

    There are screws separate for each part of the DAQ card input analog, digital output and... Each vi has its own time while in a loop which iteration step may be different from the large loop.

    The program works correctly, but there are a lot of ticks of "rate" in the communication of data. I've attached a screenshot of input analog vi. A sine wave is produced with output analog vi and this output is connected to an analog input. As you can see the data transmission has problems.

    This caused several loops work simultaneously? Or communication VISA has problems?

    Thanks in advance.

    The main problem I see with your VI is that you use bytes to the Port which is the wrong thing to use about 99% of the time.  It seems that you are trying to break around 31 bytes and turn them into numbers.  Suppose that at the moment, you check the bytes, a port, you have received only 28 of these bytes.  Some of the variables will find 0 because you have all the data.  But on the next play, you will have the remaining 3 bytes so everything from the.  Now your data package is misaligned.

    I suggest that if you want 31 pieces of information, you just put a constant 31 reading VISA and get rid of bytes to node Port.

    Other advice.  Index table is EXPANDABLE!  You don't need to create 31 copies of the index table and wire a constant to each of them.  Remove a node, and expand the bottom border down that you need.  You don't even have to add all the constants, because by default it will give you index 0, index 1, index 2...

  • Problems write in I / O with VISA series (low speed of the program being recorded)

    Hello! I've been monitoring voltage speed of the serial port 230000 baud / s. It is fast and accurate, but when I want to save this data to a tmds, xls, txt file, reduce the speed of the program and buffer overflows in series, which reduces the voltage rate control information. I tried on 2 PC with four core processors. I think that it is not because of the PC.

    Because of what it might be?

    File IO is SLOW.  You must compensate for that somewhere.  Look at the producer/consumer.  The idea here is to have a loop that simply reads the serial port (as fast as it should) and use a queue to pass data to another loop to process and save to disk.

  • VISA series and MCC USB-ERB24 compatibility problem

    Hello!

    I did have a lot of experience with the signals of digital I/o or VISA; However I have figure out how to control a shoot-syringe (Legato 270 - KD scientific) to help through VISA. I started having trouble when I plugged a USB ERB24 to control some taps at the same time.

    VI I trying to create needs to control the Director of the syringe, which is to remove or infuse to open and to close some hoses according to the direction of the syringe. The VI I wrote works fine until I have trigger a relay on the USB-ERB24, after that the syringe pushes unresponsive. When that happens, I have to unplug it, restart it and plug it back... then it works again. I suppose that for some reason, the USB-ERB24 is somehow interfere or cost overruns or something... but I don't know how or why...

    Here is the link for the drivers of syringe pump: LINK

    Also a link to the USB-ERB24: LINK

    I'm using Labview 2010 V10.0.1

    VI attached.

    I would appreciate any help/insight.

    Hello!

    You have activated the run culminating to see where and when you receive an error in the code? Looks like it is something hardware related, however. What is supposed to happen when you trigger a relay on the USB-ERB24?

    Thank you!

  • VISA SERIES termination character producer consumer model

    Hello

    I'm developing a HMI to receive data from a sensor.
    Material sensor is built in my company and I have no flexibility with her. Only 2 RX & GND wires, no possibility of
    hardware handshake.

    The sensor send to an RS232 com port a string hex each 1 s, 10 s, 60 years or more and I can not know the frequency.
    So, I scan each data bytes to the serial port and serial port with VISA Read 20ms. At the end of the string hex sent by the sensor
    There is a stop character but I don't how to use it.

    I use the model producer/consumer do not lose any data.

    In fact, I read and concatain received data (with VISA READ) until I got the right number of bytes (because I know the size of)
    the sent hexastring is 495 bytes).
    But in the real work, I don't know the size of the data to be received by the sensor. (<500>

    So, I want to use the character of endpoint to stop the loop of producer that contain VISA READ.

    Should what special function or the property node I use to do this?

    I've attached a screenshot of JPEG of my code.

    PS: for the development of the VI, I simulate the sensor data with another PC that sent the hex string in loop
    with the stop character.

    CHRI = s = nour wrote:
    Hello

    But in the real work, I don't know the size of the data to be received by the sensor. (<500>

    A method to read an unknown number of bytes: put just the bytes to the Port in the whole loop (not read). Place the output of bytes to the Port into a shift register and compare the latest iteration with the current. When the number stops change (current loop = last loop) then all bytes have arrived. Bail out of the loop so directly while reading VISA.

Maybe you are looking for