04-28-2010 09:00 AM
I am dealing with several odd conversion dot issues.
First, if I create a control (say a boolean) and then create a reference, and then create a refnum from the reference, I get no conversion dot. But if I select a refnum from the controls pallette and set up the VI server class exactly as it is with the first method, and then connect it to the original control I get a coercion dot. What am I missing here? The two seem to perform exactly the same way, but I am curious to know if I am paying some kind of memory penalty.
Next, when I wire motion trajectory control vi's together directly, I get coercion dots. For instance if you pass the board and axis wires directly from one function to another, you get the dots. I am running LV stuff to LV stuff directly and LV is telling me something doesn't match. What is going on with that? The code runs and the machinery moves, but it makes me nervous.
Insights are greatly appreciated. Mailing large chunks of grey matter to augment my own is really appreciated!
Solved! Go to Solution.
04-28-2010 09:05 AM
Maybe one is a strict reference and the other is not.
Turn on context help and hover over the wire. Then temporarily delete the wire and do a Create Constant on whichever input had the coercion dot and see what the context help says now for the data type on the wire. The context help might give you a clue as to what the differences are in the datatype of the wire vs. the input.
04-28-2010 09:06 AM
mariahnova wrote:I am dealing with several odd conversion dot issues.
First, if I create a control (say a boolean) and then create a reference, and then create a refnum from the reference, I get no conversion dot. But if I select a refnum from the controls pallette and set up the VI server class exactly as it is with the first method, and then connect it to the original control I get a coercion dot. What am I missing here? The two seem to perform exactly the same way, but I am curious to know if I am paying some kind of memory penalty.
Next, when I wire motion trajectory control vi's together directly, I get coercion dots. For instance if you pass the board and axis wires directly from one function to another, you get the dots. I am running LV stuff to LV stuff directly and LV is telling me something doesn't match. What is going on with that? The code runs and the machinery moves, but it makes me nervous.
Insights are greatly appreciated. Mailing large chunks of grey matter to augment my own is really appreciated!
Re: your ref Q.
The ones with no coercion are probably "strict" while the ones you create manually are non-strict. To make the manuall ones strict just control drag the control into the ref control and and it will adapt to strict.
Re: the motion stuff
[insert tongue in cheek]
Sometimes software developers should be forced to "eat their own dog food".
The developers of the motion sub-VI are not LV developers ...
[remove tongue from cheek]
Please don't learn anything about LV by examining those sub-VIs.
Ben
04-28-2010 09:09 AM
04-30-2010 01:15 AM