06-19-2006 06:57 PM
06-20-2006 06:08 AM
Hi Alex,
How does the instrument maunal define <boolean>?
Usually its "outp 0 | 1 | OFF | ON"
If it responses to 0 or 1 then you can convert your boolean to numeric 0 for False and 1 for True.
Regards
Ray Farmer
06-20-2006 05:10 PM
Ray
The Boolean is a '1' for on or a '0' for off.
Using a normal "visa write" which is a alpha numeric transfer I have been unable to find a way to just transfer the boolean. The equipment responds with a command failure.
I have tried transfer as a binary pattern in the high level of visa transfers but labview returns a not allowed in this session.
Thanks for your reply
Alec
06-20-2006 10:09 PM - edited 06-20-2006 10:09 PM
Message Edited by Dennis Knutson on 06-20-2006 09:10 PM
06-21-2006 01:03 AM
Hi,
Its as Dennis says,
Just send the string "outp 0" to set the output off and "outp 1" to set the output on.
If you have a boolean control, wire this to the boolean to numeric converter then use one of the string functions to concat or format the string with "outp ".
In fact there is a string function that provides a string output based on a boolean input.
Regards
Ray Farmer