LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

inserting a user input into a string.

Hello.
I want to insert a value(numeric) from the user using control into a constant string.
Eg: i have a string for SCPI command say CURRent 5 : sets the current to the instrument as 5Amps. I want to have this numeric be a user input to a string of CURRent....with a point that user does not inputs any scpi commands, just enters the value for  the commands that are going to be executed.
 
Is there any way that this is possible. like any insert or something.....your suggestions would be of immense help.
 
Thanks
Ravi
 
0 Kudos
Message 1 of 4
(3,085 Views)

You can use Format Into String. With a numeric control wired to the input, your format string could be something like CURR:%f.

I would suggest you look at some of the existing drivers, the driver guidelines, and the instrument driver wizard.

Message 2 of 4
(3,080 Views)
Well, just use a numeric control and format the value into a string as desired.
Message 3 of 4
(3,077 Views)
thanks a bunch, you all rock!!
0 Kudos
Message 4 of 4
(3,052 Views)