Reading package VISA

I use VISA read 179 bytes of an Agilent 3458 connected through GPIB.  I noticed that as I keep running my reading vi, more in digital form, the background value wrap around.  Have you seen this?

2
1.995951462E - 02
1.995958701E - 02
1.995955596E - 02
1.995953467E - 02
1.995953733E - 02
1.995969452E - 02
1.995944259E - 02
1.995943567E - 02
1.995962604E - 02
1.995952030E-

It is more likely it's surplus your previous reading of data.  You might want to try to read more.  The adjustment of the instrument must use a stop character?  That would be the best way to go in situations like this.

Tags: NI Hardware

Similar Questions

  • Data drops using reading series visa

    I'm having a problem using reading series visa when you transfer a picture from one PC to another.  Writing PC transfers data systematically as seen by the probe on the chain get into writing.  Exe read the string displays however the string table once and then on the next reading displays an empty string.  It seems new and fourth without a complete data string and an empty string.  The vi that data comes displays a table updated consistent but the exe read the matrix (via RS 232) switches the vacuum to the full establishment of the loop rate which is fixed at 1 Hz.

    Teslac wrote:

    files/NOR/Labview e (toward) Progam vi.llb\Advanced String?   Well Yes

    Bravo and thank you.  There are buttons for those Bravo - simply click on the star under my avatar and brand the solution - (Options > OO > on your right, at the top of each post "Accept as Solution")

    There are three reasons for this:

    1. Other contributors know that they can focus on helping out elsewhere

    2. It is easier to find the next person with a simillar problem

    3. We LOVE 'Solutions-pronounced ".

  • problem with the bytes to port to read in VISA

    Hi guys,.

    I'm reading device data using usb - BT dongle. It creates the virtual port and read without problem.

    My problem is the packages to send 428 bytes, inside this block device, I have 400 bytes of data bytes 9 to 409. The first 3 bytes of each block is the same.

    4 45 50 - MEP, they are the first 3 bytes of each block of 428 bytes.

    Okay, if you check the vi I config the visa and sending the data of adjustment of the device, read the answer and it sends the data to start sendding data.

    Well, I try to read each block of 428 and show in a chart.

    The problem is sometimes bytes in ports are 428 and anothers shows 23, 2, 125,... is not continuous 428 bytes each iteration and destroy the data graphic.

    IF I check the chart outside of the main loop, I see the correct graph. Apart from mainvi I collect whole data and separate in 428 blocks, extract the 400 bytes of data and analyze the entire signed 16 bit and display in the graphics.

    So, I don't know the best way to get 428 bytes in each iteration... I tried to read directly the 428 bytes but sometimes fail once again, very low reading bytes... take time to wait before read bytes to each iteration. I need a way to get 428 before values to get the readings of 400 data. Even I could probe each beginning of block with 4 D 4550 HEX bytes to pass and got data...

    Perhaps it would be better to use the wait? or using a while loop to wait until I had 428 bytes? Any help will be apprecite.

    Best regards, Fred.

    You receive binary data.  Therefore, turn off the the stop character.

    What happens is that you actually 0x0D in your data.  Playback VISA who sees and then request's made it reading the data.  By turning it off, then reading VISA will read all 428 bytes or until a time-out occurs.

    Let the constant instead of the bytes to the Port.

  • Close VISA afer read property VISA?

    I have a VISA of TCPIP in my application and I found that if I call 'Close function VISA' after reading the property of VISA, my application will generate some problems. Please see the attached picture.

    Because it means that even if I do not open before VISA, I still need to close the VISA after I called the note of property?

    A beautiful explicit VISA is optional for quite a few years. Any function VISA will lead a session is automatically created, so you should make a fence.

  • The value read by visa read that VI is not correct!

    I design a labview program to control the Agilent E5072C Network Analyzer. When I want to get the value of this instrument, I use VI "VISA read" listed in the plate. However, the value read from this VI's latest measurement of time value. For example, the last time that the read value is 1.0 db, and this time the measurement value is 1.2 db. But when I use 'VISA read' VI to extract the value is 1.0 db.

    Agilent also provide a VI for this device to read the measurement value and she was always correct value. If someone could tell me why? need to do any action before the value read from this instrument if I want to use VI "VISA reading" instead of Agilent VI?

    You are probably reading too quickly.  Reading it in NOR-MAX, you do it by hand, it takes more time.  When you do that programmatically, it is "instant".  Try using the * OPC? command to activate your order in a query.  He returned then a '1' in the buffer.  Read the '1' and then create the command fetch.

    For Dennis:

    I've had bad experiences with the drivers provided by the manufacturer to the point where I don't even try to use more.  But Agilent is also anal about their drivers, because they are on their books, they should pose no problems.

  • cut a red number first element in reading series VISA write vi

    I want to put the serial number of a card RFID in LAbVIEW and for that I used VISA base series read VI... The Red number by which is in the following format...

    2045A15F50... im getting a square in front of tis number... How to eliminate this place?

    Sorry, I am very new to LAbVIEW and have no idea about that... So please help me

    The square indicates her you received an "unprintable" ASCII character  This could be an indicator of 'Start of message' series equipment.  They are often used in certain communications.  Read the manual of the device would be a good place to learn the expected format.  Has LabVIEW some built-in string functions as 'Trim Whitespace, vi' which can remove characters which are white space (tabs, spaces etc.) and this code snippet shows how to remove all nonprinting charaters in a string.

  • Why do I get a warning "stop character has been read" with VISA read and TCPIP?

    I use VISA readings with raw sockets TCPIP without problem with NI-VISA 3.0.1 but when I moved to NI-VISA 4.4 I was getting timeout errors.   Time-out errors disappeared when I put the stop character allow the property (which seemed to be default in NI-VISA 3.0.1) but now I get a warning indicating that the "stop character was read.

    Can I turn off this warning?   Can I put the ending character activate by default?   How can I get rid of this annoying warning?

    Hey, Dagwood,.

    Unfortunately, there is not a way to globally change the attribute VI_ATTR_TERMCHAR_EN to VI_TRUE.  Talked with R & D ability to use registers and they say that it is not accessible through that.  To answer why this change was made so the developer who made the switch isn't around more I can not find his reasoning to explain.  The best to you in your code would be during initialization, use the node property VISA to make the change and until the closure of this VISA resource, this change will be the value that you assign the value.  I'm sorry, we cannot provide any other solution for these problems.  Also, if you feel that it is a heavy load on your programming practice you can certainly submit a product idea for the ability to change the overall values for default attributes VISA.

    Thank you

  • Remove the old GPO Adobe Reader package

    It is more GPOS than Adobe Reader question. I hope someone can answer this question. I have the active directory Windows Server 2003 R2 SP2. In recent months I've created several packages of GPO to automatically install Adobe Reader 9.x and its successive updates to the Windows XP SP3 computers. I have packets of GPOS to deliver the version 9.1, 9.2, 9.3 and today I have just added an another GPO to deploy the patch version 9.3.2.

    The total size of all 4 packets is about 400 MB. I would like to get rid of old packages but not knowing how. It is also easy to click with the right button on the old package that I want to delete, and select all tasks - click on delete and select allow users to continue to use the software, but prevent new installations? After that, I can just delete associated shared folder that contains the installation of Adobe Reader files, right?

    Please let me know if the above is the right way to remove the old package of GPO. Thank you.

    as long as the new package has already been deployed on all clients and 'improved' aka uninstalled the old out of package, the link is fine.

  • Read the VISA of RS - 232 on cRIO-9012

    Hi all

    I'm reading a GPS signal via port RS-232 on a cRIO-9012. I enclose the simplified code.

    The same code works when I run it on my PC (after changing the port) and transmit the GPS signal via a USB port using a series converter / USB. However, when I plug it into the port RS-232 on the cRIO and run it on my cRIO, the buffer seems to be in the wrong format, i.e. some information is read, but it shows some weired characters. Does anyone have an idea on how to fix this?

    Thank you

    It seemed that it was a hardware problem. The cRIO-9012 was probably too old/weak/slow to handle communications. Passed to 9022 and it works!

  • ERROR 1073676294? READING OF VISA...!

    How you guys doin. ?

    I got the error above when reading my ECG sensor via a serial port data... you guys would help me with the following steps?

    1. I see that there is a signal showing disappears a second and then go back to appearing and so on.

    2 - the number of bytes read varies between 1 and 2 only... I think it's impossible... I send you an ECG signal so the number of bytes expected to be much higher.

    the attached picture can show you the result that I want to come...

    any help would be appreciated!

    It looks like the LabVIEW code, at least the part series, works very well. If the waveform is not correct, check your connections to the probe and the programming of the microphone.

  • Live Mail - disable text read packaging

    I regularly correspond with someone who cannot send and receive plain text, so I put Live Mail send to Quoted Printable text format (which prevents the automatic text) by default so that it can stick selections in other documents.

    It sends very long answers, too as text désencapsulé, but Windows Live Mail encapsulates the mail received at 76 characters in the window and the reading pane.  It's annoying enough on a screen of 30 "with 2500 pixels horizontal to play with, but terribly inconvenient when you try to paste into other documents, because the copied text in the playback window maintains the line breaks that Windows Live Mail puts unofficially there.
    How can I turn this 'feature' anachronistic?

    Hi as this issue concerns live mail which is an e-mail application, I ask repost you this question in the Microsoft account outlook.com and skydrive catogery of this site under the sub-heading of email here a technicion to support will be able to help you more.

    Kind regards
    James
  • VISA Read.vi time-out

    Hello

    Recently I happened to use Labview drivers of NewPort (ESP301) and Lakeshore (Lsci218) and I encountered the same problem of "time out" every time that a Subvi driver called VISA Read.vi for serial communication.

    I first thought has problems with driver Labview provided by the manufacturers, but after trying the pilot different LV from different companies, I started to think that the problem might be the Read.vi VISA itself.

    I use LV2010-spring, also tested with LV2011SP1. Both give the same timeout problem.

    I asked businesses about the problem, they have not found answers, nor they have LV2010 or LV2011.

    Someone had the same problem?

    Screw joint are FYI for what I tested.

    'test initialize.vi 218' is 218 Lakeshore pilot, with a change of the addition of "\r\n" in the "* IDN? the Subvi called VISA Read.vi. and a timeout error.

    "test initialize 218 - md2.vi ' has the same function, but call VISAWriteRead.vi instead of VISA Read.vi. and works OK.

    How can I know that the VISA Read.vi in LV2010 or LV2011 works correctly? or can I replace the VISA Read.vi with LV8.6 one?

    It seems to me that Newport and pilot LV lakeshore have been developed under version LV does not exceed 8.6. and I think that they tried their driver before release or I hope.

    any suggestion is appreciated.

    Xiaofeng

    The version of LabVIEW is not relevant.

    In the read/write, you add the LF/CR. In the other, you add CR/LF.

    Avoid platform dependent end consistent line in the communication of the instrument.

  • The VISA read function is not read the bytes specified in the buffer zone

    I created a program that continuously acquire data of the inverter. But, the "Reading of VISA" function is not rreading all bytes of the buffer, which is a big problem because the way my work programme is it will extract the specific buffer bytes and convert these values in voltage and current values.

    I specified the number of bytes that I want to read the buffer as for example I want to read 21 bytes. But, even if there are 21 bytes in the buffer, the read function VISA read only 9 bytes. Im not using any character of endpoints so this is weird. I'm using LabVIEW 2011.

    Is attached a photo of my program and the results.

    You still have the active stop character.  You must connect up to a FAKE at the entrance of termination character activate on the Serial Port to set it up.

  • Visa erroneous zero byte in reading series

    Hi all

    Trying to debug a problem that I have with a Labview2011 VI and the USB-485/2 device.

    The installer has been simplified to get the wire from port 1 to port 2 in a 2wire-auto configuration. As described here:
    http://digital.NI.com/public.nsf/allkb/D5CC369B3E3E6F0586256D1600563245

    and here:
    https://decibel.NI.com/content/docs/doc-4169

    Port 1 sends a message of 8 bytes by using visa / writing then begins a visa-reading of 8 bytes. (timed content in a loop of 10 Hz)

    Port 2 is configured in a single loop using the wait for event visa byte, then visa-read 8 bytes, connected directly to visa / entry.

    For 1 Port data transmitted, the data received and read visa error code are recorded on the disc.

    The success of installation passes are receives data without loss... so the back loop work...

    However! Occasionally, another zero byte is read from visa-reading the port1.

    Almost all the code read visa back operations "1073676294" port 1 (the number of bytes transferred is equal to the number of entries requested. More data may be available) which is very good. Even if sometimes the error code '0' is back (operation completed successfully). This "0" code seems to be associated with the extra byte in the receiver.

    This causes a problem because it throws the mismatch scheduled application command/response pairs.

    I tried many tariffs buad, visa-read timeouts and transmit frequencies, the problem remains. Adding a visa-flush buffer prevents the error from reproducing, but won't stop him intervened and upsetting the logic of command/response.

    Any ideas would be appreciated.

    If you send real binary data (which it looks like you are), you should have the off stop character.  Remember that reading VISA will be completed when the FIRST of the following: the desired number of characters is read, the character of endpoint found, there is a timeout.  So if there's a 0xA in your data, which will stop the read before that you would like it.

  • 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?


Maybe you are looking for