06-25-2015 05:14 AM
Hi
I am total beginner with labview and have searched but to no avail.
I have MC which is pumping data from five sensors , each sensor outputs a high bit and low bit. I have created a VI that reads in the data and converts the string to an unsigned byte array. My problem is that I am having trouble seperating each individual byte so I can add the two bytes to get a decimal value.
Solved! Go to Solution.
06-25-2015 05:48 AM
Index Array and Join Numbers is the safest way. This will allow you to get the values you need and then combine two bits to make a U16. You can then convert it however you need to.
06-25-2015 08:31 AM
Hi
I have done that but I am having further trouble writing the data to a TDMS file. I want to write each of the numbers to a file every 20ms but when I try to enter the data into the wrtie to TDMS function , I get an error saying I cant enter polymorphic data.
06-25-2015 08:41 AM - edited 06-25-2015 08:42 AM
You will want to combine the U16 data into an array and then write the array. You should also use an array of strings to tell the TDMS Write what channel names to use. Also, make sure you open/create the file before the loop. And finally, make sure you are closing your serial port and your file.

06-25-2015 08:43 AM
Awesome thank you so much 🙂