03-15-2018 03:43 AM
Hello
I am trying to control the keithley 2400 to be able to adjust voltage current and other values and get real-time readings from it.
I am at the starting steps now and i should mention im new to labview.
what i did till now is controling the values i need with my VI however the VI closes and re initializes every time but i dont want it to do that. what i want it to do is initialize and configure measurments in the beginning once then go into a section where the user can control the values of current and voltage and such openly without the need to close then reinitialize again.
I am trying to do it using loops but had no success yet.
My end goal is to continue this VI and have a continuous reading from whatever i need to read.
I attached bellow a screenshot of my VI. The part that i need to be running continuously is the part in the while loop. I want the user to be able to adjust all the values needed while getting measurements without the need for the program to reach the close step then re initialize.
Regards,
Ahmad
03-16-2018 03:52 PM - edited 03-16-2018 03:52 PM
Hi,
I think it'd be helpful for you to use a state machine. You can find examples of state machines in the Example Finder. Go to Help -> Find Examples and search for state machine. You can also reference the white paper linked below to get more information on state machines.
You can initialize your values in one state and read in values in another state.
http://www.ni.com/white-paper/3024/en/
Thanks,
Misbah