09-23-2011 01:05 PM
I'm trying to set different sensitivities across 32 channels. Channels will be 100mV/g, 500mV/ips, and 6mV/psi. I'm trying to use the "SVL Scale Voltage to EU" VI. I've set it to "N Ch, N Info" and created a constant to set my engineering units. This VI makes you choose one sensitivity for all of your channels. How can I set something up where I can adjust the sensitivity separately on every channel?
I guess I need a 2D array of cluster of six elements, but the first thing the SVL Scale Voltage does is make sure the matrices of the Signals and Channel Info are the same size. I'm hoping I don't have to change the SVL Scale Voltage code much.
Any help would be greatly appreciated.
09-23-2011 03:48 PM
I tried converting the dynamic data to an array, dividing it by an array with the sensitivity correction factor, then converting it back to dynamic data. I can't get a graph to display the data now, and now the data is "Dynamic" instead of "Waveform (DBL)",
09-26-2011 11:03 AM
Hey LabViewer,
It is possible to set a different scale and sensitivity to each channel on your DAQ task. The easiest way would be to create a new task in Measurement and Automation Explorer (MAX).
To do this, find your device under "Devices and Interfaces" in the file tree on the left side of the window of MAX.
With your device selected, click on "Create Task" on the toolbar above.
A window will pop up for you to name the task.
Select the type of measurement you will perform, in this case Voltage.
Then you may select each channel you will be utilizing (you may select multiple channels).
Then the window will disappear and your new task will be added to the file tree and already be pulled up.
From here you can set the range and any custom scale you wish to each individual channel.
To add this task to your LabView code, you can drag and drop it from the file tree to your block diagram.
I hope this helps!
Kyle K.
09-26-2011 11:11 AM
Hello again,
In order to take your dynamic array and make it a waveform again, you will need to use the "Build Waveform" function. This is because a waveform has multiple pieces of data that work together, typically a Y-value, a dt-value and a d0-value. If the only thing you are changing is the Y-values, you can get the dt and d0 from your original waveform using the "Get Waveform Components" function and wiring those outputs directly to your "Build Waveform" function.
Kyle K.