LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My Scaling VI running slow

Solved!
Go to solution

@GOB34 wrote:

Each of my channels has a different scale factor. It seems really messy and cluttered to have to use this approach for many channels.  


If each channel has a different scale factor, you have (however you choose to handle it) a "messy situation".  You are going to have to apply "scaling" to the data at some point, either before acquiring/saving it or after acquiring, applying the scaling when you attempt to analyze the data.

 

I've tried both ways, and strongly support figuring out the scale factors before starting acquisition and applying scaling in defining the various A/D channels, so that what I saved were are all in the same units, able to immediately be plugged into analysis routines because they were all in physical units.  You will, of course, want to save a small "configuration" file that allows you to "track" the calibration data that you (should have) used to set the scale factors.  If you are using Sensor A, then all of the Calibration files should be consistent, allowing you to trust the data saved as "Gallons/minjute" or "Degrees Celsius" or "Acceleration in g's".

 

Bob Schor

Message 11 of 29
(196 Views)

This is a great help, thanks Doug.

 

One question - are the Min and Max values going into the "daqMX create channel" in the raw units (i.e. Volts) or the scaled units (i.e. pressure)?

 

Thanks!

 

0 Kudos
Message 12 of 29
(161 Views)

Compared to anything else going on in a typical program, a simple linear scaling of data is virtually never a bottleneck, so I don't understand what's going on here.

 

I still don't know what these indicators are (they look like scalars), so why manipulate all these raw waveforms if we are not even interested in t0, dt, and most of the [Y] except one? (They can't be charts, else they would be brown)

 

altenbach_0-1726066926663.png

 

0 Kudos
Message 13 of 29
(149 Views)

One question - are the Min and Max values going into the "daqMX create channel" in the raw units (i.e. Volts) or the scaled units (i.e. pressure)?

scaled units

Doug
NI Sound and Vibration
0 Kudos
Message 14 of 29
(144 Views)

Hi Altenbach-

 

I appreciate the question-


I use the timing data elsewhere in the VI, like for logging.

 

0 Kudos
Message 15 of 29
(134 Views)

@GOB34 wrote:

I use the timing data elsewhere in the VI, like for logging.

 


I was not asking about timing, just about these indicators.

0 Kudos
Message 16 of 29
(127 Views)

Yes, these are just indicators.

0 Kudos
Message 17 of 29
(123 Views)

Thanks for the continued help.

 

One stumbling block I am running into is assigning all the channel names, slopes etc to the cluster - see the attached VI.

 

I have what I think is the correct structure for the overall VI but I am running into what I think is a basic indexing issue where I am not filling the cluster in the first for loop.

 

Thanks for the help!

Download All
0 Kudos
Message 18 of 29
(118 Views)

@GOB34 wrote:

I have what I think is the correct structure for the overall VI but I am running into what I think is a basic indexing issue where I am not filling the cluster in the first for loop.

Try to change 'ChannelsAndCalibrations' constant from array to element. 

Right now you have 8 indexing input tunnels and the one with the lowest number of elements controls the loop count, which is 0 from the array constant.

Message 19 of 29
(101 Views)

I appreciate the reply UliB -

 

Sorry if I need a little more help implementing what you say - 

 

this is what I want my "ChannelsAndCalibrations" to be, with values filled in:

 

GOB34_0-1726073452227.png

 

So right now it is a 1D array of a cluster of 7 elements.

 

Can you explain a bit more to help me change this setup?

 

Thanks!

0 Kudos
Message 20 of 29
(92 Views)