increase speed visa read write

Hi guys,.

I use the visa read and write the example, but I am facing a problem when using it in a software expansion, and I can receive only date when the vi has been slown down (using the bulb).

The program really works on her own with the defined settings.

So, do you have any ideas/suggestions on how to significantly increase the speed of this vi (joint)? In addition, it seems to create a problem with the playback of data

Thank you very much

Kentmey

Roll bytes to the port and the delay.

Rely on the chariot of the termination

Use a number larger than the bytes expected.

Tags: NI Software

Similar Questions

  • Possible timeout in VISA read/write in While loop

    As the title says, I have a while loop that is constantly written followed by reading using VISA read/write.  I'm waiting for buffer correspond to a certain one, which the true value would end the loop.  In this loop, I have an indicator showing how many times he runs. All of this is repeated in another while loop.

    My problem comes the counter arrives at 10, then stops at the "write" command.  Do not know why.  I tried to increase the time-out of the instruments, but nothing has changed.  I added a delay of 10ms in loop, which also has not changed anything.

    For reference, I use a tektronix scope series 3000 of the MDGS and checking its state of relaxation.

    You said chill to read earlier!

    But it is not supposed to have to write it either.  Experimentally, access all VISA nodes, right-click and choose the Mode of synchronous i/o.  Make it synchronous instead of asynchronous.  The watch symbol will disappear from the top right corner.  See if that changes anything.

    What kind of serial port are you using?  What is an integrated in the PC?  A USB to serial port adapter?  Makes the chips on that, Prolific and FTDI?  You can try with a different serial port or a brand of adapter?  A lot of people have had problems with prolific chips.  And I have also heard of people having problems using adapters who had fake chips in them.

  • a speed of read/write DAQ card mode change will reach 200K

    HEY, man,

    I have a project needs to test two points I name them point A and point B, the first time, I should point A 5V DC input, voltage inductive test point B, sencodly, give point B 5V DC input and inductive point test output voltage, this means and two analog ports must read and write sharing mode , and the test speed must be 100 KB, if I have a 200 KB data acquisition card, can the speed of read/write mode change reach 100 KB for an analog port? or, please give your suggest for my this kind of situation, thank you.

    Hi API,.

    I see that you are trying to measure voltages using a single channel at a time on a data acquisition card.

    Unfortunately, you cannot change the inputs to the outputs or vice versa on a map of data acquisition, they are static.

    What I recommend is either using a switch like this: http://sine.ni.com/nips/cds/view/p/lang/en/nid/207130 where you will need a high chassis.

    Or, having four channels, 2 inputs and 2 outputs and try to measure it. You should have the necessary speed as well.

    If you have any other questions, I'd be happy to answer.

    Thank you very much

  • How do you know the speed of read/write of a flash drive?

    Who knows a program to read/write speed?

    Hi Cristi,

    Thanks for posting in the Microsoft Community.

    An indication of the standard flash drives read/write speeds is the following:

    USB 2.0:

    Sequential write speed range = 4-10 MB/S

    Sequential read speed range = 15 to 25 MB/S

    USB 3.0:

    Sequential write speed range = upto20 MB/S

    Sequential read speed range = upto45 MB/S

    These reading and writing speeds offer a guide to the read/write Flash Drive performance and have been identified in recent tests. Please note that we are changing the components USB Flash Drive at any time based on the availability and cost. This means that the read/write speeds above cannot be guaranteed.

    You can use your favorite search engine to search for this application that measures the speed of read/write of flash drives.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information helps. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • Sony ILÇE-7R - what is the speed of read/write in the camera

    I have several Sony ILÇE-7R cameras used for a given application where more than 80 panes in a row with 1 second interval occur.

    When you are taking pictures on a 1 sec shutter time / 1.2 s, then the camera tends to slow when writing the buffer on the SD card. (A suitable high-speed sdcard has been used).  When the buffer is disabled on the SD card, then the camera accepts no any command of the shutter (IR Led or cable gives the same question), so I'm missing components/images.

    What is the read/write speed in the camera?

    What are the compensation of buffer time?

    Are there settings that can improve the buffer time on the SD card, while taking still pictures of compensation?

    Is there firmware settings that have been implemented to improve the write speed camera?

    Thank you very much

    Kind regards


  • Visa read write on port series independently and at the same time!

    Hi all!

    I need to read and write data to and from a serial port (rs232) independently and simultaneously .

    I'm sorry that I can not put a picture of that, but it's very simple:

    I used "set up the serial port" and forwarded to two while loops, the resource reference.

    a loop is reading data and the other loop is writing data to the port.

    the problem is when the playback loop (function serial reading) waiting for data - it blocks the other loop to run (writing of the serial function is blocked).

    I searched the forum and find this visa open function has 'duplicate session' option - that's what I need?

    If true, can someone explain exactly how to wire and use it in the right direction?

    Thank you very much.

    Guy.

    OK, I found an example that solved my problem: a VI called   serialduplicatesessions.

    The file is associated.

    Here is the link for all cases: http://zone.ni.com/devzone/cda/epd/p/id/1727

  • Maximum speed of read/write taken supported Sony Xperia Z2 for MicroSD cards

    I am looking to buy a microSD for my Xperia Z2 phone (6503). My question is: how fast it can write data to an SD card. For all I know, these speeds are dependent on the controller of the SD card. If I'll know it approximate numbers I can acquire an adequate microSD card. Right now I'm trying to decide between: SanDisk SDSDQX - 064 G-U46A Extreme Plus 64 GB - 80 MB / s GB SanDisk SDSDQUA - 128 G-G46A 128 Ultra - 30 MB/s write for these microSD cards speeds half accelerated indicated reed are numbers. I like 128 GB Ultra card capacity, but would not hesitate to buy faster 64 GB card of more extreme.

    If you use 4K as recording features, you may need to get a high speed SD! (go to the Maximum speed you can)

    So I think that like extreme would be preferable in this case, but if your phone is what use you (like me) the maximum capacity (which has better speed as well, if not useless) I use a class 10 128 Go!

    Like many, I know, I think that same 30 MBP will be sufficient for a 4K video!

  • Error with VISA Read (-1073807346)

    Hello

    I use VISA read/write to control a glucometer and read files in memory. When I run the file memory for the first time, I get the error 1073807346 and the explanation is "VISA: (Hex 0xBFFF000E) the given reference of session or the object is not valid."

    However, when I run again immediately after (without doing anything except click Run), it works perfectly every time until I have log and restarts (while I get the same error, but it works each time after this).

    I checked my settings, they are correct and I also tried to run the command with Hyperterminal and it works. I don't know why this does not work the first time around.

    Any help you could give would be great. I have attached the file ("read Mem").

    Thank you.

    Hello

    You choose the resource monitor correct (I assume you are) before starting the program?

    Why do you have a picture of sequence around your code? The sequencing is already accomplished by the data cables. The last wait is relaxed.

    And most important: why do you have a feedback node in your visa session just before writing.

    Delete and press cleaning diagram.

  • Several problems of reads/writes of Visa

    Hi all.

    I've been using labview VISA to communicate with an I/O device called a µChameleon.

    I need to monitor the status of mutiple pins by sending an entry VISA to query the PIN then use a read VISA to identify the State of the PIN.

    The problem I have is when I use several reads/writes VISA. When I run the present, only one VISA reading returns the corresponding pin State, but everything else show nothing. The funniest is when I use run highlight, they will return all the State of the PIN.

    The photo below shows the basic principle of what im doing by simply copying the base serial number read and write code. For example, I send the string 'State of pin 1' followed by a carriage return and if it works correctly it should return a string Read VISA saying ' pin 1 1 "(top) or" pin 1 0 "(low)." ""

    Can someone help me witht that. Is this a timing problem with the VISA of the readings?


  • SSD Ultra II read & write speed problem

    Hello world

    I'm hoping to get help please about an SSD, I just bought and do not seem to be getting anywhere near the advertised speed it is supposed to be able, I only spent by technical support yet as thought someone here might know the answer.

    I bought the Ultra II capable of up to 550 MB/s write in reading and 500 MB/s, but after doing some 480 GB testing the 3rd party software and the State of SanDisk my speed to read dashboard is about 346 MB/s and writing is about 236 MB / s, is not anywhere near the announced speeds.

    I made sure the drivers are up to date in the dashboard, checked my motherboard and confirmed he has 2 SATA2 and SATA3 2 ports, bought new cables SATA 6.0 GB of data and made sure that they are plugged on SATA3 ports using the manual of the motherboard, but I get still only these slow speeds.

    Any help anyone can offer would be great, thanks.

    What is the MB brand and model? Some MB have several SATA 6 GB ports on different controllers. Intel SATA chipsets tend to perform best. I have a MB with Intel and AS Media SATA 3 chipsets and I see the same performance you see if I connect an SSD SATA 3 ports that use the controller AS Media.

  • VISA reading significantly slows down to 20 Hz (Labview, Arduino + Xbee project)

    Hello

    I am quite new to Labview and Arduino, so I apologize if I use the incorrect terms. I'm having some trouble with the next project, I hope that you guys can give me some advice!
    I have 16 sensors connected to the 16 analog pins on an Arduino mega Board. This Council has a shield mounted upon him, with a Xbee module wireless. I have another Xbee module that communicates with him and it is mounted on a USB dongle that plugs into a PC with Labview 2015.

    The A/D analog Arduino pin output is read and sent every 50ms to the Xbee module connected to the PC. So every 50ms (that is, a frequency of 20 Hz), a new line of analog readings by commas is sent, using AnalogRead and Serialprint in the Arduino. These data are fed to a Labview code with architecture of producer-consumer. Copy the following code configures a serial port of VISA, reads the data, it converts a voltage value and writes the data to a text file (see block_diagram.jpg).

    The problem is that at a frequency of 20 Hz (with the configuration of the attached jpg) when you reach 400 treatment iterations the code slows down considerably and values are not parsed correctly. It behaves as if the queue is full (but the queue of elements indicators show 0) or memory or the buffers were full. It seems quite surprising to me given that the sampling rate is so slow. I tried a few configurations setting the buffer size, empty the buffer by using the queue time, but nothing seemed to work. Is it because the processor loop takes too much time to iterate? I tried to disable data analysis, conversion of voltage and the generation of text file, just keep reading and still have the same behavior.

    This may be the cause? Suggestions to change the block diagram are welcome! Is there a better way to do this than with VISA or queues...?

    I use Labview 2015 on Windows 7.

    Thank you!!

    sminanog wrote:

    It behaves as if the queue is full (but the queue of elements indicators show 0) or memory or the buffers were full.

    You think along the good things. But the big problem I see here is that you have a table growing up to stop the program.  You must move the file writing to be inside the loop of your consumption.  This will eliminate the need to constantly develop your table in the shift register, with tons of memory and causing copies of memory (which is very expensive).

    The other concern I have is the speed at which data is available.  If you have a baud rate 9600, then in the 50ms debit you can pass 48 bytes.  This leaves 3 bytes per sample, including the comma.  If you have a debit 115 200 baud baudrate, it turns into 576 bytes, you can send the 50ms.  So the lesson here is to make sure that you use a transmission speed which is fast enough to handle the data that you want to send.

  • VISA READ timeout error - several GPIB resources

    Hello

    I'm working on a network 3 GPIB instruments (Optical Attenuator, amplifier in fiber, spectrum analyser), controlled using VISA sessions in Labview. When it is run separately, the three corresponding screws (which are located in three different Labview projects) works as expected. However, when they ran at the same time, one gives them timeout-1073807339 VISA READ errors. These errors seem to occur when another instrument is sending / receiving data / instructions at the same time that she is.

    The exact context of the error is either:

    -an another VI is running, which includes sending several requests and responses every 100 ms, reading

    -by failing VI starts, I get an error of waiting time among the first Subvi containing a VISA READ operation to perform (sometimes initialize.vi (in situation 1), sometimes one of the subVIs connected the rest State (State 0) on the time-out of the structure of the event).

    or:

    -the default VI is running,

    -by starting another VI, which includes repeatedly sending requests and reading the responses, the failing VI up a mistake among the first Subvi containing a VISA READ operation to run (one of the subVIs linked the State of rest (0) on the time-out of the structure of the event).

    What I tried:

    -gradually increasing the delay between the VISA WRITE and READ operations to the relevant instrument (from 10 ms to 10 s), without success. More surprising are my observations which, by operating this single VI, increasing WRITE it / READ delay results in the same timeout errors. I have found no mention of such behavior through research google and forum. I hope that this may point to a solution to the main issue,

    -switching between synchronous and asynchronous VISA WRITE / READ operations.

    -reorganization of the network GPIB to a star to a linear topology topology (three instruments have different GPIB addresses in case anyone is wondering).

    My thoughts:

    It seems to me that the error is related to a delay introduced between a VISA request and its read operation by the transmission of another query associated another instrument in the same network GPIB. But I have no idea why pass a query to another instrument would introduce such a delay, or why this delay would result in a timeout error (and only an instrument, while writing / reading in each pilot screws are basically the same). Hopefully a more experienced Labview-er will be able to shed some light on my problem.

    Included is the project that contains the default VI (main.vi) and the driver custom made use of.

    There are a number of ways. If you want to keep separate projects for instruments, you can use semaphores often slandered around calls for screws in each project. Locking is not expected or predictable, but it would give controlled access to the GPIB resource.

  • VISA Read (error BFF0015)

    Hi all

    I use COM VISA library and c# communication with my instrument via TCP/IP.

    I add the reference "VISA COM 3.0 Type Library ' to my c# project and try to establish communication using the following codes:

    *********************************

    Ivi.Visa.Interop.ResourceManager ResMsg = new Ivi.Visa.Interop.ResourceManager ();
    Ivi.Visa.Interop.FormattedIO488Class ioClass = new Ivi.Visa.Interop.FormattedIO488Class ();

    Imsg = Ivi.Visa.Interop.IMessage (ResMsg.Open ("TCPIP0::192.168.0.170::10001:OCKET", Ivi.Visa.Interop.AccessMode.NO_LOCK, 8000, "") as IMessage);
    ioClass.IO = Imsg;

    ioClass.WriteString ("* RST", true);

    ioClass.WriteString ("* IDN?", true);

    String ret = ioClass.ReadString ();

    Console.WriteLine ("ID:" + ret);

    **********************************

    I could write "* RST ' command to the device without errors. And I could see that the device really do a reset of the command.

    But when I send "* IDN?" and read the answer, I still get a TIME_OUT error. Even if I add "\r\n" at the end of the command and increase the value of the time-out period, can I still the same error. Not only "* IDN?" but also another order of reading as "* STB? ', they all can the same timeout error.

    But when I use the VISA-ReadSTB function, it returns the correct data.

    I also tried to use Labview VISA-open, entry VISA, VISA-read for the same test. I also have an error (BFF0015) after VISA-read.

    I also use a programm IO monitor to view the data. I find that I have seen the answer, but I still have a time-out error. Currently, I could only read the answer by Agilent IO control successfully.

    I'm using c# 2008, Labview 8.2.1, VISA 5.0.3

    Any notice will be really appreciated!

    Kind regards

    Please take a look at this KB. Maybe this can help you solve your problem.

    Why should I receive Timeout error-1073807339 on VISA Read or Write?

    http://digital.NI.com/public.nsf/allkb/874B379E24C0A0D686256FCF007A6EA0?OpenDocument

    See you soon

  • Tecra A8 DVD don't read/write DVD-R 1-16 x.

    Using Sonic Record DLA, Tecra A8 DVD don't read/write DVD-R 1-16 x. Ok work on DVD - R 1-8 x and CD DVD - R 1-16 x has tested successfully on the two recent Toshiba Satellite Pro and HP Office. Have updated the Bios, software DVD-RAM and Sonic DLA.

    Hey,.

    What exactly do you mean? This means that you can t burn DVD-r with 16 x speed?
    In this case, you should check the specifications of your CD/DVD drive. Not all models support this speed of combustion. In addition, I recommend using 8 x only, he speed will give you a better quality of the burned data/average.

    You must also use different types of media. I believe that your other computers have different drives in order to test different mediums. I have a good experience with Verbatim DVD-R.

  • VISA read lose characters beyond the end of the output string

    Hello

    I wrote a VI to take a string of output data of an ardunio Uno and analysand. I use the vi read Visa to enter the output channel of the unit. In the end I will connect a device that actually gives the value in this type of format string: (#80212164,2289,2292,2296,2300,2328,2289,2297,2290,2300,2308,2292,2295,2298,2289,22,24,0 *).

    So after a large number of loops, the program starts to drop the last characters of the string that it generates. If the string of Visa Read output reads something like (#80212164,2289,2292,2296,2300,2328,2289,2297,2290,2300,2308,2292,2295,2298,2289,22,24,). The only way to solve this problem, once it has occurred must completely close labview (completely). Once I open again and start the program running, all is well in the world.

    Has anyone had this problem? I tried to debug it in different ways and the only weird symptom I have other Visa Read function lose a few characters of the string is the fact that by looking at the bytes to the Port after I read visa, is that she starts showing five bytes instead of zero.

    my last attempt at resolving this issue is attached.

    Note: The Ardunio outputs a string of this format every 2 seconds with the values being incrimental on a specified range. (80212164,2289,2292,2296,2300,2328,2289,2297,2290,2300,2308,2292,2295,2298,2289,22,24,0 # *)

    You can configure the * your character of termination if your Arduino does not send the carriage return or line feed.  Use the configure a Serial Port to ensure that your settings are correct.  You can also use this VI to increase your timeout so that you no longer need your waiting.

Maybe you are looking for