LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Aquire two analog inputs & How to put in array

Hi Nitin,

 

Main concern is the single  counter value is printed ten times .... How to make it one time .

You need to change the condition for your case structure: right now you write the value when the signal is over the threshold limit. You only want to write when the signal is the first time over the limit so you need to detect a rising edge here!

 

Did I mention RisingEdge detection before?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 31 of 41
(900 Views)

Hi Mr gerd

 

Greeting to you

 

I need a support .

 

I am using report generation  fro excel . Whenever i am pushing data into excel using append to file it get into row .

 

I want to put in Coloumn.

 

 

Please help dear .

 

 

Warm regards

 

Nitin

0 Kudos
Message 32 of 41
(829 Views)

Hi Nitin,

 

I don't use RGT, so cannot comment on the behaviour of this very toolkit.

 

What I can comment is: when using Excel you can always provide a Cell location where the data is written to. You just need to suplly that cell "range"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 33 of 41
(825 Views)

Hi Gerd

 

I need a support

Please take  refernce of attahced image.

 

For saving data i am using 3 different excel . can i do it in a one?

 

Please tell the solution .

 

Thanks & regards

nitin

Smiley Happy

0 Kudos
Message 34 of 41
(812 Views)

Hi Nitin,

 

yes, you can.

 

Build your 6 1D arrays into a single 2D array! (It might take a liitle more effort when your 1D arrays have different length…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 35 of 41
(796 Views)

Hi Gerd

Thank you for youre quick response. I am delighted to see your support .

 

 

instead of doing with single array , i did with the logic as shown in pic.

 

I am facing a problem that only one/ two blocks data are captured in exel. not all.

 

 

Please review it .

 

 

 

Thanks & warm regards

 

nitin

0 Kudos
Message 36 of 41
(782 Views)

Hi nitin,

 

your TRUE case to save save the "whole" data set is called when atleast one of your "single" case structures is TRUE.

As you don't show what's inside the FALSE case of all your case structures I guess you simply output empty arrays in that case.

 

Solution: Don't do this!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 37 of 41
(765 Views)

Hi Gerd

 

Fine.

 

how to implement ? through single dimensional array ?

 

if yes then i don't know how to deal in this case .

0 Kudos
Message 38 of 41
(757 Views)

Hi Nitin,

 

use shift registers in the main while loop. Don't use them (or those feedback nodes) inside the case structures!

Then it becomes quite clear how to wire all your data…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 39 of 41
(753 Views)

Hello Mr gerd

 

Greetings to you !

 

i need a support .

 

I am having torque sensor whose output is analog voltage.

 

at idle condition it will give some micro volts  and the same can be seen on Vi also if we take this input to data aquisition card.

 

I want to do a logic say "when i start running the VI and after that if a button is there say b1 and i clicked it  then it should make the value coming as zero(arbitrarily value coming in milli volts ) bascially saying level shifting  ie  making it as zero then i will start the  torque sensor to get the data  ".

 

Thanks & regards

Nitin

 

0 Kudos
Message 40 of 41
(734 Views)