Dear LabVIEW Users Community,
We developed a machine monitoring software in C# (WPF), but we just purchased PXIe-8880 RT. We don’t want to waste our past efforts in C#.
Can we `mix' LabVIEW GUI & WPF:
Why did you purchase RT PXI controller? Do you want to run your code in deterministic loop?
Do you have any reason?
You can call .NET class developed with C# in LabVIEW, but cannot run in on RT.
We can develop RT application using LabVIEW only, not C#.
If you are going to develop new LabVIEW application running on RT, I believe you can use your C# code.
I assume following system settings.
Windows (C# application)
- user interface
- communication between Windows and Real-Time OS using TCP or other network method
Real Time (LabVIEW application)
- Deterministic task
- send or receive data/command from/to Windows
Thank you for your reply Emboar,
I will confirm the answer to your questions.
Meanwhile: I am also encountering a problem while trying to run C or C++ on the PXI:
I have tried the example `External Code (DLL) Execution' (see first picture) on the PXI, to see what would happen (my project looks as on the second enclosed picture.)
I get the following error:
Deploying WinINT.viWinINT.vi loaded with errors on the target and was closed.
LabVIEW: (Hex 0x436) Failed to load shared library CLF_Example**.*:WinINT:C. Ensure that the library is present on the RT target. Use either MAX to install NI software or FTP to transfer custom libraries to the RT target.
Deployment completed with errors
Is there a way to compile a library for the PXI that we can refer to ?
Is this what LabWindows/CVI is for ?
Alternatively, I also looked at the C node.
Given the trailing comment on the page, I have a feeling this won't work on PXI, or at least not the same. Beside, the limitations makes it unsuitable for our purpose.)
So, can we do C/C++ on LabVIEW RT on a PXI, or can we not ?
(I am working in a University Lab, and we are interested in reusing our existing library of algorithms already written in C to develop our application.)
Thank you very much!
So I got confirmation from this post that it is LabWindow/CVI we need for our C purposes.
Now, I am trying one of the examples, and am encountering problems.
The error message is that the target « isn’t connected or the remote debugger is not running . »
I did run the steps in the help relating to copying the 2 dlls and setting the debug as startup as well,
but still no luck
I suppose I can plug in the screen and look.
but I don’t know what it is suppose to read when it works.
Hi again Emboar,
Not sure if this is still relevant but:
Why did you purchase RT PXI controller?
We are interested in such level of control to apply adaptive controls and other processes to a CNC-machining closed loop, so...
Do you want to run your code in deterministic loop?
I was pretty sure about this but wanted to confirm with my supervisor, as it goes a little over my head in all honesty.
Do you have any reason?
All I can tell you from my position as a Software Engineer in the project is that dealing with the limitations of a general purpose OS will make it more complicated in the long long run to develop what they are shooting for here.
That was before discovering what was involved in simply getting the device to run though
Thank you very much for your pointer to WebDAV BTW.
I am sure it will come in handy when I get back to getting in the device the LabVIEW .vi way.
(edit: nm the last part of my post about not being able to connect to the device from LabVIEW: I was trying to use LabVIEW 64 bits instead of 32.)