03-02-2015 04:16 PM
I am trying to create a shared variable with a data type of 2d array of double. I created a custom control containing a 2d array with numeric type to do this. From Distributed System Manager v12 I select 'add a variable', then select 'from custom control'. Once selecting my control I receive the following error: "Invalid data type. Would you like to select another data type". Any advice as to why this is not working? Thanks.
Solved! Go to Solution.
03-02-2015 05:02 PM - edited 03-02-2015 05:03 PM
This seems to be recorded in CAR#405941. The whole thing is a bit strange but I will try to go over the potential workarounds as best as I can. I tested a lot of these myself and here is what I found.
1. Make sure the custom control you have made was created in LabVIEW 2012 or you save it to a previous version. If you save it to a previous version you might also need to open the .ctl in LabVIEW 2012 and resave it (I needed to do this). I tried creating my own control in 2012 as well as saving the control to a previous version, both worked but I did not end up with the same result (I don't understand this but I wanted to mention it so that you knew).
2. It seems that you are able to make the shared variable programmatically by modifying the community example to fit your needs. If you do not need to create many variables this may be the best option if it works for you.
I would also try adding the variable from the LabVIEW project you are working on. This was not a direct troubleshooting step but there are multiple ways to do things in LabVIEW and sometimes one of them works while the other does not.
Edit: Community Example is here https://decibel.ni.com/content/docs/DOC-16863
03-02-2015 05:42 PM
03-02-2015 06:22 PM
If you are creating a SV in DSM it has to be network-published. Can you use an FGV in the same way?
If so how because I think that would be a good thing to know.
03-02-2015 09:08 PM
03-03-2015 08:10 AM - edited 03-03-2015 08:12 AM
Thanks Jacobson. Different versions was the problem. I was confused as why this error was happening because it was working in a different scenario. Turns out the PC I previously was doing this on had Labview 2010, I copied the customized 2D array from this PC and was trying to create the variable on another PC that has Labview 2012. I simply made a new custom control in v12 and all works fine now.
In response to mikeporter, the variable is shared across multiple platforms, ie. Labview, .Net, etc..., is this something you can accomplish with an FGV. You will have to excuse my ignorance, I am very much a Labview novice.
03-03-2015 10:28 AM