Value of Numeric control in script, LabView -


i trying control keithley 2612a sourcemeter using labview. have installed appropriate drivers , managed connect instrument using visa. experimenting scripting language, instrument uses.

is possible use numeric controller - knob example - , use value in script loaded instrument? don't have enough reputation points add images.

edit

on = 1 off = 0  function hello()     display.clear()     display.setcursor (1,7)     display.settext ("done :)") end  smub.reset() smub.source.output = on  --set measurement integration time smub.measure.nplc = 1 smub.measure.delay = 0.05  --configure reading buffers smub.nvbuffer1.clear() smub.nvbuffer1.appendmode = 1 smub.nvbuffer1.collecttimestamps = 1 smub.nvbuffer1.collectsourcevalues = 0 smub.nvbuffer1.fillmode = smub.fill_once  = 0, 0.5, 0.01     smub.source.levelv =     reading  = smub.measure.i (smub.nvbuffer1) end  delay(5)  hello()  smub.source.output = off  delay(1)  display.clear() display.setcursor(1,1) display.settext(string.format("%g", smub.nvbuffer1[1])) delay(5) display.clear() display.settext(string.format("%g", smub.nvbuffer1[50])) 

block diagram: http://i.imgur.com/pgu0ous.png front panel: http://i.imgur.com/duhudpo.png

labview has standard string manipulation primitives, , can accomplish goal using string substitution: place sentinel string in script , replace value knob.

example

here, i've used __buffer_number__ unique string in script format input terminal. labview searches string , replaces knob's current value.

enter image description here

block diagram

enter image description here


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -