05-10-2007 04:12 AM
05-11-2007 11:08 AM
05-11-2007 04:34 PM
05-14-2007 12:00 AM
Hi Matt and Brandon,
Thanks for the reply and the suggestions. Before I starting to develop the project I really struggled to find the correct architecture.
We have a 14-slot PXI system (all slots accupied) along with lots of power supplies and stuff.
The driver variety was frigthening at first : C/C++ dll's, IVI-C, IVI-COM, even some .lib files including the DAQmx C library.
So, I thought that's what TestStand was meant to do. All these different component technologies can be used in a single standard environment.
I do not generally try to avoid coding but I admit that the ease of use tempted me.
At first it did not feel completely right to me either. However, after a few trials I saw that it worked and I convinced myself that this is a correct way of doing it and the bad feeling is because I did not do it this way very often.
So, Brandon, what is the main cause of not doing it this way? Is it just a feeling or have you seen cases where such an aprroach result in problems?
Thanks again,
05-14-2007 12:36 AM - edited 05-14-2007 12:36 AM
Matt,
When I specify the module as the .NET DAQmx dll in TS, only two classes can be seen in the list: NIDAQmx.DAQmx (only action available is Call Method) and NIDAQmx.DAQmxConstant (only action available is Get Property). The methods and properties in these classes are all marked as static in the drop-down list.
Doesn't that mean that I should call them without an object instance?
Actually, I tried to use the library in a simple application to read some digital I/O lines, some functions work like reset, create task, assigning channels but some don't work, like reading digital input lines, generating analog output voltage.
I could not find the SetDevicePowerUpState method that you mentioned in the list.
It looks like we are not talking about the same dll.
I attached the one I am using in a recent post of mine, which is about the DAQmx .NET library.
Here is the link : http://forums.ni.com/ni/board/message?board.id=330&message.id=14955#M14955
Message Edited by ebalci on 05-14-2007 08:44 AM
05-14-2007 08:37 AM