Hello,
I'm busy with a new project where i want to communicate with a labview DLL. The DLL is a device driver with a specified interface. My first test was with a yokogawa WT230 where i tried to receive the voltage. I declared everything as a constant and the function only returned a pointer to float value (voltage). This works quite nice and i want to expand the function. The DLL declares my new function as: void YWT_GetVoltage(LVRefNum *VISAResourceName, float *MeasureValue)
Just like previous example I will look at the MeasureValue which is my result. However labview requires that i provide the DLL with LVRefNum *VISAResourceName and i don't understand how to send this to the dll. In the previous test I Hardcoded this in the VI as: GPIB0::1::INSTR
Im using Delphi and I've tried to send a pchar (pointer to character), Cardinal (unsigned 32-bit) and pCardinal (i've tried to do more things but same result) in an attempt to test this myself. I've read through the forums but i haven't been able to figure this one out.
Could someone please explain to me what/how to access the DLL with the LVRefNum *VISAResourceName. What type of value does this function expect from me?
With kind regards,
Erik Zwollo