07-19-2011 10:33 AM
I wondered if it's possible to convert a 1D array of VISA Resource Names (COM Ports) and convert them to Strings then input these into a combobox? I'm hung up on the first part.
Solved! Go to Solution.
07-19-2011 10:40 AM
Hello
the solution is
Regard's
EricC
07-19-2011 10:44 AM
Hi,
Please see attached !
Best,
J.
07-19-2011 10:46 AM
What is the function your using to convert the VISA to a string?
07-19-2011 10:49 AM
The function is "Type Cast".
It is located in Numeric > Data Manipulation palette.
07-19-2011 11:06 AM
Why do you use "type cast" to convert visa to string ?.
it is a complexe way to do the job !!!!
Regard's
EricC
07-19-2011 11:14 AM
You're right : "Concatenate Strings" function is much better.
Best,
J.
07-19-2011 11:38 AM - edited 07-19-2011 11:39 AM
Of course a more general solution can make use of a vi server referance to the combo box and the Configuration API functions. Here is an example.
Since we don't often see examples using this API I thought it would be a good Idea to show how powerful this can be for programatically determining what is connected. That sys hw Property node has some awefully interesting properties in it that can be explored.
07-22-2011 08:00 AM
OK, I have one other question.
When I use the code below, I return COM1, COM3, and LPT1. On another computer, I return ARSL1::INSTR, ASRL2::INSTR, and ASRL10::INSTR. What gives? Do I need to update teh VISA Runtime? If so, what is the latest version?
I'm rinning 2010 SP1.