07-21-2025 08:27 AM - edited 07-21-2025 08:28 AM
Hello,
I am brand new to TestStand and have no experience so far (apart from the first training course in TestStand). I am also the first in our company and therefore unfortunately have no direct contact person.
I would therefore like to ask what exactly a VI for initializing an instrument looks like. More precisely, I would like to initialize an analog input (PXI-4304) and then read it out in the Main and make a decision. Finally, it should be closed again in Clear Up.
I am very grateful for any help. Thank you very much.
Greetings Lucas
Solved! Go to Solution.
07-22-2025 01:59 AM
Similar to the course.....
You initialize the driver session along with some general instrument settings (Setup)
before you do the actual measruement (Main)
and better not forget to de-initialize after yo are done (Cleanup)
07-22-2025 04:13 AM
Thank you very much!
I think, I first have to learn how exacly the DAQmx VI is working 😄
Just another Question, why am I passing "DMM" in the Actions around?
For example, in the setup there is a Parameter "DMM in" which hat the Value "DMM"? Whats the sense behind that?
07-22-2025 05:44 AM
@LucasHapple wrote:
Just another Question, why am I passing "DMM" in the Actions around?
For example, in the setup there is a Parameter "DMM in" which hat the Value "DMM"? Whats the sense behind that?
This is just a placeholder to show the usage of variables to pass around references/ sessions.
With DAQmx you'd have a variable type LabVIEWIOControl which holds the session used by the DAQmx driver.
07-23-2025 05:06 AM
When I Create a DAQmx Chanel in the setup, i have to pick a physical channel, but how can i just setup the analog input and pick a channel in the main sequence?
For example if I want to read multiple channel inputs one after another.
Or do I have to Inizialize every Channel for its own?
07-23-2025 11:52 PM
You can use differnt options with DAQmx. Yet this is rather a general DAQmx question than a TestSTand question.
I recommend working through the examples and tuorials for DAQmx.