07-27-2009 04:02 AM
Hi,
for a Visca cam command I have to convert a numeric input into a string in hex display mode. Then I need the string subset and put a "0" in front of each single number from the string. e.g. numeric input is 100, the string in hex display mode shows 0064. From this I need to have 00000604. But the string subset function divides 0064 into 00 and 64. How can I put a"0" in front of each single number? Is there any function I can do this?
Thanks for help
Mark
Solved! Go to Solution.
07-27-2009 04:18 AM - edited 07-27-2009 04:20 AM
Hi Mark,
here's an example:
The "split number" can be replaced by Q&R too...
Basically you have to split your number into nibbles (aka half-bytes). Doing this arithmetically is somewhat easier than to split strings to insert zeros before each char.
07-27-2009 04:37 AM
12-09-2009 09:24 AM
Hi Mark & Gerd,
sorry i'm very new in program with labview 😞
I try to connect an visca cam with labview and send a hex code like you.
But i have a problem, i didn't found a vi to connect the cam
could u help me pls?
thx a lot
dietmar
12-09-2009 09:28 AM
12-09-2009 09:54 AM
Hey Gerd,
first thx for the fast answer,
shure i need a cable to connect the cam
the cam is connected with a usb-cabel,
shure i ask the support, the told me that the cam use the visca protokoll for communication
and send me a technical manuel about the sony fcb-PV 480
i will use the maxxvision Vision-480-usb
http://www.maxxvision.com/de/products/VisualCommunication/USB-Zoom/Vision%20480-USB/product.html
about the driver, see the screen shot pls
best regards
dietmar
by the way - my you speak german?