Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Connect hamamatsu c9525 to labview via USB port/communication error

Thank you for your reply.

Yesterday I received welcomed help from NI support and my understanding of things is improving.

The problem I am facing right now is the following:

I want to send to VISA write buffer the command:

V 01 50  with the setting for the box ''normal display''

(not hexa because, when I will be sending controls from front panel, visa will only treat them as ascii characters and will convert them to hexa.) 

this command is transformed by visa write into hexa character by character =>

56 20 30 31 35 30

For the destination to understand the command, 01 and 50 must be taken as one character:

01=01hexa 

50=32hexa

How do I tell VISA write to treat 01 as one character not two and 50 as one character not two?

What kind of sign must I place between V 01 50 to signal beginning and ending of what is to be treated as one character and converted into a single hexa correspondent?

0 Kudos
Message 61 of 62
(678 Views)

Alright: NI support to the rescue once again:

The instrument that converts numbers to ascii characters that are then transformed into hexa by visa looks like the attached picture.

So thank you Denis from NI Support Romania for this fine example.

now the source is working properly, it is understanding the requests.

0 Kudos
Message 62 of 62
(671 Views)