LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change x-axis time setting of look up table in control design and simulation loop.

hello ,I am developing  a labview programme based DAQ application to acquire signal of minimum 50 channels.using NI PXI 1031 chassis and multifunction DAQ card NI PXI 6225.I wrote programme and in that I have used look up table VI within control design and simulation loop.As I am acquiring CCS temperature sensor data in the form of voltage and wants to change this voltage signal to its corresponding temperature value given in look up table. I achieved that but I am facing problem in the simulation time of the look-up table.data acquistion time is not match with my computer time. X- axis time setting is not change of graph used for plotting the output of simulated data. It has some default value which is fix.So I want help ,that how can I change the time setting of look-up table VI or time setting of control design and simulation loop.

0 Kudos
Message 1 of 4
(2,397 Views)

Hi mbskk,

 

first: when you want to attach images then please attach images (JPG, PNG). Don't attach some proprietary document formats! Or even better: attach real VIs!

 

- Don't use the CS loop. Use a standard while loop.

- Use a standard point array and the Interpolate1DArray function to realize a LUT.

- Don't convert an array to a cluster to be able to add up the array elements. Use ArraySubset and AddArray.

- You need to set the waveform timestamps correctly, when you want to have current time on your chart. This isn't done automatically by the second function in your "Look-up table" marking…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,391 Views)

sorry  but I don't understand why you are saying that I don't use CS loop when already there is look up table VI, than why I should use standard point array and the Interpolate1DArray function to realize a LUT.and I have set timestamp of correctly but that's I am saying that its not change when I go in x-axis setting and try to change it.

0 Kudos
Message 3 of 4
(2,340 Views)

Hi mbskk,

 

why you are saying that I don't use CS loop

It is simply overkill for that purpose (and a lot of other RubeGoldberg too). Did you check all those DAQmx example VIs coming with LabVIEW? They never use any CS loop…

 

when already there is look up table VI, than why I should use standard point array and the Interpolate1DArray function to realize a LUT.

Because it is the very same operation - with no additional overhead…

 

I have set timestamp of correctly

Where did you do so? I cannot see this…

 

I am saying that its not change when I go in x-axis setting and try to change it

You use charts and so will not have many options to set their x axis…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,321 Views)