ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

programing PXI-6509

0 Kudos
Message 1 of 3
(3,016 Views)

Hello Norak,

 

Second option in the best options not just because it is faster (the system has to reserve and liberate resources each time you create, start and clear a task) but it save memory and mange better performance. If you are acquiring a signal continuously, with the first method you will have gaps in the signal. You can check the NIDAQmx examples in your PC and all continuous acquisitions implement the second option.

 

Examples used to be installed in this path: C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples

 

Regards,

0 Kudos
Message 2 of 3
(2,997 Views)

Hello Sendia,

 

thanks for your replay,

I checked examples in NI-Finder (which I check that are similar to those installed in disk C)

and I see you are rigth that in continuously acquiring the examples shows similar code to option 2 (in both cases Analog and Digital(trigger events)),

but in Single Digital writes or read (my case) I think examples shows something similar to option 1

 

C:\Documents and Settings\All Users\Documentos\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Digital\Read Values

 

It´s true that I have to do several writes or read to the same channel in diferents moments while the program is running,

so I suppose that option 2 is also better for this case,

 

thanks

 

 

 

0 Kudos
Message 3 of 3
(2,985 Views)