LAVA 1.0 Content Posted November 1, 2007 Report Posted November 1, 2007 QUOTE(RodolfoAcialdi @ Oct 31 2007, 01:07 PM) Hi.I'm acquiring Quick before he completes the questions, lets guess what the answer is! Under data manipulation there is a "join" operator that will take two u8 and return a single u16. Did I get close? Ben Quote
RodolfoAcialdi Posted November 1, 2007 Author Report Posted November 1, 2007 Very very Close!!! Does it work for serial transmition? QUOTE(neB @ Oct 31 2007, 06:28 PM) Quick before he completes the questions, lets guess what the answer is!Under data manipulation there is a "join" operator that will take two u8 and return a single u16. Did I get close? Ben Quote
LAVA 1.0 Content Posted November 1, 2007 Report Posted November 1, 2007 QUOTE(RodolfoAcialdi @ Oct 31 2007, 01:34 PM) ...Does it work for serial transmition? Your question is a little like asking "Will a bolt work for an automobile?" Sure, if you use it correctly. Try it out and if you have trouble, post an image of your code and we'll take a closer look. Ben Quote
RodolfoAcialdi Posted November 2, 2007 Author Report Posted November 2, 2007 QUOTE(neB @ Oct 31 2007, 07:31 PM) Your question is a little like asking "Will a bolt work for an automobile?"Sure, if you use it correctly. Try it out and if you have trouble, post an image of your code and we'll take a closer look. Ben I found a better way to do this... i'll use just 1 byte. I'll do this conversion in the firmware of the uC. Thanks. Quote
hooovahh Posted November 6, 2007 Report Posted November 6, 2007 This may show my LabVIEW immaturity but I didn't know that operation existed. Previously I would convert the numbers to strings, concatenate the strings, then convert back to the number. Quote
RodolfoAcialdi Posted November 13, 2007 Author Report Posted November 13, 2007 QUOTE(hooovahh @ Nov 5 2007, 05:47 PM) This may show my LabVIEW immaturity but I didn't know that operation existed. Previously I would convert the numbers to strings, concatenate the strings, then convert back to the number. Thanks hooovahh! I'll use this idea about 'concatenate the strings' in another problem... I just decided to use 8 bits at a rate of 17820ksps. I guess it's enough to sample a 60Hz signal. Thanks Anyway. By the way, i'm having troubles converting the string buffer from the read VISA VI, into a number (a voltage especifically). I'm doing the right conversion (i guess) but the final number is totally different from the real one, that i read from windows hyperterminal. Here goes the project. If anybody have any idea, please tell me. Tthanks a lot. Quote
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.