07-03-2013 12:39 PM
Hi there
I'm trying to write a command to an instrument to set internal triggered delay to some time in micro (μ) seconds, miliseconds and nanoseconds by using this string format: SOURce1:BURSt:TDELay 20 ns.
The inputs for the delay timing are: <units>::=[s | ms | μs | ns]
The code successfully writes everything from seconds (default value), miliseconds and even nano seconds but when i try to do micro (μ) seconds labview it reverts to the default value of seconds....
I know the ASCII character for mu is 230 but i don't know a way to input this into labview 2012.
I have gone on a couple of different forum topics but have not been able to successfully implement a solution yet.
Any help would be greatly appreciated
Solved! Go to Solution.
07-03-2013 12:47 PM
Set your string constant to hex display and enter E6 at the correct spot in the string. This is the hex value for the decimal value 230.
07-03-2013 01:38 PM
When i did that the output in the probe was "æ".
07-03-2013 01:46 PM - edited 07-03-2013 02:13 PM
One problem you might have is that anything above 128 on the ASCII character set is part of the extended character set. And there is no established standard as to what characters go where. So you say that decimal 230 is the mu character. Are you sure that is the byte value the device is looking for? It might be that the character set that your PC is using has the character ae as the character for that ASCII value. That is the character that shows up for me when I look at Windows character map.
It doesn't matter what the character looks like to you on the screen, as long as you are sending the correct byte value to the device in the serial string.
So you need to look at the manual for the device and see what it expects to send. I find it particularly odd that the device is expecting you to send a greek character as part of the string when the everything else is being sent as normal digits or alphabetic characters.
07-03-2013 01:59 PM
07-03-2013 03:11 PM
I don't belive it...
using a"u" worked. Good call sir lol
Thank you all for your time and energy reading and responding to my post.
It's astonishing that labview doesn't support greek letter inputs or provide a symbols palate.
07-03-2013 03:19 PM
@proph wrote:
It's astonishing that labview doesn't support greek letter inputs or provide a symbols palette.
LabVIEW does support Greek letters or other symbols. They are all part of fonts, which you can change for different controls. What you are dealing with has nothing to do with fonts, but the basic ASCII character set.
07-03-2013 04:37 PM
Once again, Dennis is the kitten's μ 🙂
-AK2DM
07-03-2013 05:13 PM
07-03-2013 05:21 PM
@proph wrote:
I don't belive it...
using a"u" worked. Good call sir lol
Every instrument I have worked with uses "u" for micro. Reason being that they want to stay with the standard ASCII character set, which μ is not in.