Jump to content

Sorting Raw Serial Data


Recommended Posts

I have an FPGA which is programmed to dump Raw data when a serial connection is established with LabVIEW.


I have no issue using VISA Serial Read to get the data. What I am having trouble doing is sorting it. So there are 24 values coming through and I want to display each one individually in a LabVIEW VI. For example the first value is Vdc, the second Vin, the 9th is current, the 14th is temperature etc. I can't seem to figure out how i can do this. 


Any help would be greatly appreciated!

Link to comment

It sounds simple enough, but you should post your code so we are sure what you mean.


I don't really have any code at the moment. I've been recommended to use clusters, but not sure how to go about doing that.


It's really just 24 values coming in, in a string and I need to extract each one individually. I know it seems simple, but I am a beginner at using LabVIEW and not sure how to go about it?

Link to comment
  • 1 month later...

Can you post a (or two or three) typical data string(s)?  Usually strings like this have a delimiter, like commas or tabs or spaces, to separate the numbers.  So you could do this:


I showed the example with comma for the delimiter, but other possibilities are shown above (not wired in).

When you create the array type on Spreadsheet String to Array, be sure to right-click the resulting array and select Remove Dimension.  Because it sounds like you're getting a 1D array, not a 2D.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.