10-23-2014 12:17 PM
I am trying to use VISA Configure Serial Port(Instr).vi to configure my serial port.
Although the Baud Rate node property is enabled, it is not showing up in the block diagram. Please see attached.
Would appreciate any help, Thanks
Solved! Go to Solution.
10-23-2014 12:56 PM
Figured out. Thanks
10-23-2014 01:42 PM
Then you should put in your message exactly what it is you figured out. Only then have you given a solution.
Think about what could help someone in the future who is searching the forums if they have the same problem.
10-23-2014 02:24 PM
Sorry, Should have posted the solution.
Here it is:
http://www.ni.com/getting-started/labview-basics/environment
Every VI displays an icon in the upper right corner of the front panel window and block diagram window. An example of the default icon is shown here. An icon is a graphical representation of a VI. The icon can contain both text and images. If you use a VI as a subVI, the icon identifies the subVI on the block diagram of the VI. The default icon contains a number that indicates how many new VIs you opened after launching LabVIEW.
To use a VI as a subVI, you need to build a connector pane as shown above. The connector pane is a set of terminals on the icon that corresponds to the controls and indicators of that VI, similar to the parameter list of a function call in text-based programming languages. Access the connector pane by right-clicking the icon in the upper right corner of the front panel window. You cannot access the connector pane from the icon in the block diagram window. A subVI icon has a white background on its icon.
10-23-2014 02:34 PM
10-23-2014 02:39 PM
So your original problem was that the baud rate control was not connected to the connector panel? And once you realized you needed to go to the front panel to connect control to the connector panel you were okay?
To correct a few things in your message. Technically there is no difference between a VI and a subVI. A subVI is just a regular VI that happens to be used within another VI. You don't need to have any connectors used in a subVI. A subVI can use other methods to pass data into or out of it.
A subVI doesn't necessarily have to have a white background. It's background can be whatever color the LV programmer decided to make it when he created the VI icon.
A main VI can also have a white background. A main VI could also have controls and indicators connected to its connector panel, and they just don't happen to be used when that VI is run as a top level VI.
10-23-2014 02:50 PM
In the code that I had (not written by me) for whatever reason the baud rate terminal in the VISA Configure Serial Port (Instr).vi was not connected, so I had go to the VI Icon, switch to Terminal view and add the connection.
10-23-2014 03:36 PM
VISA Configure Serial Port is a built-in LabVIEW subVI. (It is polymorphic with (Instr) and (Serial Instr) versions that are virtually identical. The baud rate is connected to the VI connector panel at the 2nd terminal on the upper left.
If it is missing in your VI, then someone must have corrupted the VI and saved it back in the LabVIEW VISA library.
I'd recommend repairing your LabVIEW installation.
What version of LabVIEW are you using?
10-24-2014 07:32 AM
Thanks for the input. I am using Labview 2013. I will repair the installation.
11-28-2014 10:49 AM
Hi,
I m tring to connect to Keithley 6514 electrometer using labview. I am using Keithley 6514 LV 2009. I am getting "VISA: (Hex 0xBFFF000E) The given session or object reference is invalid." error. I created NI-VISA-10001.
Thanks.
Jude