LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

motor control by serial port

Hi GerdW

sorry for delaySmiley Embarassed.

the point for using type cast is that i have heard that Labview just send/recieve string so all datas must be converted to this type.

AVR can recieve each type we send, the main is LV.

I have closed the serial port at the end. it is out of the while loop and i have thought that it is kind of a routine in working with visa.

as readen befor byte at port is used for recognizing number of bits. do you think it is not needed?

please help me.

waiting for your answerSmiley Wink

thank you!

 

0 Kudos
Message 21 of 23
(496 Views)

still waiting!!!Smiley Frustrated

0 Kudos
Message 22 of 23
(470 Views)

Hi Deovalente,

 


the point for using type cast is that i have heard that Labview just send/recieve string so all datas must be converted to this type.

AVR can recieve each type we send, the main is LV.


VISA is using a string for sending/receiving data. But that string is just a "container", you may see it as an array of bytes. And those bytes can contain whatever you need to transport...

 


I have closed the serial port at the end. it is out of the while loop and i have thought that it is kind of a routine in working with visa.

as readen befor byte at port is used for recognizing number of bits. do you think it is not needed?


Don't knw which "routine" you're talking about.

BytesAtPort gives number of bytes in read buffer, as the name says. No "number of bits" to expect here...

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 23 of 23
(463 Views)