11-09-2009 05:48 AM
Hi,
Earlier in each test case I use to initialize the cards and then close the cards once test is completed. This i use to do for each test case. But I am thinking it is not proper way of programming to initialise and close the cards every time. I want to initialize all the cards once user logins and close all the cards once user logs off/exit. So, by doing this will it not affect my program or execution? or is there any better method?
Regards,
Rajashekar
Solved! Go to Solution.
11-09-2009 06:12 AM
Hi Rajashekar,
Which HW cards are you referring to? can you name few of them?
Are you using teststand?
11-09-2009 06:22 AM
Hi,
I am not using Teststand but I am using LabVIEW 8.6 and the cards are PXI 5412, PXI 2532, PXI 6528, PXI 8431/8 etc,...
Regards,
Rajashekar
11-09-2009 06:31 AM
When you want to continuously read or write through NI cards, its always recommended to to ebgin the task, finish your task and then close the task. and not continuously open and close the task references.
But if your application does hardware read/write performance once in a day or so, then you can think of closing the reference after the hardware read/write is finished. But still opening the task reference in beginning and performing read/write operation will cause no harm in this case also.
11-09-2009 07:03 AM
Hi,
Suppose if i am using waveform generator cards, what i want to do is i will initialize the card(open the device id) when the software is executed and perform all the operation in the tests (when user performs some tests) i.e. generating different signals of diff. amp. and freq. and abort generation in each test case and before user closes the software / after he logs off i will close all the cards.
It means i want to initialize all my cards and close all my cards only once in my software i.e. when software executes and before closing the software.
Regards,
Rajashekar
11-09-2009 07:17 AM
Yes.
you can open the task ID at first and run the software, generate signals, close the ID/task when you quit the software.
11-09-2009 07:35 AM