LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

EtherCAT Initial Commands Configuration

Hi all,

I have a Labview2020 application, there is a cRIO9040 connected with Indra Drive Motor throught Ethercat. Inside the Labview Project there are a lot of parameters, specially Initial Commands.

I'm tryng to convert the application in Labview2023 version, at the first step (when I open the project using Labview 2023) Initial Commands are not more available.

I tried also to "Import Device Profile" with success but nothing changed.

 

Is there some workaround or way to Add again the initial commands? Or are missing some drivers to not see initial commands?

 

Opening the Labview Project with notepad ++ i can read still the initial commands but are not loaded correctly.

 

Attached:

Labview2020.bmp = Screenshot of opening Project with Labview2020 and Initial Commands available

Labview2023.png = Screenshot of opening Project with Labview2023 and Initial Commands not available

Project Notepad.png = Screenshot of Initial Commands still present inside the project but not correctly loaded with Labview2023

 

P.S. Labview 2020 and Labview 2023 are in different PCs

Download All
0 Kudos
Message 1 of 7
(267 Views)

From your description, it looks like you have a working program, written using LabVIEW 2020 on Computer A connected to a set of hardware, call it Hardware A, that runs correctly.  You have a second Computer B with LabVIEW 2023 (and possibly a different set of device drivers and other utilities) that doesn't work (the "initial commands" are not available).

 

Who installed LabVIEW on the two machines?  Who developed the (original) Program A in LabVIEW 2020?  What changes were made to the program to run on Machine B?  

 

From the very little information you provided to us, it appears that some "parameter files" that LabVIEW needs to read and recognize are not present (or, if present, are in the wrong place) on Machine B.  But that's just a guess.

 

Are there any LabVIEW experts that you can get to look at your two machines and their two LabVIEW installations and figure out what is missing or mis-configured?

 

Bob Schor

0 Kudos
Message 2 of 7
(237 Views)

Hi, Thank you for the fast reply.

 

I developed the working Labview2020 Source Code with a Development Laptop (Computer A) perfectly working with cRIO9040+Ethercat Device (Hardware B) . The Application still works on a Desktop PC with Runtime 2020 (Computer B) and cRIO9040 in version2020 (Hardware B).

 

Now i have a new Development Laptop (Computer C) with Labview2023 and i'm converting all my software for future development. Before connecting to Hardware B or update cRIO software to Labview2023 i would be sure to have a working software.

 

Basically the first action I made is to copy the Source Code from the old laptop (Computer A) and open it with the new one (Computer C), just opening the Labview Project in the Ethercat Slave there aren't "Initial Commands" parameters.

 

I attached Computer A and Computer C NI Max Software installed.It Should not be a Installation problem or missing parameters files because if I copy and paste and open the Labview2020 Source Code with a external development laptop with Labview2020 (Computer D) i can see still Initial Commands.

Computer A and C were prepared by IT department. Computer A is not more available cause leasing end.

 

Download All
0 Kudos
Message 3 of 7
(222 Views)

Attached you can find the Project standalone, if you open with Labview2020 you should see as screenshot "External PC" attached (i tested on a Computer E with Labview2020).

If you open with Labview2023 Initial Commands will miss.

 

My question is (supposing it is a Labview2023 issue to open the Labview2020 project):

Is there some manual way to insert in the project or force the parameters manually?

 

thanks in advance.

Download All
0 Kudos
Message 4 of 7
(216 Views)

Thank you for including the "View from NI-MAX" of the software installations on Computer A (LabVIEW 2020, which works) and Computer C (LabVIEW 2023, which doesn't work).  There are a number of (significant?) differences.  

 

Computer C is missing:  Flex-RIO, IVI Compliance Package, Datalogging and Supervisory Control Runtime, NI-TClk, NI-TimeSync.  Of these, most seem to be hardware, and possibly are not needed, but I'm worried about the Datalogging and Supervisory Control module.  Hmm, I seem to have missed that only Computer A has NI R Series Multifunction RIO -- are you using such a device on Computer C?  [If so, you'll need to install the driver].  Similarly, are you using any Flex-RIO devices?  Computer C doesn't seem to have them.

 

Bob Schor  

0 Kudos
Message 5 of 7
(170 Views)

Hi Emacrux,

 

In the LabVIEW EtherCAT properties dialog window, I think it's possible to just double-click on the row, and make your edits.  At least that's why NI says.  Here's the document: https://www.ni.com/docs/en-US/bundle/ecat-labview-api-ref/page/ethercatadvancedinitcmdpropertypage.h...

 

Also, to import EtherCAT XML files, here's a good write-up: https://lavag.org/topic/53602-ethercat-basic-project/

BR

John

 

Add motion to LabVIEW in 30min or less - TENET EMotion
Finding it hard to source legacy NI hardware? Try Extend Test

0 Kudos
Message 6 of 7
(117 Views)

Thank you for the reply.

It is partially true, you can double click the row and edit "Data" Column only if there is the row, if the table is empty is not possible to insert a new complete row.

EmaCrux_0-1760684010238.png

I tried  to follow the topic you followed but as the first attempt, i can upload with success the xml file but in labview2023 Initial Commands don't fill the table.

 

Meanwhile i'm trying to send this commands run time in my software, in the next week i will prepare the cRIO to test it:

EmaCrux_1-1760684288186.png

Thanks.

0 Kudos
Message 7 of 7
(97 Views)