Recent Posts

Pages: 1 [2] 3 4 ... 10
11
PLUS+1 and C / c code to write to the usb flash drive on DP7xx display
« Last post by techn0 on March 21, 2024, 03:12:35 PM »
I have used applog and that works fine but I want to have complete control over the arrangement of the saved CSV file so I am trying to write to the usb flash drive file from C
Code: [Select]
if (BXPulse==true)
{
      FILE *file = fopen("usb:/data.csv", "w");
      int variable1=2;
      int variable2=4;
      int variable3=6;
      if (file != NULL) {
          // Write CSV headers
          fprintf(file, "Variable1,Variable2,Variable3\n");
 
          // Write data (replace with your actual variables)
          fprintf(file, "%f,%f,%f\n", variable1, variable2, variable3);
 
          // Close the file
          fclose(file);
      } else {
          // Handle error opening file
      }
}
Using something like this.  I do not know exactly what to put in the fopen line.  Any help would be appreciated.

Thanks
12
PLUS+1 GUIDE / Re: Transmitting 16bit J1939 CAN message
« Last post by Lukey on March 18, 2024, 11:19:39 AM »
I interpreted the information you provided left to right I.e. 1st bit then 2nd bit, so as how I programmed "10b = Start requested, automatic type"

I might be wrong, best to test in real time to be sure.
13
PLUS+1 GUIDE / Re: Transmitting 16bit J1939 CAN message
« Last post by llang on March 18, 2024, 07:14:33 AM »
Thank you.

In the encode block you set the first input to true - this must be the "01b = Start requested, operator type".
So if i want e.g. "10b = Start requested, automatic type" I have to set the second input to true and the first to false?
14
PLUS+1 Autonomy Hardware / About XM100 and OUSTER Lidars
« Last post by ibrahim on March 18, 2024, 07:03:26 AM »
Hi,

I want to use OUSTER Lidar with XM100.

How many lidars use with one XM100?

Best Regards
15
PLUS+1 GUIDE / Re: Transmitting 16bit J1939 CAN message
« Last post by Lukey on March 15, 2024, 11:06:03 PM »
I think you want something like this, but best to test it to be sure.

Assuming you would want to set the 1st bit to False when wanting to switch engine off.
16
PLUS+1 GUIDE / Re: Transmitting 16bit J1939 CAN message
« Last post by llang on March 15, 2024, 09:50:24 PM »
Hi Lukey,

thank you for your answer. I thought that I have to convert the hex code into bin which has 9 digits (therefore 16 bytes needed), which is wrong i guess.

I can give you an extract from the PGN document. Could you please explain, how I can send e.g. "10b Start requested, automatic type"? Can i just put the hex code into an encode function?

Thanks in advance. :)

Best regards, Lukas
17
Displays / Re: Changing image size in program? vector editor
« Last post by Marbek_Elektronik on March 15, 2024, 04:16:10 PM »
Perhaps using usb port increases the download speed instead of CG150.
I watched this at DP700 and TM610.
18
Displays / Re: Changing image size in program? vector editor
« Last post by Camox on March 15, 2024, 04:10:13 PM »
My DM1200T 85mb .p1p take 1min40sec to compile and a very long time to download the 80mb .lhx to the hardware.

The solution to this problem is in this post : https://www.plus1forum.danfoss.com/index.php?topic=1625.msg5493#msg5493.

Have a nice day
19
Displays / Re: Changing image size in program? vector editor
« Last post by Lukey on March 15, 2024, 03:20:41 PM »
Yes image/widget do increase compile time, I always try to use .png file type and keep the original file size to the dimensions that I require for the display.

A fast workstation helps yes.

My DM1200T 85mb .p1p take 1min40sec to compile and a very long time to download the 80mb .lhx to the hardware.
20
PLUS+1 GUIDE / Re: Transmitting 16bit J1939 CAN message
« Last post by Lukey on March 15, 2024, 03:06:01 PM »
Hi llang, I'm not sure how you determined 9 bits length, the overall length should be 8 bytes.

See below of example for an engine simulator I have that sends to PGN 61444 Electronic Engine Controller 1 random RPM/Speed message.

You need to find a breakdown of the PGN, that will tell you your SPN start position in the 8 bytes and the length of the message;
example her for PGN 61444 https://www.simmasoftware.com/products/j1939/j1939-pgn/

Pages: 1 [2] 3 4 ... 10