Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

VB6-Parse problem

Hi i am comunicating with a UDC  3000 but when i ask to read the Temperatura he send me the data like this :

00B009,120,0170 and i want to parse this data so i can take this 3 number for , the firts 6 digit number to compare , the second to check and the third is the value of the temperature , so i want to know how to parse that data like that? i try to do something like this:
Text1.Text = Response(0) 'Six-Digit number
Text2.Text = Response(1) 'Three-digit number
Text3.Text = Response(2) ' Four-digit number

But i keep gettin the error of type dismatch, hoping any help that you could give me

Tomás Estrada
0 Kudos
Message 1 of 3
(6,578 Views)

Tomás,

Are you using an instrument driver for your UDC 3000? Where did you get it from? Are you using serial port to communicate with UDC 3000? Wich NI application are you using?

 

Dario Camargo

NI Brazil

#1151009

0 Kudos
Message 2 of 3
(6,551 Views)
0 Kudos
Message 3 of 3
(6,545 Views)