11-04-2014 10:32 AM - edited 11-04-2014 10:48 AM
I have a test fixture I am designing in LabVIEW that is composed of many independent instruments. For simplicity sake I gave all of these instruments a VISA alias (for instance Programmer rather than COM3) so I wouldn't have to guess at which COM port the instrument was attached to.
Now, in LabVIEW, one of my instruments does not have a driver but does have a DLL shared library that I am trying to create wrappers for. One of the inputs is the serial port in a numeric format (0 for COM1, 1 for COM2, etc). If I didn't have the alias I would just do something like this...
But....because I have these aliases I cannot make it so simple. Is there a way to get the serial (COM) port number (I can decrement it) from the VISA alias?
Edit: seems the code didn't make it in on the first pass
Solved! Go to Solution.
11-04-2014 10:43 AM
Name from Alias is straightforward with the System API
11-04-2014 11:00 AM
Thanks, I had never used the system functions so I was unaware of their capabilities.
11-04-2014 05:02 PM
Where are these System vis? I have 2014 professional development suite and just went through the entire palette set and could not find them.
11-04-2014 05:46 PM - edited 11-04-2014 05:51 PM
obviously you're not using Quick Draw correct that drop.
they are on the pallets under measurements and they show up at the lower left hand sideI believe they install with DAC MX or device drivers
and of course that's a snippet so you could have just drop it will block diagram right click instead find an outlet from the alt correction find on pallets from the help
side note: Google speak doesn't recognize everything correctly
11-05-2014 09:45 AM
@JÞB wrote:
obviously you're not using Quick Draw correct that drop.
they are on the pallets under measurements and they show up at the lower left hand sideI believe they install with DAC MX or device drivers
and of course that's a snippet so you could have just drop it will block diagram right click instead find an outlet from the alt correction find on pallets from the help
side note: Google speak doesn't recognize everything correctly
Ah.. I see them since I have never used any sort of DAQ devices or quick-drop (never could figure that out) I guess I never saw them before.