Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I control instrument using its RS232 port in VB or VC++?

Hi Tomás,

The DevZone example is actually included in the VS6 examples shipped with Measurement Studio.
You may find the example in <C>:\Documents and Settings\All Users\Documents\National Instruments\MStudioVS6\VB\Samples\Instr\Simple Parsing

Using the example code with some very quick modifications, I was able to easily parse your "010004,120,HH" string. 
The technique I followed was exactly as described in the DevZone article. Essentially, I created five tokens to handle each "segment" of the string (such as "010004" and ","). The commas were ignored while the remaining three segments were not. I have attached the example code to help you understand what I mean.

In regards to the type mismatch error, it may be simply that Response is returning as an empty array - perhaps the Tokens were not correctly set in the Properties.

Nestor
0 Kudos
Message 11 of 12
(2,163 Views)
hi Nestor thanks again, and you were right i made a mistake the configuration of the parse, now it's working , thanks for the example.

Tomás Estrada
0 Kudos
Message 12 of 12
(2,151 Views)