I have managed to communicate with the FTDI RS232 to USB adapter successfully for connecting, reading, closing but when I try to write I get the error 1097.
I have seen lots of posts on this forum but have had no luck so far. I am using the code supplied by FTDI which is at LabVIEW version 7.0.
Could anybody suggest where I am going wrong?
Thanks
Probably your function call is wrong.
Perhaps you need stdcall in stead of c calling convention?
Can't open your VI, still at LV18...
I've attached the version 16 vi.
Thanks
All other functions are on stdcall, the write is on c..
Or did you just change that on my advice? If all other functions work, the write should be stdcall too.
Bytes written should be a pointer to the value.
An input can never return a value unless it's a pointer!
You're passing an array of I32s to the dll, which accepts an array of I16s.
I don't know what it should be, but it's suspicious.
wiebe@CARYA wrote:
Bytes written should be a pointer to the value.
An input can never return a value unless it's a pointer!
The last parameter is called "Bytes written". You should pass a pointer to the value, not the value.