Resetting USB communication with TC-08

Post your LabVIEW discussions here
Post Reply
gepponline
Newbie
Posts: 0
Joined: Tue Nov 30, 2010 9:47 am

Resetting USB communication with TC-08

Post by gepponline »

Hi,
Sometimes I lost communication with my TC-08 USB devices, but this could be not a problem by itself.
The problem is that if I try to restart the VI , It is no more able to start a communication unless I completely close labview. It can not find any device even if I disconnect and reconnect the device.
Is there a way to reset the communication or the port or whatever is keeping the port occupied?
thank you so much.

AndrewA
PICO STAFF
PICO STAFF
Posts: 409
Joined: Tue Oct 21, 2014 3:07 pm

Re: Resetting USB communication with TC-08

Post by AndrewA »

You need to know the handle value of the device open to close it.
But handle values are always the same.
So for example if you just have one device the handle value is 1.
The vi - \USBTC08Lib\USBTC08OpenUnit.vi
Will call openunit if 0 is returned for the handle it will call the error handler (USBTC08errorhandler.vi) which set to close the unit with default handle value of 1.

UPDATE I have now added a GetSingle to our Github-
https://github.com/picotech/picosdk-ni- ... Example.vi
Readme-
https://github.com/picotech/picosdk-ni- ... les#readme
Regards Andrew
Technical Specialist

Post Reply