NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

What does a Setup / Initializing VI look like

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 6
(316 Views)

Similar to the course.....

 

You initialize the driver session along with some general instrument settings (Setup)

Oli_Wachno_0-1753167443074.png

 

before you do the actual measruement (Main)

 

Oli_Wachno_1-1753167493193.png

and better not forget to de-initialize after yo are done (Cleanup)

 

Oli_Wachno_2-1753167557095.png

 

 

 

 

Message 2 of 6
(287 Views)

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?

 

Screenshot 2025-07-22 111238.jpg

 

0 Kudos
Message 3 of 6
(282 Views)

@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?

 

Screenshot 2025-07-22 111238.jpg

 


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.

 

Oli_Wachno_0-1753180965954.png

 

Message 4 of 6
(275 Views)

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?

0 Kudos
Message 5 of 6
(259 Views)
Solution
Accepted by topic author LucasHapple

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.

0 Kudos
Message 6 of 6
(246 Views)