LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify program sequence

Function of program
A current is first injected into the resistive sample, voltage is measured across it. If the measured voltage is not within the range (0.5-5V), the program will have to automatically adjust the current such that the measured voltage is within the range specified. However, existing program will only inject the current after voltage is measured, which does not fulfil our requirement. How do I modify my program so that the program sequence will execute in this way? Pls help,Thanks!!
Download All
0 Kudos
Message 1 of 3
(2,733 Views)
Use State Machine instead secuence structure.
Insert "State Machine" in line "Ask" in this forum and you will get many discussions how to implement "state machine".

Here one of them:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000002E090000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=state+machine&USEARCHCONTEXT_QUESTION_S=0
0 Kudos
Message 2 of 3
(2,733 Views)
Are you looking tfor a continous adjustment unitl the level is acceptable?
You might want to try passing the data through some case statemenst and
adjusting it there, then continuing on with the program after it has
adjusted from that point.

I amnot quite sure what you mean, but I hope it helps.

"Clara" wrote in message
news:506500000008000000D64F0000-1023576873000@exchange.ni.com...
> Function of program
> A current is first injected into the resistive sample, voltage is
> measured across it. If the measured voltage is not within the range
> (0.5-5V), the program will have to automatically adjust the current
> such that the measured voltage is within the range specified.
> However, existing program will only inject the current after voltage
> is measured,
which does not fulfil our requirement. How do I modify my
> program so that the program sequence will execute in this way? Pls
> help,Thanks!!
0 Kudos
Message 3 of 3
(2,733 Views)