Hi Ejv,
There are a couple of ways this function works. You may need to call
another function after viFindSrc() if you're using LabWindows/CVI. The
following Knowledge Base has that information.
http://digital.ni.com/public.nsf/websearch/2D29FC7DFC93D6D986256D25006B1069?OpenDocument
As far as how this is done, it's doing the same thing that happens when
you refresh in MAX. It gets a list of all available ports, and then
queries the ports to see if it detects an instrument (or multiple
instruments) connected to that port. You will get back an array of the
available VISA resources. The resource names are assigned by the VISA
driver. You could add VISA aliases in MAX so you could call those
aliases instead of the names assigned by the VISA driver.
The broadcast is done when the viFindSrc() is called, not at the
beginning of the application. This would allow you to connect a
different instrument to a COM port and then send the viFindSrc() again.
I hope this information is helpful for you.
Regards,
Matt S.
LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.