03-21-2012 04:38 PM
Hi,
I am using Universal library to read a voltage from a DAQ device, and it seems the reading function is putting it into an 1-D array then into a graph.
I need to get this voltage and multiply by a number and could not do that as it is in array format.
How would I be able to multiply the array content by a constant numeric?
Thanks
Solved! Go to Solution.
03-21-2012 04:47 PM - edited 03-21-2012 04:51 PM
The standard multiply function does this. Wire the array into one input and the numeric value into the other.
03-24-2012 04:53 PM
Hi,
Thanks for the reply, did not work, I have attached an image illustrating it.
03-24-2012 06:18 PM
That image shows nothing about your problem. It simply shows a 1D waveform array being output. That can be multiplied by a constant as previously explained, so just go ahead and do it.
03-25-2012 05:19 AM
Hi,
I did and showed broken connection, see image.
03-25-2012 05:51 AM - edited 03-25-2012 05:54 AM
When you are trying to multiply the value you have to take the value from the waveform as shown below else while reading the value itself you could have chosen 1D double instead of waveform.
Good Luck
03-25-2012 06:23 AM
Hi,
You are a star P Anand, that what I am looking for, how to specify the output from the UL.function.
I am new to Labview and to UL.
Thanks everybody for replying really appreciate your help.
03-25-2012 07:15 AM - edited 03-25-2012 07:17 AM
Using the Get Waveform Component is just absolutely unnecessary and trying to get a scalar output does not make any sense based on your original question. What do you really want?
03-25-2012 07:37 AM
03-25-2012 07:40 AM - edited 03-25-2012 07:41 AM
Don't see how adding a for loop and a get waveform component is any simpler for a beginner. The mistake the op made was wiring the scalar and that just made no sense.