Reading of data of VISA

Hello

I am a beginner total with labview and searched but to no avail.

I MC who ensures the pumping data from five sensors, each sensor comes out a little higher and a little weak. I created a VI that reads in the data and converts the string to an array of unsigned bytes. My problem is I have trouble separating each individual byte so that I can add the two bytes for a decimal value.

You want to combine the U16 data in a table and then write on the Board.  You must also use an array of strings to tell the PDM write what channel names to use.  Additionally, make sure that you open / create the file before the loop.  And finally, make sure you close your serial port and your file.

Tags: NI Software

Similar Questions

  • VISA do not read serial data in the right order

    Hi all

    I'm working on a project, when I need sample data at point A, it passes these (zigbee) wireless data to point B and here rs232 connection to the laptop.

    I'm using labview 2011 to view sampled data, but I have a little problem, data are not entered into labview in the right order and this is quite crucial in my application. I have attached some photos and my vi to describe the problem in detail.

    Data are packaged in the following form: AS:number1:number2:...:number49:\r - where is the beginning, followed by the values of the sample character separated by: and the last is followed by a return at the end of the cart package.

    When I view the data in different terminals (PuTTY, tera term ect.) then the data is in the correct order.

    To make the most obvious problem, I place the sampling to count an integer of 16-bit instead of the real samling

    The png sample of teraterm is how it is supposed to look like. The vi_sample.png is the string of labview, which is false, I've highlighted a few errors in the visample. When using the VI, I noticed that all the data is collected, but not in the right order.

    The missing Subvi is a few small VI that reads the input rs232 string and control the various indicators of this.

    I hope that you are able to help me with my problem.

    Concerning

    Tommy

    In the structure of case where read you the serial port you are adding at the beginning of the string rather than allow the addition. In other words, you build the answer backwards.

    Your method of reading is contradictory. You have configured the VISA session to stop playing when he sees a carriage return, but you do not actually. You have configured it so tell some bytes are on the serial port. Maybe it's not the set of bytes, since you have no delay between writing and reading, so you can be is only half of the message. If you use the method of termination, then reading VISA should have great value wired to the bytes to be read. Then, when VISA Read see the stop character, it will stop automatically. If you use the bytes available, then you need a mini loop to keep reading until you see the end of the response. Choose one or the other - don't try to play both ways.

  • Read more data 1 byte of visa

    Hi, when I use VISA to read more data of 1 byte, only the first table got the data, but I want to separate data from 40-bit to 5 tables. Does someone know how to separate data in the tables? Thank you for the reply!

    Your problem is the ASCII conversion attempt.  As I said before, you have raw binary data.  Therefore do not touch anything that deals with ASCII.  All you have to do is take your byte array and convert each element in an array of Booleans.

  • play sounds temporary and file of your choice when reading data with VISA functions?

    Hello.

    I read the function of reading data with VISA and then I use as multiple functions to display data on the graph. everything is OK.

    now, I want to play a sound specified (like a song in my desired folder 3s) signal which cross above the specified value range. then after the desired time, it will wait still new cross above the specified value and this repetition of the procedure until I stop the program.

    Data MCU is from and it does not stop when his game system and what system of incoming data for this part (his play) will ignore them pending that outdated.

    I use this for reading data and part VI mentioned which belongs to her is empty and I don't know what I have to do?

    altougth I use an another while loop for his apartment because I want to save time CPU.

    Thank you.

    I recommend you do the data type of the notifier a cluster that contains a path and a numeric (double).  The path indicates the reader what file to play.  Digital is the duration.

    Now in a way a bit complicated, but really good stop your second loop.  Do not use a second notification.  Instead, send the normal notification but not use a path for the path in the cluster.  Your second loop can write a check for the path of a not and stops when that is received.

  • Satellite P500/01R reads the data, but cannot write data on CD files

    I recently bought a laptop Satellite P500/01R. I am able to read a data CD, but can't write data on CD files. The CD is read/write.

    Any ideas?

    Hello

    Have you tried different burning software?
    I m using Nero and in my opinion one of the apps better combustion.
    Here, I can choose between CD, DVD, DL or Blueray (only possible if the CD/DVD drive also supports this).

    Have you also checked diffΘrents CDs from different manufacturers?
    You should do this since not all disks are 100% compatible.
    I had several problems with different CD or DVD in most of the cases it was a compatibility issue, I tried TDK and this kind of drive is compatible with my CD/DVD drive
    I m using the standard of R.

  • I'm reading the data (speed rate and flow) of a table and it plot in a graph.

    I'm reading the data (speed rate and flow) of a table and it plot in a graph. I need to draw two values of l/min (speed) to the same speed. How can I do using a loop for?

    There is no need actually to use a loop FOR this. And using a graphic waveform isn't the type of field for this, for a waveform you a (Start), the dT T0 (greatness not) and table D (Data), this isn't what you want unless you know precisely the measure will take place according to an orderly disposal, you'd want a xy chart so that you can trace the measures where they occur in the axes X and Y of preference.

  • How to read the date and time of a file by labview information

    How to read the date and time of a file by labview information? for example, time created and updated time.

    The similar question had already spoken here (this is the old thread but still seems topical):

    http://forums.NI.com/T5/LabVIEW/file-date-created/TD-p/109836

  • Read the data in the first column selected in a multicolumn listbox

    When a line is selected in a ListBox multicolumn (1 point), how can I go on reading the data in the first column?

    The listbox multicolumn itself is the digital picture data type. If you have allowed only 1 point selection and selection mode select any row, it returns the line number. The property node 'Element names' to return a table 2d-chains of the elements in your Inbox. The index of the row to the value of the listbox and column 0. See code attached.

  • reads the data when I select run

    When I insist on running my program reads the data from the meter power... when I'm not it gives me an error. I tried to put right waiting them etc and nothing seems to be set. Also, when I take the vi that read data from the electricity meter, the code runs much faster. I don't know if this has to do with global variables or what, but I just change a code supplied with this unit and it included global variables. I tried not to play with those yet. Anyway, if someone sees something that would eventually cure this problem please let me know. Thank you.


  • How to read the date of the day of the day of the year?

    I want to put 30 days for the test of endurance for the application of the components. the user will have the current value of 30 days with specify them the end of the day.

    I saw that the "seconds to Date/Time.vi" sure I checked the day of the year. If I can use this day of the year, I can add + 30 read 30 date.

    Barros,

    What I gave was the answer you were looking for originally because I believe.  You will not just be able to read the date in a coherent way and then add 30.  You can either use the function Get time in seconds or a few varaint it and then add the offset you want (you could use the get a Date/time string and enter the date directly, but this digital conversion which will be useful in the monitoring of the time elapsed will be much more difficult than what I provided only).  If you want to stop the test, simply to keep track of the amount of time the test is in pause and extension at the time where that amount.

    Cheers, Matt

  • Reading large data using the database connectivity

    Hello

    I use the Labview database connectivity toolkit to connect to my database sqlitev3 (I'm using ODBC). I just have to connect to the database (using the block of open_connection) and read all the values inside (using the select_data block). The problem is that my database is huge (about 2 GB), and I get this error:

    . VI NI_Database_API.lvlib:Rec FETCH Recordset Data (R)-> NI_Database_API.lvlibB Tools Select Data.vi-> real_web.vi-> real_web.vi.ProxyCallerADO error: 0x8007000E Exception occurred in provider: not enough memory is available to complete this operation. in .vi NI_Database_API.lvlib:Rec Fetch Recordset Data (R)-> NI_Database_API.lvlibB Tools Select Data.vi-> real_web.vi-> real_web.vi.ProxyCaller

    What should I do? It seems that he reads the data in the memory and it doesn't have enough space for it. When I read the data I want to write to a file.

    Read it in pieces. Write each piece to the file, and then repeat with the next segment. Try to read and process all data in one shot is not very practical and you found out will not work.

  • How to read the data from a channel named in windows using labview

    Hello

    I need to read the channel named in windows data. The pipe is created by python by another application. This application post permanent data on the pipe. But I don't know how to read data using labview. is it possible to read the data from different application? If possible, how to start?

    Thanks in advance

    concerning

    RJ

    Hi Rolf,.

    It's just, because of driving is not initialized completely, pipe read returns error 42, I added 2 seconds late, then its work perfect.

    Thank you very much.

    Concerning

    RJ

  • delay in reading the data when you are using multiple loops clocked on target RT

    Hello

    I have five loops clocked on a target of RT and I communicate to and from the host vi. All the loops of the value of the different priorities however when all running at the same time I found windows vi take up to 1 minute before reading the data. Four disabling loops to fix the problem. It is possible to start the app right after start windows vi?

    Kind regards

    Solved the problem by disabling variable autodeploy

    Thank you

  • Reading Excel data

    Hello

    I have a file in .xls excel format. I want to read the data of this daughter.

    most of the people said in the forum OR what convert .xls .csv file format and read data from «Read the file spreadsheet VI»

    Another option for read excel file without converting a .xls file in .csv format.

    Please help me

    Thank you

    Cedric Virpara

    Yes, you can use ActiveX

    https://decibel.NI.com/content/docs/doc-19913

  • How to read the data in a device connected to the usb port

    Is there a class or object, or the piece of code in Java that is comparable to the PDQComm32.ocx and the mscomm32.ocx used in VB6? I need to know how to read the data of a device plugged into the usb port of the BBerry. Is it possible to use the BB to read data from a device via a usb cable?

    I'm new in Java and I'm looking for the opportunity to write a project to read the data in a device with this program that can turn on a BB instead of on a pc.

    Thank you

    Did you watch net.rim.device.api.system.USBPort?

    That's what the doc says:

    Provides access to the USB port of the device.

    Avoid using this class in applications, as it is not portable. On the contrary, if you need to access the USB port, use factory CLDC Connector to serve a connection.

    Rab

Maybe you are looking for