C project in labview
Hello,
i have one project developped using c code, this project is composed with 4 .c files ( each one with its .h file), in the 5th file i have the main() function with other functions, before asking here , i have been reading this
http://www.ni.com/white-paper/5694/en , https://decibel.ni.com/content/message/1615 and https://decibel.ni.com/content/docs/DOC-1690
my question is :
there is any way to convert my project developped in c to labview ( not a function ( to dll) but a project which contents a lot of functions with one main()).
thanks in advance
There isn't a program, that I've ever heard of, to convert a C program to LabVIEW. Creating a .dll from a C program, that is then called from LabVIEW, yes. If you have sufficient understanding of how your program functions, you can then write a LabVIEW program to do what it does, in many cases.
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion
Similar Messages
-
Hi there,
I am planning to use Labview 2010 in a short time.
But before I'm going to use it I have some questions.
I know it is possible to run Labview 2010 in an XP environment. But is it also possible to, when running Labview 2010 on a XP system, to build a project to a version that is useful in a Windows 7 environment?
Or do I have to run Labview 2010, when I want to build a project that is useful on a Windows 7 system, on a system with Windows 7?
Please give me some information.
I hope to hear from one of you soon.
Regards,
Kenny
Solved!
Go to Solution.Is it possible to build a project with Labview 2009 on a Windows XP system, that is useful for a system with windows 7 on it?
Thanks.
Philippe B.
Certified Associate Developer / Dépt Moyens d'essais
www.ingenia-system.com -
I want to do a project in Labview which controls 5 light bulbs which lights in a room.
I want to do a project in Labview which controls 5 light bulbs which lights in a room. The switching on of light bulbs depend on amount of sunlight falling on a LDR. Small intensity of sunlight should cause the lighting of one bulb after the other. I need some help in writing my program in Labview.
kasamaneka wrote:
I want to do a project in Labview which controls 5 light bulbs which lights in a room. The switching on of light bulbs depend on amount of sunlight falling on a LDR. Small intensity of sunlight should cause the lighting of one bulb after the other. I need some help in writing my program in Labview.
LDR is a resistor whose resistance decreases with increasing incident light intensity... I know, you are already aware of what LDR is...!!
--> Well what exactly you want a LabVIEW program to do in this setup of yours...??
--> If you want LabVIEW to take control and lit different bulbs, based on the light intensity, I would like to know, how exactly you planned to measure the resistance variation of LDR??
--> What DAQ are you using??
--> Are you aware that DAQ cards can measure the voltage across a shunt resistance (here LDR) and indirectly tell you the variation in the resistant, provided a constant current passing through the resistance.
I am not allergic to Kudos, in fact I love Kudos.
Make your LabVIEW experience more CONVENIENT. -
I am final year Engineering student of Instrumentation Branch from Bangalore, I am interested in doing a MAIN PROJECT on Labview with help of some Companies in Bangalore. So please help us.
Thank youTo learn more about LabVIEW, I suggest you try looking at some of these tutorials.
-
How to create custom project in LabVIEW 8
We can create VIs from the template in similar fashion i want to create a perticular folder hierarchy and copy some common VIs in perticular locations when i create a new project. as in 7.1(or even in 8) we had option to create blank VI or VI from template, is there any option to blank project or project from template.
If this feature is not readily available then can i develop a tool which can do the job? How?
Tushar Jambhekar
[email protected]
Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My BlogHello!
You can do more than just creating a blank project with the
VI server -- check out the example "Add files to project" from the NI
Example Finder (help->find examples->new to lv 8->general). The
other post was correct though -- it is just an XML file that you can manipulate
how you choose.
Hope it helps!
Travis M
LabVIEW R&D
National Instruments -
Problem in saving project frm labview 8.5 to 8.2
i m facing problem while saving the project frm 8.5 to 8.2
while doing this i recieve message of following Vis missing
1 Teststand-ExecuteMenu Command.vi
2.Teststand-Insert Command in Menu(Execution View Manager.Vi
3.Teststand-Insertcommand in Menu (SequencefileView Manager .vi
4.Teststand-Insertcommandin Menu.vi
5.Teststand-Remove Command from Menu.vi
plz solve this problemHello Eler,
I'm the AE from the french support who tested your class.
I tested your big class with different version of LabVIEW and with all the versions, I had the error.
I tested with LV8.5.1 french, LV 8.2.1 french and english, LV8.2 french and english,LV7.1 fench.
For me with LV 8.2.0 english version your class doesn't work.
I attached screen shots for all tests.
Regards
VéroniqueD
NI France
Attachments:
error assembly.zip 382 KB -
Packed project Library Labview Class Issues
I packed my whole Labview project as a packed proj library during teststand Deployment
I am using classes in my labview project
unfortunalely by one of sub seq calls got the following error !
"Type mismatch. The LabVIEW Class does not match the class expected by the VI.
Cannot pass a base LabVIEW Class to call a method initially defined in a derived LabVIEW Class."The error message is quite clear:
You are using inheritance where you do have methods which are not part of the parent class (as dynamic dispatch).
During the call, you pass an object of the parent class and try to call the (unknown) method of the child.
Why this is happening can only explain your code....
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
Four ways to save a project in LabVIEW 8.5 - any difference?
What are the fundamental differences, if any, between all the different ways to save a project under LV 8.5? Example: "Save All" and "Save All (this Project)" under the project File menu.
From LabVIEW Help:
You can save a LabVIEW project in the
following ways:
Select File»Save.
Select Project»Save Project.
Right-click the project root and select Save from the
shortcut menu.
Click the Save All (this Project) button on the Project toolbar. You also can select
File»Save All (this Project) or right-click the project root
and select Save All (this Project) from the shortcut menu.
“A child of five could understand this. Send someone to fetch a child of five.”
― Groucho MarxFile>>Save will save the current document. So, in a VI window, it will save the VI. In a project window, it saves the project.
Project>>Save Project will save the project associated with the current document. So, in a VI window, it will save the project (if the VI is opened from one). In a project window, it (obviously) saves the project.
The shortcut menus is the same as the File menu Save.
Save All (this Project) saves all open files in the current open project.
Christina Rogers, Senior Software Engineer and UX Technical Lead, LabVIEW R&D -
Interfacing MS Project in Labview
Hi All,
I've seen that Labview can interface with Excel, Word, and Powerpoint but can it also interface through MS Project? For instance using an ActiveX control.
Any examples welcome
Kind Regards
RichardYou may need to experiment with the Active-X on this one. I don't recall anyone implementing this solution. Hopefully MS can provide some documentation on the API (or Active-X). I will do a search in case something was already done for MS Project.
-
Every time I open my project file (LabView 8.5) it needs to be re-saved
Since LabView version 8.5, each and every time I open my project file (*.lvproj), it needs to be re-saved as indicated by the asterisk next to the project file name in the title bar of the Project Explorer. That is confirmed when I close it and a dialogue box pops up asking if I want to save the project.
I've clicked both "Save All" file menu items. The asterisk goes away and I can close the project without the dialogue box opening. But if I immediately re-open the project, the asterisk is there again.
Note that I have not made any changes - it occurs immediately after opening the project, as if it were a project file from a previoius version (which it was initially, but after saving it once in the new version, it should not happen again when no changes are made.
I did not observe this behavior with versions prior to 8.5. Anyone else see this? Thanks.
Ed S.Thanks for your input. I don't know what you mean by a "mass compile". I've build my application - both a stand-alone exe and the installer (and it works), and I've saved the project. Then when I re-open it I get the asterisk. I can save it again, but the same thing occurs when I open it again.
No, I'm not using XControls or LVLOOP (whatever they are). Also, the application was developed originally in version 8.2.1 and then saved in version 8.5 when it became available. Everything else works fine, the same as it did in the previous version. This is the only difference I've seen. -
Run veristand project in labview- outports of simulink model dll
I have compiled a Simulink model into a dll file now I want to use some of the outports of the simulink model in labview I can see the outports in veristand workspace but now I want to use them in labview how can I do that?
now I want to execute my .vi with a PXI and I get this problem I have saved the dll. in veristand target PXI not in the Controller I have created a project and I have saved the Veristand files in C:\ of the PXI and I have the problem below I need special sofware I have installed all the avaliable veristand software in the PXI
Attachments:
Capturaaa.PNG 25 KB -
Automating the compare of a project in LabVIEW 8.5
Hi folks,
I am writing LabVIEW code to automate the comparison of a Woking Copy (WC) of a project with the copy in an SVN repository.
The way it works is that I get file lists from both the Working Copy and the repository. Then for each VI or control that is in both places, I get a local copy of the repository version (with a different name) and call "CMP Compare two VIs.vi".
90+% of the time this works just fine.
Some of the time I get a pop-up box asking for a password. This is the same pop-up box you would get for a password protected VI where you want to look at the block diagram. The VIs causing this are not password protected. When you look at the Lock State property, it is "Not Locked". You can open the VI seperately and look at the block diagram without a password. None of the VIs subVIs are password protected.
This only happens with files from the repository, not the ones from the WC. (I tried swapping the path inputs to the CMP Compare two VIs.vi and it was still the repository copy causing problems.)
The pop up message is also strange as the file it is complaining about is a garbled mess of both of the files being compared. I have attached a screen shot of the Pop up. The files being compared when this pop-up shows up are:
lvtemporary_501221.vi
AI-Only.vi
What I am looking for is a work-around so I can use this project without having to stand by and click buttons while it sorts through all the files in the WC.
Attachments:
Authentication.PNG 9 KBHi,
I'd like to ask you if you are using Web Services in your application?
If that is the case, you can use this KB as a reference to solve your problem.
Regards,
Miguel Fonseca
Applications Engineer
National Instruments -
Final year project using labview, what project i can apply?
i'm goin to be do a final year project, n i thinkin to use labview do it.! but i dun hav idea tht is suit...coz it can't use to the station..
anyone can give me some idea??thanksGreetings!
Are you exposed to LabVIEW programming before or are you
planning on learning LabVIEW and graphical programming for your design
project. If you are looking for resources the following link is a great
way to start.
http://www.ni.com/academic/lv_training/how_learn_lv.htm
The three hour course is really easy. Once you are done my
recommendation is to use one of our shipping examples like temperature
control with DAQ assistant and PID. Please let me know if you have
issues setting up the LabVIEW development environment / programming and
post any questions.
Thanks much
Avi Harjani -
Project Manager - LabView - Mumbai Location
Looking for Project Manager for Labview development with the 10+ yrs experience
Attachments:
JD.txt 4 KBI am interested in the job profile. I have been woriking in BARC, since 2002. I am using LabVIEW 7, 8 and 2010 version. Worked in NI-DAQ, PCI, PXI hardware platform. Toolkit Machine vision & image processing, Advanced Signal Processing-Wavelet, DSC-SCADA module, report generation etc.
email: [email protected] -
How to program lpc2368 of the project in LabVIEW to hex file?
is LabView 2008 with LabVIEW Microprocessor SDK. also is available microcontroller lpc2368. is there any example of creating a finished hex file, preferably a step by step
thanks !
Solved!
Go to Solution.Hi Sergiv,
I am not sure what you meant by "is LabView 2008 with LabVIEW Microprocessor SDK."
The LPC2368 is what we call a Tier 2 device. Tier 2 devices provide processor support, but no specific palettes are provided, so this requires you to develop and integrate drivers. That being said, you might be able to use the palettes developed for the LPC2378.
Were you able to follow the steps mentioned in the "How to CreateHexFile?" discussion forum post?
Regards,
Claire Reid
National Instruments
Maybe you are looking for
-
so i cant get sir on my iphone 4..even though i downloaded ios6, so i cant get sir on my iphone 4..even though i downloaded ios6
-
The truth about pagefile (SSD)
Good afternoon! Two years ago you guys (especially Harm) helped me to build a PC for Premiere. After two years I had to update my disks setup and decided to buy a Samsung 830 SSD for OS. Now, after I've read tons of informations about how to setup th
-
Justification property is not working when using a format mask
Hi all, I have a text item with number data type and right to left reading order, I put the justification property to right. I used a format mask to set two decimal places for the entered number. The problem is the justification property is not align
-
TransitionManager in FLASH Projector
Hey guys, I seem to be having a problem with the TransitionManager effects in Flash Projector flash... I have the following code snippet in an AS3 .AS file for each(item in list){ //trace(("site/phones/samsung-880/samsung-880-thumb.pn
-
Changing to comma separated values from a table
Hi Gurus I have a column called ID and second column duplicatesID. So for each ID I can have more than one Duplicate ID. I want to have comma separated for values of Dup IDs for each ID. so ID | DuplicateIDs 1 | 10501 1 | 2010 2 | 103 2 | 109856 2 |