Jump to content

Joshuatronics

Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

LabVIEW Information

  • Version
    LabVIEW 8.6
  • Since
    2007

Joshuatronics's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, i introduced the bytes of padding and i solve some issues about transmision, thanx :thumbup:
  2. Certainly i haven't used padding bytes. I've corrected the ID format to u32 though, but it's working. i'll be working on fixing the padding issue and see what changes, you have me now wondering in the solution for that. thanks
  3. :worship: :thumbup: THANK YOU VERY MUCH!!! I tried the thing you told me about and it worked perfectly, now i can write and read data. VERY THANKS!!!!!!!!
  4. Hi, I want to ask if anyone can check if what i am doing is correct. I'm calling an external dll and i have doubts about the data type in the function. DWORD HiCOCANWrite( BYTE Can, psPCCanMsg msg, DWORD Timeout ) Can: Number of the node which is to transmit the message. Msg: Pointer to message data Timeout: Specifies the time HiCOCANWrite is waiting for a free entry in the transmit queue when the transmit queue is full. the problem in the functionis the psPCCanMsg, that is a structure defined as, typedef struct { BYTE ff; /* frame format: 0 = basic CAN, 1 = extended CAN */ BYTE rtr; /* 0 = normal frame, 1 = remote frame */ BYTE dlc; /* data length 0..8 */ DWORD id; /* telegram ID */ BYTE data[8]; /* data */ sTS timestamp; /* time stamp*/ }sPCCanMsg, *psPCCanMsg; and the structure sTs is defined as, typedef struct { WORD day; BYTE hour; BYTE min; BYTE sec; WORD ms; WORD us; /* micro seconds; max. resolution 10μs */ }sTS, *psTS; I used clusters for structures. i attach images of my labview code and the configuration in call libray. The point is that the code is not working or does nothing. I'm using LabVIEW 7.1. Please if anyone can help me I would appreciate it. Thanks
  5. QUOTE (rolfk @ Feb 27 2009, 05:06 AM) Thanks to both, suddenly it stops crashing. I didn't do anything. Let's hope it continue. I'm sorry for not including the other library i have it.
  6. Hi, I want to link a DLL from of a driver of a CAN BOARD, and I need to use the functions in the DLL. I´m using LABVIEW 7.1 and I tried using the Call Library Function Node but somtimes it crushes specially when i copy and paste some code after i've executed the program. The function that causes the error is defined in C as: DWORD HiCOCANGetErrorString (DWORD ErrorCode, TCHAR *Puffer) Where, DWORD = unsigned long TCHAR = char *Puffer = Pointer to the beginning of a buffer with a size of 100 characters, where the error code is to be entered. i attached two VIs, the first one makes crushed labview after executing the program. the i read in a post that inicializing an array and casting it it solved the problem, it worked at the beginning but when a try to copy-paste some code, labview crushes anyway. is the anysolution?? THANKS
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.