06-30-2009 02:11 PM
This may not be the most descriptive title for the post. I remember reading somewhere that if you are trying to build a VI that will eventually be built/autocoded, the VI in development shouldn’t be placed under the “My Computer” section of the Project Explorer. Instead, the VI should be placed under a different section of the explorer so that any non-compatible VIs will not appear in the palate.
I’m definitely not doing this post justice… but does anyone know what I’m talking about or where I can find more information specific to this? I will be autocoding some VIs into C and apparently File I/O palate functions don’t autocode.
I appreciate the help.
Solved! Go to Solution.
06-30-2009 03:06 PM
What do you mean by 'auto-code'?
And what is the relation with C?
Ton
06-30-2009 03:38 PM
06-30-2009 11:09 PM
You're now asking whether you can convert a VI to C code? The answer is no. There is no underlying C code to a LabVIEW VI
And that has nothing to do with the project and I've never heard of not placing the VI under My Computer in a project where you want to build an exe or dll. The palettes have nothing to do with the project either.
07-01-2009 07:27 AM - edited 07-01-2009 07:28 AM
Well you can create .c functions with VIs:
Ton
07-01-2009 08:47 AM
http://www.mathworks.com/products/rtw/
07-01-2009 09:03 AM
I'm aware of the microprocessor toolkit. Are you aware of the cost and the limited number of LabVIEW functions that it supports? Unless you are going to just target embedded platforms, you certainly cannot convert a LabVIEW project to C.
Your other question about some VIs not being available sounds very fishy. I have never heard of such a thing.
07-01-2009 09:24 AM
Dennis Knutson wrote:I'm aware of the microprocessor toolkit. Are you aware of the cost and the limited number of LabVIEW functions that it supports? Unless you are going to just target embedded platforms, you certainly cannot convert a LabVIEW project to C.
Your other question about some VIs not being available sounds very fishy. I have never heard of such a thing.
Yes it is expensive and I've played around with it. It does limit the VI functions (unfortunately)... so it takes some dancing around to get what you want out of it. I know the question sounds fishy but it lines up pretty well with what you just said. SDK only supports some of the VI functions. The ones it does not support reportedly do not appear. I read this somewhere and am looking for the resource about this. So with SDK, a "C Generated Code" section appears in the Project Viewer and placing your VIs there will modify the palate depending on what is available.
07-01-2009 09:42 AM
PhilipJoeP wrote:
Dennis Knutson wrote:I'm aware of the microprocessor toolkit. Are you aware of the cost and the limited number of LabVIEW functions that it supports? Unless you are going to just target embedded platforms, you certainly cannot convert a LabVIEW project to C.
Your other question about some VIs not being available sounds very fishy. I have never heard of such a thing.
Yes it is expensive and I've played around with it. It does limit the VI functions (unfortunately)... so it takes some dancing around to get what you want out of it. I know the question sounds fishy but it lines up pretty well with what you just said. SDK only supports some of the VI functions. The ones it does not support reportedly do not appear. I read this somewhere and am looking for the resource about this. So with SDK, a "C Generated Code" section appears in the Project Viewer and placing your VIs there will modify the palate depending on what is available.
A modified palette view in this circumstance makes sense and I wish you had mentioned that originally. I suspect you have a different palette view if you have the mobile module. You are switching development systems. You have a different palette view if you switch to LabVIEW base from labVIEW full.
07-01-2009 09:56 AM
Dennis Knutson wrote:
PhilipJoeP wrote:
Dennis Knutson wrote:I'm aware of the microprocessor toolkit. Are you aware of the cost and the limited number of LabVIEW functions that it supports? Unless you are going to just target embedded platforms, you certainly cannot convert a LabVIEW project to C.
Your other question about some VIs not being available sounds very fishy. I have never heard of such a thing.
Yes it is expensive and I've played around with it. It does limit the VI functions (unfortunately)... so it takes some dancing around to get what you want out of it. I know the question sounds fishy but it lines up pretty well with what you just said. SDK only supports some of the VI functions. The ones it does not support reportedly do not appear. I read this somewhere and am looking for the resource about this. So with SDK, a "C Generated Code" section appears in the Project Viewer and placing your VIs there will modify the palate depending on what is available.
A modified palette view in this circumstance makes sense and I wish you had mentioned that originally. I suspect you have a different palette view if you have the mobile module. You are switching development systems. You have a different palette view if you switch to LabVIEW base from labVIEW full.
The way I read the article was that it wasn't simply the addition or subtration of entire palates (although with Microprocessor SDK a new "Microprocessor SDK" palate appears) but certain VIs in the default palates may dissapear because they may not "generate code" correctly. I think we are talking the same thing now? It's not just switching between versions of LabVIEW (base or full) either.
Sorry i was not clear... i thought that when i said "...the VI should be placed under a different section of the explorer so that any non-compatible VIs will not appear in the palate" that implied a modified view.