LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control device with RS-232 commands in labview


@viCam wrote:

 

I am also trying to connect with a device via RS232 cable and am able to transmit and receive signal when using hyperterminal but unable to do so using labview.

 


Can you post your code?  Are you setting the Termination Character in your VISA Initialization function to something other than default?  Is the termination character enabled?  If you are sending \r with your command, maybe you need to disable the termination character enable.  Or maybe set the character to \r, and enable it in the VISA initialization function, and don't put the \r in your command string.  Just send the command itself.  VISA will put the \r in for you.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 21 of 26
(1,107 Views)

Are you referring to in labview? Because if so I am just starting to work on it. I am not sure I even know where to start yet, since I have done only a little in labview. I will try to post code when I can. If you have any examples or know how to make a program that I could type a string into and have it sent to the device that would be great.

0 Kudos
Message 22 of 26
(1,098 Views)

 


@broken Arrow wrote:

What did you do to get it working?


I got it working by restoring the factory defaults apparently they were off. The flow was set to hardware instead of none.

 

0 Kudos
Message 23 of 26
(1,095 Views)

@ybur wrote:

Are you referring to in labview? Because if so I am just starting to work on it. I am not sure I even know where to start yet, since I have done only a little in labview. I will try to post code when I can. If you have any examples or know how to make a program that I could type a string into and have it sent to the device that would be great.


Sorry, my reply was meant for ViCam, who hijacked your thread.   Go to the help menu and select Find Examples.  Then in the search box type in serial.  You will get some examples.  Study them.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 24 of 26
(1,086 Views)

 


@tbob wrote:

Sorry, my reply was meant for ViCam, who hijacked your thread.   Go to the help menu and select Find Examples.  Then in the search box type in serial.  You will get some examples.  Study them.

 


yeah...I realized that a couple of minutes later. Thanks though.

 

0 Kudos
Message 25 of 26
(1,077 Views)

 


tbob wrote:

Sorry, my reply was meant for ViCam, who hijacked your thread.   Go to the help menu and select Find Examples.  Then in the search box type in serial.  You will get some examples.  Study them.

 


That was not my intention. But point taken, I'll start my own.

 

0 Kudos
Message 26 of 26
(1,072 Views)