12-07-2021 01:27 PM
Hello everyone,
Im working on project where I control robotic arm created in Solidworks. These two programs: labview and solidworks are interfaced and here is a question. How can I save data set of positions of robot axis (there are 3 variabels pos1,pos2,pos3) and then reused it. Im thinking of using switch:
1. Homing : Pos1=0 Pos2=0 Pos3=0
2. Move to : Pos1=80 Pos2=30 Pos3=30
3. Move to : Pos1=0 Pos2=10 Pos3=5
4. Move to : Pos1=190 Pos2=50 Pos3=20
5. Move to : Pos1=0 Pos2=0 Pos3=0
But I dont know how to contain and how to get acess to this data to recreate movement. Any tips any solutions?? Thanks 🙂
12-07-2021 01:30 PM
why do not you save them in csv file and then load them when needed in your program
12-07-2021 03:01 PM - edited 12-07-2021 03:04 PM
I'm not sure about the Solidworks side, or what capabilities you need from Solidowrks.
But that data looks like an INI file to me..
[Homing]
Pos1 = 0
Pos2=0
Pos3=0
[Move 1]
Pos1=80
..
Then you can use LabVIEW to read/write the INI file. There are examples in LabVIEW to show you how to use INIs. Here's a reead example - https://forums.ni.com/t5/Example-Code/Read-all-sections-keys-and-values-from-any-ini-file-Using/ta-p...
Other options: XML or CSV files.
Craig
12-07-2021 05:39 PM - edited 12-07-2021 05:40 PM
Solidworks side is esential for this project and also is not source of any problems, it is just visulization for data acquired from FT Sensor to move every axis of created robotic arm. So if only way to do this is writing ini file and reading after, do I need arrays for this? Im asking because as I wrote before: I need to use always 3 previously saved variables, there may be 5,10 or even 20 of them but always 3 (pos1,pos2,pos3) in each group.