LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to set the code's running time to 2 sec/ 3 sec/ 5 sec

Solved!
Go to solution

Hi,

 

Thanks for your reply.

I did not intentionally use an orange wire connection. So, if you don't mind, could you please share what Orange connections indicate?

 

Kind regards

Hasham

0 Kudos
Message 11 of 31
(582 Views)

@Hasham622x wrote:

I did not intentionally use an orange wire connection. So, if you don't mind, could you please share what Orange connections indicate?


Did you do any LabVIEW basics courses until now?

Do you know what the wire colors indicate (blue, orange, green, pink, and so on)? This is FUNDAMENTAL LabVIEW knowledge…

 

Orange wires indicate floating point datatypes, but in this data conversion we ALWAYS explained how to handle blue integer datatypes…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 12 of 31
(576 Views)

Also a "value(sgnl)" property makes no sense whatsoever here. You really (really!!!) need to learn the very basics before jumping into the deep end.

 

Incrementing is done with integers using shift registers and linked tunnels, not with property nodes! Knowing the difference between orange and blue is very basic.

 

Your shift register at the bottom still makes no sense, because you never use the output. All it does is waste memory!

 

If you've done all the tutorials and this is still very difficult for you, maybe programming is not your thing.

0 Kudos
Message 13 of 31
(559 Views)

Hasham622x_0-1720744741599.png

Hi ,

 

Thanks for your reply and for your guidance. I correct the code but still it is giving wrong data for reference I also attached excel sheet pic which shows wrong data and only 8 columns as I should get 16 columns of array. If you don't mind, could you please guide me how I could correct this error so my code could work in right direction.

 

Once again thank you for your guidance.

 

 

Kind regards 

 

Hasham 

0 Kudos
Message 14 of 31
(536 Views)

Hasham622x_0-1720745023652.png

Hi,

 

Thanks for your reply. you are right I am lacking in basics of LV due to that I am again and again stucked in these types of mistakes but by these mistakes I am learning, and I am happy you are pointing my mistakes and guide me to do code in right direction. I correct that mistake and still getting wrong data and only 8 columns array as I should get 16 columns-based array so if you don't mind could you please guide me.

 

Kind regards

Hasham

0 Kudos
Message 15 of 31
(534 Views)

and Value and value signal as property node I introduced within conditional loop so I could get number of Iterations at the end of code.

0 Kudos
Message 16 of 31
(540 Views)
Solution
Accepted by Hasham622x

Hi Hasham,

 


@Hasham622x wrote:

Thanks for your reply. you are right I am lacking in basics of LV due to that I am again and again stucked in these types of mistakes but by these mistakes I am learning,


As you don't apply our suggestions and still present the same buggy code again and again we get the impression you DON'T learn from your mistakes!

 


@Hasham622x wrote:

 I correct that mistake and still getting wrong data and only 8 columns array as I should get 16 columns-based array so if you don't mind could you please guide me.


Because you didn't correct your mistake (completely)!

You STILL use the wrong datatype in the conversion function AS CAN BE SEEN by the coercion dot at the "channel data" array indicator!!! Set the correct datatype for the unflatten function…

 

Why is your block diagram STILL so large and unorganized?

Why do you STILL use those property nodes for the counter?

 

Please learn from this:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 17 of 31
(526 Views)

@Hasham622x wrote:

and Value and value signal as property node I introduced within conditional loop so I could get number of Iterations at the end of code.


That statement makes absolutely no sense.

Do you even know the difference between a value and value(sgnl) property?

There is no such thing as a "conditional loop"

 

Giving up helping you because you constantly ignore all our suggestions.

 

Message 18 of 31
(520 Views)

Hi,

 

Thanks for sharing the example. now the code is running and saving data in the right format.

Once again thanking you for your guidance and suggestions .

 

 

Kind regards

Hasham

0 Kudos
Message 19 of 31
(489 Views)

Your code is still a horrible hairball full of unnecessary code and way too many wire bends.

 

  • Why is the front panel and diagram maximized to the screen
  • Why do you do exactly the same count in orange and blue in parallel?
  • Why do you still build your elapsed times into an array if you never even look at that array?
  • When you save to the delimited file, it seems pointless to include the last non-averaged trace. Just save the averaged data..(You could even write it as last row to the same file!)
  • etc.etc
Message 20 of 31
(465 Views)