10-12-2015 04:24 AM
How to convert Labview communication design suite file in to Labview .vi file and vice versa?
Solved! Go to Solution.
10-12-2015 10:44 AM
Hello Joseph,
Thanks for joining the community!
There is a Code Conversion Utility that converts VIs into GVIs.
http://www.ni.com/download/code-conversion-utility-for-labview-communications-1.0/5093/en/
This is not a gaurenteed conversion. We recommend testing your code after conversion to confirm its operation. This is because currently LabVIEW Communications does not support all of the functionality of LabVIEW, such as Event Structures.
Sadly, there is not method to convert from GVIs to VIs. This is because LabVIEW Communications has a different set of functions that are not supported in LabVIEW, such as the Multi-rate Diagram.
Regards,
10-12-2015 10:51 AM
Hi Joseph,
Just to add an assurance to tcap's answer - the conversion utility will make a copy of your code, it won't convert the original files, so those will remain safe.
06-08-2016 09:10 AM
Hi guys,
I want to convert this file attached here and the tool isn"t working.It appears to me errors .
Any help pleaaaaaaaaaaaaaaaaaaaaase
06-08-2016 10:34 AM
I have tried to do the same VIs of the inverse error function on another VI of labview communications design but I have a lot of errors.Can someone please take a look at that please.
06-08-2016 01:55 PM
Hi emnajaoua,
It looks like you have seven errors when I open the Qinverse.gvi that you attached. The conversion tool is still a beta tool, so there may be minor adjustments that you need to make after using the utility. It looks like these can be solved with a few simple steps.
1. "C Node: Variable z": You will need to create an input on each C node for Z, and intialize it with a 1D Array of Doubles. Because it each C node uses that z value to calculate the error function, it is a required input. You can hover over the red exclamation mark in the top corner of the C or M node and see the error. This will help you in troubleshooting.
2. "Case Structure Terminal": It looks like not all of your cases were copied over. You can manually add the missing constants in your false cases to match the cases you have in LabVIEW. This should be a straightforward fix.
3. Finally, I noticed that you have a double as your input of "Erf(x)" in LabVIEW, so I would change it from an Enum in LabVIEW Communications to a double.
You can always find the errors you need to troubleshoot after clicking the "Run" button and double clicking on the error that pops up in the "Errors and Warnings" bar at the bottom. This will take you to where the error is occuring.
Thanks,
BeenCoughin
06-09-2016 03:21 AM
Hi BeenCoughin,
Actually for the error of "z" I didn"t know which variable to wire to it because according to the definition of Erfc(x) in C node it must be : " Erf (double x, double *erf);" but I don"t know the second variable how to define it or wire it.
Concerning the errors in the false case structure terminal I don t know which missing constants have you mentioned.
This is the file with less errors.