Jump to content

russellb78

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by russellb78

  1. This compatibility list is a great idea and will definitely reduce any uncertainties and confusion with what hardware has been tested.
  2. Thank you everyone! This was a great discussion and extremely helpful.
  3. Does LabVIEW Community Edition support Raspberry Pi Zero W?
  4. Thanks for the response. I added some more diagnostics code and was thinking about adding the flush as well. Thanks for your help.
  5. I am seeing a problem that randomly one of four groups does not get written to the TDMS file. I have buffering on. Has anyone seen this intermittent problem and know how to fix it?
  6. Thanks for the quick reply and that makes sense why some of the timing is close to zero. I will definitely go watch that video, I missed it at NI Week. I moved all of the controls and indicators outside of the sequence structure, but it didn't change the result that the speed improvements are not there when the value array indicators are present. I am still curious why this is the case?
  7. Thanks for the feedback. By incorporating your feedback, I discovered that I got similar speed improvements to your speed test if I do not show the returned values as array indicators. If I showed the indicators the IPE and Get Variant Attribute were pretty similar if not the same. I also discovered that if I don't show the array indicators or the variant as indicators then my test times were basically zero. Attached is my VI showing these behaviors. Lookup Table.vi
  8. I created a benchmark VI using the example VI as a reference, but the IPE actually took longer than the Get Variant Attribute. Attached is my VI, default values show my test results. I would be interested in knowing why it appears to take longer. Lookup Table Compare.zip
  9. I just wanted to follow up that if I use the VI for data member access instead of a property node before the save for previous then the problem goes away.
  10. Hello, I am trying to save a LV project created in LV 2012 to the previous version of LV 2010, but when I try to open the VIs in LV 2010 the data member access property nodes are broken and LV is unresponsive. I can manually add a new property node and delete the old property, but LV is still unresponsive. I wanted to see if anyone else has run into this issue. Thanks, Russell
  11. The problem came back and I discovered what was causing this issue. There is another dll file that the vendor's dll is calling with a relative path. In order for LabVIEW to find this other dll properly I had to place it into the same folder where the LabVIEW.exe is installed.
  12. Thanks for your response, Answer to your first question - yes Answer to your second question - haven't tried renaming the dll or built an executable yet. I am unable to reproduce the problem today. Russell
  13. Thanks for your response, I have tried hardcoding the path and passing it into the DLL. It is working properly from the LV project today and I did not change anything. I know when I get this error I have to shutdown LV and run the vendor's VB example program before the error is cleared. There is something strange with the way this DLL is interacting with LV. I am just worried because I am not getting consistent results. Russell
  14. I am calling a dll from a call library function node inside a LV Class. If I run the VI from Windows Explorer then the call library function node executes successfully. However if I try to run the VI from a LV project then I get an error message saying the specified module can not be found. Anyone know what might be causing this issue? Thanks, Russell
  15. I spoke to the vendor this afternoon and it turns out there is an additional function that has to be called in order to get the results (i.e. correct output values). So it appears to be working now. Thanks for the help, Russell
  16. Rolf, I do sometimes get an error from the return value (which the vendor said happens at times). He suggested retrying until the return value is zero (i.e no error). When I do get a zero return value the output cluster has the same values as the input cluster (i.e the incorrect output values). In terms of filling the specific values in the function I have copied the same input values that are used in the vendor's VB example executable. The VB example executable executes properly, after several retries of course, and returns the output values I would expect. So I can't tell what I am doing differently from the VB code. I have web meeting with one of the vendor's support engineers on Monday so he can see exactly what is happening on my computer and hopefully determine what might be wrong. Unfortunately he doesn't have LV at his site and isn't familiar so he can't test it at his site. Thanks again, Russell
  17. Thanks Rolf, I was thinking that cluster option was the most acccurate option, but it doesn't seem to return an updated value so there must be something else wrong with the dll or my interpretation of the struct. I did have 1500 elements before, but seemed to make editing the cluster and VI in LV very slow and also caused the dll to error out at times. Thanks, Russell
  18. Hello, I am trying to call a function from a dll with a pointer to a complex struct. I have tried multiple ways to represent the string in the struct (see attached typedefs), but the output clusters from the dll call always has the same values as input (i.e the dll isn't updating the output values). The ref ptr is based on an example from this link and I have attached a screenshot of my code for this case: https://decibel.ni.com/content/docs/DOC-9079 Here is how the vendor defines the struct: typedef struct { dword passkey; //password dword request; //0=readprop, 1=writeprop, 2=writerelinquish dword deviceid; //device instance dword objectid; //objectid dword propid; //property id dword arrindex; //array index dword datatype; //see simpletypes dword value; dword errorclass; dword errorcode; dword priority; //1..16 union { char sval[1500]; wchar_t wval[1500/2]; byte bval[1500]; BACnetDate dval; BACnetTime tval; datetime dtval; directaddr da; HWND listbox; bufptr buf; Range rg; bdrCOV cov; pxfer *px; }aux; } bdrbag; Here is how the vendor defines the struct in their vb example: Type bdrbag passkey As Long 'password request As Long '0=readprop, 1=writeprop, 2=writeproprelinquish deviceid As Long 'device instance ObjectID As Long 'objectid propid As Long 'property id arrindex As Long 'array index datatype As Long 'see simpletypes value As Single errorclass As Long errorcode As Long priority As Long '1..16 sval(0 To 127) As Byte 'string value End Type Thanks, Russell TYPEDEF_BACNET_bdrbag_byte_cluster.ctl TYPEDEF_BACNET_bdrbag.ctl TYPEDEF_BACNET_bdrbag_ref_ptr.ctl
  19. Hello David, Thank you for your code it is communicating with the PLC 5, but I have two issues that I thought you might be able to help me overcome. It looks like the element number is an U8 so I can't enter element numbers greater than 255. The other issue is that negative numbers are not read correctly. I tried to read from element 201 which should of been -22 and I read -17. Thank you, Russell
  20. Hello David, Thank you for the code. I am wondering if you know if I need a certain version of the PLC firmware to run this code? Thank you, Russell
  21. I am curious if anyone has tried to use the EtherNet_IP_PCCC.zip on a PLC 5. Specifically I wanting to use it with a 1785-L20E revision D.2. I have been trying to use the NI-Industrial Communications for EthernetIP, but have been getting a Error PCCC Status: 0xf0. I am wondering if I might get different results using the EtherNet_IP_PCCC.zip. Any thoughts would be helpful. Russell
×
×
  • Create New...

Important Information

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