Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

hi,

Solved!
Go to solution

sir!

I have 2 questions regarding coding of my application in labwindows.

1).Sir timer used in labwindows by default has 0.01s(10miliseconds) minimum interval,sir how can i achieve 0.001s(1milisecond) time interval by using timer?

2).Is there any option in labwindows that one can run an application made by me but will not be able to open or see the coding or making any changes in coding.

Thanks.

Imran

0 Kudos
Message 11 of 44
(3,293 Views)

Imran,

 

Can you check and see if the file size of the DAQmx executable is 992MB?  If it is not, it appears your download may have been incomplete or corrupted, and I would suggest re-downloading (using the first link for the NI downloader is more reliable for ensuring a complete download occurs with less chance of corruption).  Hopefully that will allow you to run the DAQmx installer.

 

Regards,

National Instruments
0 Kudos
Message 12 of 44
(3,285 Views)
Solution
Accepted by Emran

Also, This link...

 

http://digital.ni.com/public.nsf/allkb/7B26A20BF1C7C7928625607F007F1BAF?OpenDocument

 

...provides an article regarding use of the timer function in LabWindows.

 

While this tutorial...

 

http://zone.ni.com/devzone/cda/tut/p/id/3212

 

...provides a detailed description of how to utilize the LabWindows CDK (Create Distribution Kit) for making your LabWindows projects distributable, which includes limiting back-end visibility for the end-user.

 

Let me know if you have further questions.

 

Regards,

National Instruments
0 Kudos
Message 13 of 44
(3,277 Views)

Dear sir Chris D!

After installation of this driver sir the problem is still there no any change in problem sir.Now please give me some other tips to overcome my problem n thanks for answers regarding labwindows.

thanks

Imran 

0 Kudos
Message 14 of 44
(3,261 Views)

Imran,

 

You may need to change the Data Transfer Mechanism from DMA to IRQ.  Instructions to accomplish this can be found here:

 

http://digital.ni.com/public.nsf/websearch/C326F7D33CA6DB0E86256DFE008043B7?OpenDocument

 

That or implementing a start delay of 1ms or so to give the motherboard some time to catch up could solve this issue. Information for this can be found here:

 

http://zone.ni.com/devzone/cda/epd/p/id/905

 

Regards,

National Instruments
0 Kudos
Message 15 of 44
(3,239 Views)

Respected sir Chris D!

 

With the help of your kind tips today  my problem is solved sir ,by setting data transfer mechanism to intrrupt in c file of my application in labwindows envoirnment(using daq function setchanal attribute ).I am vary vay thankful to you sir and to ni for always being there to solve my problem sir i can't find words to thank you sir thank you so so so  much.

Rgards

Imran

Pakistan. 

 

 

0 Kudos
Message 16 of 44
(3,218 Views)

Imran,

 

Glad to hear things are working!  As always we are happy to help.

 

Best of luck,

National Instruments
0 Kudos
Message 17 of 44
(3,208 Views)

sir!

 

Now ,one problem solved but there is something wrong still.Now ,by changing data transfer mechanism from dma to interrupt it is successfully generating sinewave above 100Hz and above1kHz,but sir as i try to "read" sine wave above 100Hz or 1kHz at any of my daq device analog input,it reads successfully but after a while (about 4 to 5 seconds)  input wave becomes not readable  and looks like noise (i.e fails to read this wave after a little while).Here i want to clear you sir that nothing is  wrong with applied wave because oscilloscope reads it accuarately.

 

Additionally sir i also set analog input transfer mechanism to interrupt ( in surce file of my application)but problem don't want to leave me.

Sir i have also some  questions regrding word report gneration.

1)How can i add border and grid lines to tablel generated in word report ?

2) In word report table how can i fill a cell of table with a data type other than character?

3)How can i add border to a page?

 

 

Sorry for so many questions at the same time.

Thanks.

Imran

 

0 Kudos
Message 18 of 44
(3,195 Views)

Hello Imran,

 

First, I will ask that you create a new forum thread for your questions regarding generating a report in Word.  We prefer to keep threads directed towards a single issue, and you will have a better chance of other users seeing your new questions if you start new threads.

 

I'd still be happy to help you with the input issue in this thread, though.

 

Just to clarify, you have your analog output transfer mechanism set to interrupt (which works), and you see this behavior regardless of whether the analog input transfer mechanism is DMA or interrupt?

 

Regards,

National Instruments
0 Kudos
Message 19 of 44
(3,183 Views)

Hi Dear Sir Chris D!

 

Sir actually to read analog input i'm inputting the wave which one i am genarating (by intrupt taransfer mechanism) from my daq device,and than this problem is seen,but sir by dma transfer mechanism method as you know i can't genarate the wave of my interst.The waves(less than 100hz) which can be genarated by dma(in my pc) can be successfully read by daq device and for more than 100z i need to change transfer mechanism from dma to intruppt mechanism methed(in my pc) and as i input this to analog input ,it reads properly only for few seconds after than it looks like noise.(at the mean while if i check this wave at oscilloscope,oscilloscope tells me that  there is no wrong with the genarated wave)but daq device could not read it properly.

Thanks

Imran

0 Kudos
Message 20 of 44
(3,173 Views)