From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

further improvement

Solved!
Go to solution

Are any further improvements necessary?If so what could they be?

Prac2_part_C.pngPart_C_No.16(rahman).png

0 Kudos
Message 1 of 11
(3,552 Views)

Well, unless you tell us what the program is supposed to do, we cannot really suggest improvmenets. We also cannot inspect or debug a picture, so please attach your VI instead.

 

Does it work as you want it to? Most of the code does not look very impressive and looks quite fragile. There are also race conditions.

 

Please attrach your VI, tell us what it is supposed to do. Can you make a version that does not rely on any DAQ hardware, but simulates everything in software?

0 Kudos
Message 2 of 11
(3,533 Views)

this coding about reaction time measrument..here my attachment.

0 Kudos
Message 3 of 11
(3,486 Views)

the question at part c number 18...

0 Kudos
Message 4 of 11
(3,484 Views)

It is your homework, so what do you think can be improved ?

 

What is currently the problem with the code?

What was the result of your test of the code?

Message 5 of 11
(3,472 Views)

There are no any problem but at the result you can see that reaction time 0.2 second and hardware timed reaction time 200ms.The question is how to improve the system so that reaction time and hardware timed reaction time become zero or near to zero( for exampe 0.0003 s)?

0 Kudos
Message 6 of 11
(3,463 Views)
Solution
Accepted by topic author rahmantahir

There are no any problem but at the result you can see that reaction time 0.2 second and hardware timed reaction time 200ms.The question is how to improve the system so that reaction time and hardware timed reaction time become zero or near to zero( for exampe 0.0003 s)?

0 Kudos
Message 7 of 11
(3,462 Views)

There are no any problem but at the result you can see that reaction time 0.2 second and hardware timed reaction time 200ms.The question is how to improve the system so that reaction time and hardware timed reaction time become zero or near to zero( for exampe 0.0003 s)?

0 Kudos
Message 8 of 11
(3,462 Views)

You loop rate is based on the number of samples you are acquiring in the DAQ.  Since you are setting a loop rate of 100ms using the DAQ Assistant (# samples/sample rate), then 100ms is as accurate as you are going to get.

 

The other issue you have are race conditions.  You have no control of when the DIO will go high vs when it will be read from the DAQ.  If you used the error wire to dictate data flow, then you can see the DAQ reaction time go to 0 (the first iteration is i = 0).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 11
(3,442 Views)

please any suggest that can be improve in part A, part B and Part c??Spell Check

Download All
0 Kudos
Message 10 of 11
(3,192 Views)