Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I reset serial ports without rebooting?

I have an application that communicates with a SilverMax servo drive over RS232.  If the device is off when I run my VI or if it gets turned off during a program run, the serial port locks up at the VISA serial write VI.  I need to hit the reset button on the PC to recover.
0 Kudos
Message 1 of 6
(10,507 Views)

Hi TAS1,

Try the Basic Serial Write and Read Example VI, and see if the example works.  You can find the example in the NI Example Folder, which you can access by navigating to Help » Find Examples... in LabVIEW.  The behavior you described is unexpected.  Make sure that there is a delay, as shown in the example, and that the VI executes all the way to the end, where there should be a VISA Close.  It is important that VISA Close executes, because this clears the VISA resource.  Please let me know if you have any questions about the example.

Regards,

Rima

Rima H.
Web Product Manager
0 Kudos
Message 2 of 6
(10,479 Views)

Hello

 

I found the example in the help of Labview and I run it but I got the this error below!

 

Error -1073807343 occurred at Property Node (arg 1) in VISA Configure Serial Port (Instr).vi->Serial Write and Read on Two Ports.vi

Message 3 of 6
(7,008 Views)

You used the 'Two port' example. According to the error you don't have a second port or specified a non existing port.

 

Start with the 'Simple Serial' example.

 

Kees

0 Kudos
Message 4 of 6
(7,002 Views)

Actually I have my own serial communcation between Labview and Arduino through Xbee to control mobile robot.

the problem is sometimes I lost the communcation with the robot! then I have to restart Labview and the robot to get the communcation back,

and also I have time delay communaction when I send commands, the time delay around 2 seconds!

 

0 Kudos
Message 5 of 6
(6,999 Views)

Sorry I see now that you Hyjacked this thread. Please start a new thread with your question with the VI you use and the specification of the target.

0 Kudos
Message 6 of 6
(6,997 Views)