|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
C++ in LabView
I don't really like LabView, but it is the only thing that seems to be working on our bot. WindRiver just does not work. Besides, the rest of the team is using LabView. Someone said that we could code C++ in LabView, but I have no clue how to do it. There are a few problems we are having with the labview software that I could fix in a heartbeat in C++. Anyone know how to open a C++ editor in LabView.
|
|
#2
|
||||
|
||||
|
Re: C++ in LabView
Nope, I'm afraid your someone is mistaken. While formula nodes can do formulas and math like C, you cannot do what your asking. Try looking up Formula Nodes and seeing if they can do what you want.
|
|
#3
|
||||
|
||||
|
Re: C++ in LabView
you can do library calls to DLL's compiled in c++, but i dont think thats actually what you want to do.
|
|
#4
|
|||
|
|||
|
Re: C++ in LabView
Quote:
Greg McKaskle |
|
#5
|
||||
|
||||
|
Re: C++ in LabView
This is sad -- sad because it's so not true.
Still, from reading these forums, I gather that this is the prevalent opinion. Wind River is getting a completely undeserved black eye for their sponsorship. This is largely a result of very poor documentation supplied to the teams. I have to wonder if they'll even bother with FIRST next year. The other day, I saw a thread in which someone proclaimed that they 'hated' Labview. The poster was cautioned that this might lead to unspecified fallout from NI. I really doubt it. |
|
#6
|
|||
|
|||
|
Re: C++ in LabView
Thanks. Just realized why WindRiver is not working. I forgot to add the while loop to make it execute every time. That would be a problem.
|
|
#7
|
||||
|
||||
|
Re: C++ in LabView
there is "C" in labview, its more like a type of pseudo"c";
an if looks like Code:
if(b==1) z=2; else if(b==2) z=3; else z=4; Code:
if((B*A)>a>(B*D)) z=1; if(B>a) z=(15=c); oh and you declare variables Code:
int32 x; yes thats it, no boolean, no 4 bits, not 64 bits.. Your switches look something like this Code:
switch (x)
{
case 1:
break;
case 2:
break;
case 3:
break;
case n;
break
}
Sadly i don't know that much about doing more complex stuff in the formula node/C node, just basic stuff. Me and a programming mentor spent about 3 hours just figuring out the syntax for that, I caution you to try more complex items, but i also wish you the best of luck. good luck cody Last edited by XXShadowXX : 17-02-2009 at 19:18. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Labview 8.5 vs. FRC Labview 8.5 | pyr0b0y | NI LabVIEW | 0 | 01-02-2009 22:20 |
| Labview Formulas | GunfighterJ | NI LabVIEW | 2 | 15-01-2009 19:27 |
| LabVIEW vs C/C++ | 3DWolf | Programming | 11 | 05-12-2008 09:14 |
| Labview | tseres | Programming | 2 | 23-05-2007 00:27 |
| Labview | Phreakuency | LabView and Data Acquisition | 6 | 14-01-2006 01:14 |