04-18-2012 09:18 AM
Hi people,
Maybe you can help me.
I built a program in labview, but when I stop my program I have to clean all, but labview does not have anything tha I can use to do It.
Can anybody help me?
thanks
04-18-2012 09:23 AM
What are you trying to clear? Can you show your code so that we can see better what you are asking? Initializing controls and indicators is really very easy but we need to see what you are doing to tell you the correct way with what you are doing.
04-18-2012 10:46 AM
HI Tim,
My code is attached. I am using a device that calls "Signal Hound". My problem is to clean "the software", because every moment I have to take out the USB from my PC. IF I can clean the program I don't need to do it anymore.
thanks
04-18-2012 11:33 AM - edited 04-18-2012 11:36 AM
Call the function SHAPI_Reset() to disconnect cleanly after your loop.
(Silly VB coders. Reset means return the hardware to a known state- but in this case- it means stop talking to the device ARGH!)
04-18-2012 11:44 AM
Since the nice company provides the source code freely for this library, Its probably worth mentioning a lesser known LabVIEW feature that might just help you out with this. Tools>>Import>>Shared Library (DLL)...
This launches a wizard that will look into the dll and .h files parse them and create wrapper VIs for each function for you (Automatically configuring the CLF nodes!)