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.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about “SetWaitCursor(1);”

Solved!
Go to solution

 

Hi

 

Currently I study the program below and have some question needed advice:

 

A) What is the reason  to need “SetWaitCursor(1);” on the below code?

B) Does it cause a run time delay on the whole program? 

C) can we remove " SetWaitCursor(1);” from the below code?

 

code

//daqmx configure code

SetWaitCursor(1);

DAQmxErrchk (DAQmcCreateTask("",&taskHandle));

DAQmxErrchk (DAQmxcreateDIChan........

 

0 Kudos
Message 1 of 3
(4,197 Views)
Solution
Accepted by chris_chua

 

  1. Possibly the desire to let the user know about an operation that can take some time by changing the cursor shape to the hourglass
  2. As any code it will take some microseconds to execute, if you call it a delay depends on your time scale 😉
  3. Yes, you can safely omit the command - and the corresponding SetWaitCursor(0), too.
0 Kudos
Message 2 of 3
(4,194 Views)

I am wondering if your questions have been answered...

0 Kudos
Message 3 of 3
(4,111 Views)