Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 08/16/2021 in all areas

  1. Standard computer troubleshooting - https://www.youtube.com/watch?v=nn2FB1P_Mn8 Joe T.
    1 point
  2. Never had such a request, so I did it as an exercise. As suggested in topic @kratmel posted when dealing with time intervals it's best to use RTC to UTC functions, so you manipulate only with one DW variable. That's also my experience. Sedmica.vlp
    1 point
  3. Hard to help without seeing your logic so far, but here goes anyway.... The data types you are trying to write to the table must match the data types set-up in the Data Table columns struct. For the User name and login, logout times, you can use the event tags in the User Access Control struct to detect each time a user logs in or out. There will be some code required to save a "TimeStamp" to each event The instructions used differ, depending on the type of data table created. If you are using an indexed data table, the easiest way is to use the insert row instruction. The existing data gets pushed down a row and the new data writes to the row number defined in the instruction. If you always insert at row 0, the table acts much the same as a FIFO table, deleting the last row of data(first-in) once the table is full. To save the table's contents to SD card, use the Store DTI to File instruction. That instructions gives you some options such as whether to overwrite the file, append to the file, row # to start from and whether to create a .csv file, .csv-zip file, .udtf file or all types.
    1 point
  4. I played around a bit with the drawing tools and came up with a reasonable solution. Have a look at the attached program.(I used a USP-070-B10, with Unistream version 1.30.58) I originally had the circle position updating every scan, but the screen refresh rate could not keep up, so I changed it to update only when the X or Y position values changed. I linked two sliders to the X & Y position tags in the circle struct that was created when I defined the shape tag for the insert shape instruction. It's a bit rough around the edges, but should give you an idea of how the drawing tools function. PositionTracking.ulpr
    1 point
  5. Use the function "Load Timer/Counter Current", divide by 10, then display as you would any other number, selecting one decimal place.
    1 point
  6. I ran face-on into an application where I wanted to concatenate the time and date into one string. The RTC to ASCII function in the examples considers every permutation of Date OR Time, but not both. I tried following my own advice and using the Insert String function but it didn't work the way I thought it did. I studied the RTC to ASCII example and realized the best way to manipulate strings is to make use of buffers, controlling exactly where characters land using the Copy Tag to Buffer, Fill Buffer, and Copy Buffer to tag functions. The thing that worked best for me was to start from scratch and write a generic Concatenate function that takes two strings as arguments as well as the number of spaces wanted between the strings. I only need one space, but this could easily be modified to pass the separating character to it. I'll leave that as an exercise to another. Enjoy. Joe T. Concat.ulle
    1 point
  7. I found a solution to this problem (it helped in my case, I was programming on another computer and at home project opening the same error occurred) The solution is as follows: 1. Open the project, do not click "OK" in the dialog box. 2. Open Task Manager, and shut down VisiLogic. 3. Restart the project, use recover, and click OK 2 times (in 2 dialog box). 4.Your project is open.
    1 point
  8. No! Either place both sets of conditions in the same ladder rung leading to the coil, or create two intermediate coils, one with each set of conditions, and use those intermediate coils in parallel to activate the original coil.
    1 point
×
×
  • Create New...