sout23 Posted September 8, 2015 Report Share Posted September 8, 2015 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! Quote Link to comment
hooovahh Posted September 8, 2015 Report Share Posted September 8, 2015 It sounds simple enough, but you should post your code so we are sure what you mean. Quote Link to comment
crossrulz Posted September 8, 2015 Report Share Posted September 8, 2015 cross-post on the NI Forums Quote Link to comment
sout23 Posted September 8, 2015 Author Report Share Posted September 8, 2015 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? Quote Link to comment
venugopal Posted November 2, 2015 Report Share Posted November 2, 2015 Hi sout, Use string subset in string pallet set offset and length i have attached a image check it out Quote Link to comment
torekp Posted November 3, 2015 Report Share Posted November 3, 2015 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. Quote Link to comment
crossrulz Posted November 4, 2015 Report Share Posted November 4, 2015 (edited) A solution was found in the cross post I linked to above. The solution was to use Unflatten From String Edited November 4, 2015 by crossrulz Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.