07-07-2014 02:04 AM - edited 07-07-2014 02:13 AM
Hi all,
i am trying to generate .c file for DAQmx create channel(VI) function using LabVIEW C Generator Evaluation version. I get a warning saying that the type is not supported by the LabVIEW C Generator.
Example: task in, task out, physical channels, custom scale name are not supported by C Generator
Is there is way to solve this issue???
Once the .c file is generated, i want to generate a .dll file using any C Compilers.
Any help would be greatly appreciated.
07-07-2014 02:29 AM
07-07-2014 07:14 AM
Hi Dennis,
Thanks for your time and reply,
I went through the example C programs that ships along with DAQmx drivers. That was really helpful. I am basically trying to convert individual DAQmx functions to .c files. I am facing issues while i try to convert as briefed earlier.
For Example: task in, task out, physical channels, custom scale name are not supported by C Generator
Type is not supported for the above mentioned inputs and outputs.
I am jus curious to know if i can resolve this issue.
07-07-2014 07:19 AM
07-07-2014 07:42 AM
What Dennis wants to tell you: AS the C DAQmx API already provides you with the same functions as the LV DAQmx API VIs, there is no need to create convoluted wrappers using a C Code Generator.
What you should do is to get familiar with DAQmx overall. Use LV (and online material) to discover the options, DAQmx provide you when using NI hardware. You maybe should also attend the LV DAQ class for more detailed training.
Then use the C DAQmx API to create a generic C application for your needs. If required, you can of course wrap "high level functions" (which means: a collection of low level functions in a specific order and specific parameters) as new "simple DAQ API".
Norbert
07-07-2014 08:32 AM