12-20-2016 11:54 AM
Do not know how to solve this problem. The control (VISA resourse name) is connecting the 'VISA Open' (Spectrometer) and the property node is created from the control and changed into Write mode. Then I try to add a control to the node and a 'class conflict' error (broken wire) occurs. See attached image. Thanks in advance.
12-20-2016 11:58 AM
What are you actually trying to achieve with all this?
12-20-2016 12:03 PM
Post your code, not pictures of your code. I'm guessing the selected class type of the controls don't match and one can be made less specific to make it work.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-20-2016 12:14 PM
Here is the code. Could everyone see the code? Thanks.
12-20-2016 12:18 PM - edited 12-20-2016 12:18 PM
I am thinking to use the property node in another page of a Tab Control to choose a usb port for my spectrometer. Thanks for the discussion.
12-20-2016 12:50 PM
@FrankWhite wrote:
I am thinking to use the property node in another page of a Tab Control to choose a usb port for my spectrometer.
So are you trying to assign a new resource to an already existing resource? A tab control is a front panel object, while a property node resides on the diagram. So what's the connection? (Sorry, posting by phone, cannot see your VI).
12-20-2016 12:54 PM - edited 12-20-2016 12:58 PM
That is a bit weird. So I created a property node Value on the control then created a control from the value terminal and the result was a broken wire as you mentioned. The selected class of both the original control, and the one being wired to the property node were of the USB Raw type so I'd expect it to work. The error does claim a class conflict.
Changing the control wired to the property node to a class type of Instr removes the wiring class error.
Edit: It gets weirder when local variables are attempted.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-20-2016 12:54 PM
Hi Frank,
I am thinking to use the property node in another page of a Tab Control to choose a usb port for my spectrometer.
There's no TAB control in your VI nor is there any property node.
What exactly do you want to achieve?
12-20-2016 01:49 PM
Yes, it is strange. Hope I can solve it and give you a solution. Btw, how can you add 'Spoiler' section?
(If we change the type to Instr then the wire between the control and the spectrometer break. )
12-20-2016 02:01 PM
@FrankWhite wrote:
Yes, it is strange. Hope I can solve it and give you a solution. Btw, how can you add 'Spoiler' section?
Instead of insisting on this convoluted thing with property nodes, stick to established coding practices and solve it without property nodes and good code architecture instead. I am sure there is a way!
And please attach relevant code. Whatever you have attached has very little to do with the problem you are describing.
To add a spoiler tag, use the 5th item in the edit bar (it even tells you when hovering over it).